[vtkusers] Mac OS X, Java guru needed, please.
Kenneth Sloan
kennethrsloan at gmail.com
Wed Jan 17 00:12:26 EST 2007
On Jan 16, 2007, at 5:11 PM, David E DeMarle wrote:
> It's likely that your CLASSPATH or LD_LIBRARY_PATH (or whatever the
> Mac uses to say where shared libs are) is missing the jre's awt lib.
OK. A little research shows that under Mac OS X the LD_LIBRARY_PATH
is called DYLD_LIBRARY_PATH.
Alas, I can't find the jre's awt lib. Java is installed, and I have
many working Java programs that have been built on this machine.
But...some of the files are hidden away in strange places (usually
involving "Framework"...). I'm afraid normal *nix experience doesn't
help here - we need a Mac OS X wizard.
So...right now I'm doing a "plain vanilla" build - following your
recipe below, with simplifying changes.
And...damn - yet another error:
Scanning dependencies of target vtkGenericFiltering
[ 39%] Building CXX object GenericFiltering/CMakeFiles/
vtkGenericFiltering.dir/vtkGenericFilteringInstantiator.o
[ 39%] Building CXX object GenericFiltering/CMakeFiles/
vtkGenericFiltering.dir/vtkGenericContourFilter.o
[ 40%] Building CXX object GenericFiltering/CMakeFiles/
vtkGenericFiltering.dir/vtkGenericGeometryFilter.o
[ 40%] Building CXX object GenericFiltering/CMakeFiles/
vtkGenericFiltering.dir/vtkGenericClip.o
[ 40%] Building CXX object GenericFiltering/CMakeFiles/
vtkGenericFiltering.dir/vtkGenericProbeFilter.o
/Users/kennethsloan/kitware/VTK/GenericFiltering/
vtkGenericProbeFilter.cxx:33: error: 'vtkGenericProbeFilter' has not
been declared
... <many, many, cascading problems with vtkGenericProbeFilter.cxx>
make[2]: *** [GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/
vtkGenericProbeFilter.o] Error 1
make[1]: *** [GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/
all] Error 2
make: *** [all] Error 2
So....while we wait for a Mac OS X wizard to move us along on the AWT
front - any thoughts on this error and how to get past it?
See below for my simplified recipe:
> How to set that on a Mac I do not know. I vaguely remembering having a
> similar error on my Debian Linux machine. My build process on that
> machine is:
>
>
> checkout vtk into /home/demarle/Kitware/VTK/devel/VTK
Done - ~/kitware/VTK
>
> mkdir buildJava
> cd buildJava
Done - ~/kitware/vtk-basic
>
> setenv LD_LIBRARY_PATH
> ${LD_LIBRARY_PATH}:/home/demarle/Kitware/VTK/devel/buildJava/bin/:/
> usr/local/java/jdk1.5.0_08/jre/lib/i386/xawt/
> setenv CLASSPATH
> /home/demarle/Kitware/VTK/devel/buildJava/bin/:/home/demarle/
> Kitware/VTK/devel/buildJava/java/:.
>
The above NOT DONE (because I'm not yet attempting to build with Java)
> ccmake ../VTK
Done - I accepted all default settings and changed NOTHING. I hit
'c' (configure) a few times, and then 'g' (generate).
> set VTK_WRAP_JAVA
> I also set these two because it makes successive builds faster (not
> sure if you need them or not)
> set BUILD_SHARED_LIBS ON
> set VTK_USE_RPATH ON
> generate
> make
and here is where the build failed, with the error above
--
Kenneth Sloan
KennethRSloan at gmail.com
Computer and Information Sciences +1-205-934-2213
University of Alabama at Birmingham FAX +1-205-934-5473
Birmingham, AL 35294-1170 http://www.cis.uab.edu/sloan/
More information about the vtkusers
mailing list