[vtkusers] Motif not found during build
Paul Melis
paul at science.uva.nl
Wed May 20 03:18:15 EDT 2009
Hi,
I'm trying to build 5.2.1 and all goes well until somewhere in the examples:
gmake[5]: Entering directory `/usr/paul/vtk-5.2-build/Examples/All'
Linking CXX executable /usr/paul/vtk-5.2-build/bin/Example1
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
Now I have (open)motif installed, and the lib is in /usr/X11R6/lib. With
make VERBOSE=1 the actual link line is shown below, which indeed misses
-L/usr/X11R6/lib
/home/paul/local/bin/c++ -Wno-deprecated -Wno-deprecated -fPIC
CMakeFiles/Example1.dir/Example1.o -o
/usr/paul/vtk-5.2-build/bin/Example1 -rdynamic
-L/usr/paul/vtk-5.2-build/bin -lXm -lvtkRendering -lvtkGraphics
-lvtkImaging -lvtkIO -lvtkFiltering -lvtkCommon -lvtkftgl -lvtkfreetype
-lGL /usr/X11R6/lib/libXt.so /usr/X11R6/lib/libSM.so
/usr/X11R6/lib/libICE.so /usr/X11R6/lib/libX11.so
/usr/X11R6/lib/libXext.so /usr/X11R6/lib/libXss.so
/usr/X11R6/lib/libXft.so -lvtkverdict -lvtkDICOMParser -lvtkNetCDF
-lvtkmetaio -lvtksqlite -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg
-lvtkexpat -lvtksys -lpthread -ldl -lm
-Wl,-rpath,/usr/paul/vtk-5.2-build/bin:/usr/X11R6/lib
So is there any way to tell CMake where to find Motif? Or is there a
switch to disable just the GUI/Motif example?
Thanks,
Paul
More information about the vtkusers
mailing list