[vtkusers] Compiling VTK/Java/Windows/VisualSudio
Shawn Ericson
sce at cfdrc.com
Thu Nov 1 13:24:55 EDT 2007
David,
The error message depends on the version I am using. Since I've gone
through several iterations, I don't have the exact errors but will post
what I remember. If that is not enough I will work on recompiling and
get the exact error messages to you later.
On the 5.0.3 release the error I got referred to a failure in, or
failure to find, cl.exe
On the cvs version that I downloaded yesterday the first error message
is on Java compiling and the inability to find vtkAbstractArray (yes, I
have my classpath set, and looking at <root>/java/vtk there is no .java
file for vtkAbstractArray, only .rule files).
As an aside, on one of my many iterations to try to get this to compile,
I tried cheating a little bit and had some success (though not
completely). I had all my java source files built from my Linux
installation. I copied them over to the appropriate Windows directory
and recompiled wil MSVS. After several recompilations it finally
completed without error. Unfortunately, there must be some basic
differences between that java source code and the cxx source because
some of the java wrapper calls appeared inconsistent when I tried to run
my application. My point is, it all seems to boil down to a lack of
.java source file generation.
Anyway, let me know if you need me to recompile and capture the exact
errors and I'll get that done.
Thanks,
Shawn
David Cole wrote:
> 5.0.3 has some issues regarding dependencies with Java wrapping that
> are resolved in the CVS version. (The changes are too complicated to
> merge to the VTK-5-0 branch easily...) So stick with the CVS version
> if you want Java wrapping with Visual Studio to work.
>
> What is the first error message you get when you try to build...?
>
>
> On 11/1/07, Shawn Ericson <sce at cfdrc.com> wrote:
>
>> I am working on a Java/VTK project and all of my development has been on
>> Linux. I need to port my application to Windows and I simply can't get
>> VTK to compile with Java. It appears that the c and cxx files are
>> compiling but java won't compile. I have my path and classpath
>> environment variables set and I believe that they are correct because
>> SOME of the java files compile, but not all. It appears that the reason
>> is because only a handful of the .java source files are being generated
>> in <bin_root>/java/vtk directory. Is this a CMake issue ? I know from
>> the message board that I am not the only one to have this problem, but I
>> seen no responses that indicate a solution. Any assistance would be
>> appreciates.
>>
>> Stats:
>> Windows XP
>> AMD64, 2.2 GHz, 3GB Ram
>> MS Visual Studio 6
>> VTK 5.0.3 Release, and cvs nightly build as of yesterday
>> CMake 2.4
>> Java jdk1.5.0_11
>>
>> Thanks,
>> Shawn
>>
>> --
>> CFD Research Corporation Phone: (256) 726-4821
>> 5th Floor, Suite 501
>> 215 Wynn Dr. Fax: (256) 726-4806
>> Huntsville, AL 35805 http://www.cfdrc.com
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
--
CFD Research Corporation Phone: (256) 726-4821
5th Floor, Suite 501
215 Wynn Dr. Fax: (256) 726-4806
Huntsville, AL 35805 http://www.cfdrc.com
More information about the vtkusers
mailing list