[vtkusers] Common/Makefile problem

Ben FrantzDale frantzdale at intelligent-imaging.com
Wed Aug 6 19:02:49 EDT 2003


OK, I got a bunch further after installing python and tcltk from Fink 
and pointing cmake to the libraries in /sw

But then I get this:

Building object file vtkCarbonRenderWindowInteractor.o...
Building object file vtkCarbonRenderWindow.o...
Building object file vtkXOpenGLRenderWindow.o...
Building object file vtkRenderingInstantiator.o...
Building shared library 
/Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib...
ld: Undefined symbols:
_glXChooseVisual
_glXCreateContext
_glXDestroyContext
_glXGetClientString
_glXGetConfig
_glXGetCurrentContext
_glXIsDirect
_glXMakeCurrent
_glXQueryExtension
_glXQueryExtensionsString
_glXQueryServerString
_glXSwapBuffers
/usr/bin/libtool: internal link edit command failed
make[3]: *** 
[/Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2
bash-2.05a$


Any thoughts?

Thanks again,
     Ben


On Wednesday, August 6, 2003, at 02:30  PM, Karl Garsha wrote:

> Hi Ben,
> It looks to me like you are using the Appleized Python that comes with 
> OSX.  This is probably the problem.  It's a good idea to go to 
> www.python.org and download and build Python 2.2.3 (NOT 2.3!)--make 
> sure to do a framework install (read the instructions in 
> Python-2.2.3/Mac/OSX).  I recommend building tcl-8.4.3 and tk-8.4.3 
> from source and doing a framework install as well.  This will give you 
>  the correct stuff in the correct places.  I changed the name of my 
> /usr/bin/python to /usr/bin/_python and added /usr/local/bin/ to the 
> PATH in my .cshrc file.  This way when I type "python" at the command 
> prompt, I get the real python--and so does CMake.  Be sure to do a 
> "make clean" in your vtk directory, then run cmake, then edit the 
> CMakeCache.txt file to enable python support (simply change a no to a 
> yes), then run make, then sudo make install.  Afterwards, go to the 
> vtk/Wrapping/Python directory and run "sudo python setup.py install".  
> To make sure everything works, start a python interpreter in the 
> terminal and type "import vtk." If things are working you shouldn't 
> see any error messages.  All in all it's not that hard once you have 
> up to date framwork installs of python, tcl and tk.
> -Karl
>
> Ben FrantzDale wrote:
>
>> I've done a fair amount of looking; if there's a good OSX install 
>> guide, I'd love to see it.
>>
>> On Tuesday, August 5, 2003, at 05:03  AM, William A. Hoffman wrote:
>>
>>> 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
>>
>>
>> Looking online I saw a suggestion that the file I'm looking for is 
>> /usr/lib/python2.2/config/libpython2.2.a which is a file I don't have 
>> ('though the path exists).
>>
>> Also, what do you mean by the "-framework command"? python -framework 
>> doesn't work.
>>
>> Thanks,
>>           Ben
>>
>>> 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
>>>
>>>
>>>
>>
>> _______________________________________________
>> 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
>
>
> -- 
> Karl Garsha
> Light Microscopy Specialist
> Imaging Technology Group
> Beckman Institute for Advanced Science and Technology
> University of Illinois at Urbana-Champaign
> 405 North Mathews Avenue
> Urbana, IL 61801
> Office: B650J
> Phone: 217.244.6292
> Fax: 217.244.6219
> Mobile: 217.390.1874
> www.itg.uiuc.edu
>
>




More information about the vtkusers mailing list