[vtkusers] Common/Makefile problem
William A. Hoffman
billlist at nycap.rr.com
Tue Aug 5 08:03:31 EDT 2003
The problem happens because you specified a directory instead of a library
for the PYTHON_LIBRARY variable in CMake. This should be set to the full path to the
python library. Or, it should be set to the -framework command for python if there
is one.
-Bill
At 05:14 PM 8/4/2003, Ben FrantzDale wrote:
>I'm compiling VTK on OSX. I was getting this error: "ld: can't map file" for which google brought up only hits for VTK. (the file in question was /usr/lib/python2.2.
>
>For me the fix was as follows in Common/Makefile, there was this line, except that after -L/usr/lib/python2.2 there was an extranious "/usr/lib/python2.2". Changing it to this fixed the error. I'm not sure what cmake did to cause that error, though.
>
> c++ -bundle -flat_namespace -undefined suppress -o /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkCommonPython.so $(vtkCommonPython_SRC_OBJS) -L. -L/Users/ben/Desktop/vtk/VTK-4.2.2/bin -L/usr/lib/python2.2 -lvtkCommon -framework AppKit -lpthread -lm
>
>
>I hope this is helpful. (Or that it's since been fixed.)
>
>--Ben
>
>_______________________________________________
>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://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list