[CMake] Using VTK with CMake: link errors

Nicholas Kinar n.kinar at usask.ca
Wed Aug 11 11:36:53 EDT 2010


On 10-08-11 7:08 AM, Bill Hoffman wrote:
> On 8/11/2010 12:53 AM, Nicholas Kinar wrote:
>> Library/Frameworks/Python.framework/Versions/6.1/lib/vtk-5.4/libvtkHybrid.dylib, 
>>
>> file was built for i386 which is not the architecture being linked 
>> (x86_64)
> You built VTK 32 bit, and are now trying to link it to a 64 bit 
> application.   You have to build them the same...
>
>
>
Thanks Bill; this is greatly appreciated!  Apparently I have Enthought 
Python distribution also installed.  The file seems to be a pre-built 
library which is shipped with this particular Python distribution.  It 
is strange that CMake thinks that these are the VTK libraries, but 
perhaps the Enthought distribution has changed something which then 
makes CMake believe that the VTK libraries should be within the 
/Python.framework directory.

Nicholas


More information about the CMake mailing list