[vtkusers] how to install vtk on a Mac?

Ilan ilan.tal at gmail.com
Mon Jan 7 06:41:34 EST 2013


Hi Seb,
I think now you may be on to something important. In both Linux and Windows
I had regular libraries, not dynamic libraries. When I checked
DYLD_LIBRARY_PATH on Linux I got a null. Likewise on the Mac I got a null.
On Linux the environment variable LD_LIBRARY_PATH points to the /usr java
path but System.getProperty("java.library.path") points to where the
libraries are located. I printed out both so you can see:

/home/ilan/Fiji.app/lib/linux32
/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/amd64:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386:

With Fiji it will look in java.library.path and find what it expects, i.e.
the VTK libraries. So it sounds like for the Mac, since I am using dynamic
libraries, I need to set DYLD_LIBRARY_PATH. This seems to finally make some
sense. What do you think?

Thanks,
Ilan

P.S. System.getProperty("java.library.path") on the Mac points to the path
where the dynamic libraries are installed.



--
View this message in context: http://vtk.1045678.n5.nabble.com/how-to-install-vtk-on-a-Mac-tp5717768p5717829.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list