While building salome (www.salome-platform.org), the system complains that it cannot find libvtkCommonPython (cd . && ln -s SALOME_GenericObjSK.lo SALOME_GenericObjSK.o) i686-pc-linux-gnu-gcc -shared SalomePy.lo SALOMEDSSK.lo SALOMEDS_AttributesSK.lo SALOME_ExceptionSK.lo SALOME_GenericObjSK.lo -L/var/tmp/portage/sci-misc/salome-gui-3.2.6/work/salome3.2.6_SRC/GUI_SRC_3.2.6/src/Qtx/.libs -L../../lib/salome -lstdc++ -L/usr/lib/python2.4/config -lpython2.4 -ldl -lutil -L/usr/qt/3/lib -lqt-mt -L/usr/lib/vtk-5.0 -L/usr/lib/vtk-5.0/python -lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid -lGL -lGLU -lX11 -lXt -lGL -lGLU -lSalomeApp -lvtkCommonPython -lvtkGraphicsPython -lvtkImagingPython -lnsl -lm -ldl -lc -Wl,-soname -Wl,libSalomePy.so.0 -o .libs/libSalomePy.so.0.0.0 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lvtkCommonPython collect2: ld returned 1 exit status make[3]: *** [libSalomePy.la] Error 1 It turns out that the /etc/env.d/40vtk does not add /usr/lib/python2.4/site-packages/vtk/ to the LDPATH. Markus, can you fix that? Daniel Reproducible: Always
Markus, I went a little bit further with that. Salome-GUI was clearly specifying -L/usr/lib/vtk-5.0/python where the libraries were in /usr/lib/python2.4/site-packages/vtk. Once I replaced the path in the right file in salome, things went right. So I removed the LDPATH=/usr/lib/python2.4/site-packages/vtk I had put in /etc/env.d/40vtk. Two questions though: - Why did the system never found the libraries? They should have been available anyway, whatever the -L/blabla, isn't it? - Is there anything that should be corrected in the vtk ebuild to avoid such situations? Daniel
Markus, What about that question? Daniel
Hi Daniel, Thanks for the reminder and happy New Year! From what you posted it seems to me that this is something that should be addressed by Salome not VTK. All python related libraries should ideally end up in /usr/lib/python2.x/site-packages and that's where packages should look for them. Does Solome have a switch for this? Simply assuming that the libraries are in /usr/lib/vtk-5.0/python seems fairly random. cheers, Markus
Hi Daniel, Where are we with this issue. Still a problem? Thanks, Markus
Not in tree anymore