[vtkusers] Mac OSX and VTK 4.0 question
John
jss at au.mensa.org
Mon Sep 23 23:21:35 EDT 2002
Hi Gala,
export LIBRARY_PATH
LIBRARY_PATH=/usr/local/lib/vtk
to your .bashrc (if you are using bash) or whatever is appropriate for the
shell youre using and the location of your VTK libs.
hopefully that will do it.
A better way to fix the prob i think is to maybe give gcc a
-L/usr/local/lib/vtk and then specify what libraries you want to link
against with -l (lower case L)
i havent tried compiling C or C++ apps with VTK4, as i use the tcl system
but you will probably have to let your compiler know that it should also
look in /usr/local/include/vtk for your vtk header (*.h) files (or wherever
you have put them on your system)
something like this may do the trick:
export C_INCLUDE_PATH
C_INCLUDE_PATH=/usr/include:/usr/local/include/vtk
or:
export CPLUS_INCLUDE_PATH
CPLUS_INCLUDE_PATH=/usr/include:/usr/local/include/vtk
or you may prefer to add a directive when you compile to tell gcc to search
in the right place for vtk includes.
-I/usr/local/include/vtk
that was a capital i by the way there.
i am really vague on this but i think you probly have to do something like
the above.
John
On Tuesday 24 September 2002 07:31 am, you wrote:
> After several months of absense from the list, "Gala'Vi and Liss @
> Mainframe Country" is back, under a different e-mail address. I've
> moved on from NCSA and now reside at NASA Goddard Space Flight Center.
>
> Yeah, and we've got Macs. I've managed to get VTK 4.0 working without
> too many problems before on Linux. I've ran 3.2 on Mac OSX with a very
> good degree of success.
>
> Now I'm on 4.0, with CMake and all this crud. VTK compiled fine with
> X11 and OpenGL support and tests run and display fine on my new
> dual-processor G4. However, I don't seem to be able to compile an
> application using VTK 4.0. It just barfs at me with a bunch of
> unresolved symbol errors (unresolved for every object there is) I think
> this has something to do with the absense of lib*.a files, but there
> doesn't seem to be any way that I could think of to get the static
> libraries to build. I'm not a CMake pro and am lucky that the darn
> thing worked. I liked the old way much better, at least I didn't have
> to deal with yet another nasty package.
>
> Anyways, if anybody managed to get their own test applications to work
> on OSX, please let me know.
>
> Gala Wind
> (301) 614-6221
> wind at climate.gsfc.nasa.gov
> Code 913, Climate and Radiation
> L-3 Comm/ Emergent East
> NASA/GSFC
> Greenbelt, MD 20771
>
> /*--------------------------------------------------------------------
> -- There's always a way, you just have to find it.
> ( B. Hambly "Children of the Jedi" )
> ----------------------------------------------------------------------*/
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list