[vtk-developers] VTK Python on Sun
Bill Hoffman
bill.hoffman at kitware.com
Thu May 2 14:13:59 EDT 2002
It would seem we are stuck with adding -lCrun for this compiler....
It can be done in the CMakeList file with IF's on the CMAKE_SYSTEM and
CMAKE_COMPILER_IS_GNUCXX.
http://docs.sun.com/htmlcoll/coll.32.8/iso-8859-1/CPPPUG/Building.html
Note The CC -G command does not pass any -l options to ld. If you want the shared library to have a dependency on another shared library, you must pass the necessary -l option on the command line. For example, if you want the shared library to be dependent upon libCrun.so, you must pass -lCrun on the command line.
At 02:02 PM 5/2/2002 -0400, David Gobbi wrote:
>On 2 May 2002, Andy Cedilnik wrote:
>
>> My observations so far:
>> Yes, it has to do with C++ compiler. When libvtkCommon.so and so on are
>> build they do not link to libCrun.so. When vtk executable is build it
>> does. The result is that VTK/Python on Sun using Sun C++ compiler will
>> not work. I even tried to link libCrun by myself and that resulted in:
>>
>> Python 1.5.2 (#5, May 1 2002, 11:42:34) [C] on sunos5
>> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>> >>> import vtk
>[snip]
>> /space/andy/vtk/VTK-bin/bin/libvtkCommonPython.so: symbol
>> __1cDstdEcerr_: referenced symbol not found
>>
>> And so on.
>
>Some detective work with nm and grep should allow you to find all of the
>libraries that have to be linked to. This will add a lot of extra stuff
>in CMake that is specific to a single compiler on a single platform,
>but the other solution (re-linking the python executable with C++)
>is really just a one-shot solution.
>
> - David
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/vtk-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20020502/f4df9a64/attachment.html>
More information about the vtk-developers
mailing list