[vtkusers] VTK + Python on Solaris
Epifanio, Craig C
cepi at neo.tamu.edu
Tue Aug 5 19:16:28 EDT 2003
Prabhu,
Thanks for getting back to me. When I try to run vtkpython I get an immediate
segmentation error. (I probably should have mentioned that in my previous
note.) Today I tried to build everything (python + VTK) from source with the
GNU compilers. (Apparently you can get around alot of the non-standard ANSI
stuff by setting VTK_USE_ANSI_STDLIB to ON.) But during the VTK build I get
the following:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[3]: *** [/usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2
This looks to be related to the previous error I observed at runtime with the
Sun compilers. Anyway, I think at this point I may back off and try to build
on a linux platform instead (just to reassure myself that I can build it).
Thanks for your advice, though.
Regards,
Craig
Prabhu Ramachandran <prabhu at aero.iitm.ernet.in> said:
> Hi,
>
> >>>>> "ECC" == Craig C Epifanio writes:
>
> ECC> I am trying to build VTK 4.2.2 with Python 2.2.2 on Solaris 8
> ECC> so that I can try out the MayaVi visualization code. I have
> ECC> sucessfully managed to compile VTK and both the c++ and tcl
> ECC> examples run beautifully for the most part. But when I try
> ECC> to use python I get the following error:
>
> ECC> ImportError: ld.so.1: python: fatal: relocation error: file
> ECC> /usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so: symbol
> ECC>
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_:
> ECC> referenced symbol not found
>
> [snip]
>
> I'm not sure this will help but does it work when you use the
> vtkpython interpreter instead of the Python interpreter? There should
> be a vtkpython executable that is built inside the bin directory.
> This binary was created specifically to help with problems such as
> these.
>
> cheers,
> prabhu
>
--
More information about the vtkusers
mailing list