[Paraview] static linking with python
Burlen Loring
bloring at lbl.gov
Thu Mar 3 16:08:18 EST 2011
On 03/03/2011 05:39 AM, Brad King wrote:
> On 03/02/2011 06:31 PM, Burlen Loring wrote:
>> I'm trying to link paraview static and include python. In the executable
>> link line there are a couple "-Wl,-Bdynamic" appearing and I am not able
>> to locate their source.
>>
>> Can anyone help figure out where these comes from and how to turn them off?
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LINK_SEARCH_END_STATIC
>
> -Brad
Hi Brad,
Thanks for the reply, I have been playing with this unsuccessfully. It
doesn't have the desired effect so I think I'm doing something wrong.
For each executable target I have gone into the relevant CMakeLists.txt
and added a line like:
set_target_properties(vtkpython pvtkpython PROPERTIES
LINK_SEARCH_END_STATIC TRUE)
but i still have -Wl,-Bdynamic in the link line (by the way I was
playing with this yesterday, and the output in the initial post was with
LINK_SEARCH_END_STATIC TRUE). A little more confusing is that when I set
LINK_SEARCH_END_STATIC TRUE I get Bdynamic twice where as if it's set
FALSE I only get it once. That's the opposite of what I would have
expected. The new Bdynamic is appearing right after a Bstatic before the
CMAKE_C_IMPLICIT_LINK_LIBRARIES. But neither case removes the Bdyamic
that appears in the middle of the link line. I'm pasting the output from
each of these below so you can see what I'm talking about.
Burlen
*LINK_SEARCH_END_STATIC FALSE*
Linking CXX executable ../../../bin/vtkpython
cd
/global/homes/l/loring/Franklin/ParaView/PV3-3.8.1-py/VTK/Wrapping/Python &&
/global/common/franklin/usg/cmake/2.8.2/bin/cmake -E cmake_link_script
CMakeFiles/vtkpython.dir/link.txt --verbose=1
/opt/cray/xt-asyncpe/4.3/bin/CC -Wno-deprecated -Wno-deprecated
-static -O3 -DNDEBUG -fPIC -Bstatic -static
CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o -o
../../../bin/vtkpython -rdynamic -L/opt/fftw/3.2.2.1/lib/
-L/opt/cray/pmi/1.0-1.0000.7901.22.1.ss/lib64
-L/opt/cray/mpt/5.1.3/xt/seastar/mpich2-gnu/lib
-L/opt/cray/mpt/5.1.3/xt/seastar/sma/lib64
-L/opt/xt-libsci/10.5.0/gnu/lib/45 -L/opt/xt-libsci/10.5.0/gnu/lib
-L/opt/xt-pe/2.2.48B/lib -L/opt/xt-pe/default/lib
-L/opt/xt-pe/2.2.48B/lib/snos64 -L/opt/xt-pe/default/lib/snos64
-L/usr/lib/alps -L/opt/gcc/4.5.1/snos/lib/gcc/x86_64-suse-linux/4.5.1
-L/opt/gcc/4.5.1/snos/lib64 -L/lib64 -L/opt/gcc/4.5.1/snos/lib -lpthread
/usr/common/graphics/python-cnl/2.7.1/lib/libpython2.7.a -lz
../../../bin/libvtksys.a ../../../bin/libvtkCommon.a
../../../bin/libvtkFiltering.a ../../../bin/libvtkIO.a
../../../bin/libvtkGraphics.a ../../../bin/libvtkImaging.a -Wl,-Bstatic
-lutil ../../../bin/libvtkRendering.a
../../../bin/libvtkVolumeRendering.a ../../../bin/libvtkHybrid.a
../../../bin/libvtkWidgets.a ../../../bin/libvtkParallel.a
../../../bin/libvtkCharts.a ../../../bin/libvtkGeovis.a
../../../bin/libvtkInfovis.a ../../../bin/libvtkViews.a
../../../bin/libvtkCommonPython.a ../../../bin/libvtkFilteringPython.a
../../../bin/libvtkImagingPython.a ../../../bin/libvtkGraphicsPython.a
../../../bin/libvtkGenericFilteringPython.a
../../../bin/libvtkIOPython.a ../../../bin/libvtkRenderingPython.a
../../../bin/libvtkVolumeRenderingPython.a
../../../bin/libvtkHybridPython.a ../../../bin/libvtkWidgetsPython.a
../../../bin/libvtkParallelPython.a ../../../bin/libvtkInfovisPython.a
../../../bin/libvtkGeovisPython.a ../../../bin/libvtkViewsPython.a
../../../bin/libvtkChartsPython.a
../../../bin/libvtkGenericFilteringPythonD.a
../../../bin/libvtkGenericFiltering.a
../../../bin/libvtkVolumeRenderingPythonD.a
../../../bin/libvtkVolumeRendering.a
../../../bin/libvtkParallelPythonD.a ../../../bin/libvtkGeovisPythonD.a
../../../bin/libvtkGeovis.a ../../../bin/libvtkproj4.a
../../../bin/libvtkChartsPythonD.a ../../../bin/libvtkCharts.a
../../../bin/libvtkViewsPythonD.a ../../../bin/libvtkViews.a
../../../bin/libvtkInfovisPythonD.a ../../../bin/libvtkInfovis.a
../../../bin/libvtklibxml2.a -Wl,-Bdynamic -lm
../../../bin/libvtkalglib.a ../../../bin/libvtkWidgetsPythonD.a
../../../bin/libvtkWidgets.a ../../../bin/libvtkHybridPythonD.a
../../../bin/libvtkHybrid.a ../../../bin/libvtkParallel.a
../../../bin/libVPIC.a ../../../bin/libCosmo.a
/opt/cray/mpt/5.1.0/xt/seastar/mpich2-gnu/lib/libmpich.a
../../../bin/libvtkexoIIc.a ../../../bin/libvtkIOPythonD.a
../../../bin/libvtkRenderingPythonD.a ../../../bin/libvtkRendering.a
../../../bin/libvtkIO.a ../../../bin/libvtkDICOMParser.a
../../../bin/libvtkNetCDF_cxx.a ../../../bin/libvtkNetCDF.a
../../../bin/libvtkmetaio.a ../../../bin/libvtksqlite.a
../../../bin/libvtkpng.a ../../../bin/libvtktiff.a
../../../bin/libvtkzlib.a ../../../bin/libvtkjpeg.a
../../../bin/libvtkexpat.a ../../../bin/libvtkftgl.a
../../../bin/libvtkfreetype.a
/usr/common/graphics/ParaView/Mesa-7.5.1/lib64/libOSMesa.a
../../../bin/libvtkImagingPythonD.a ../../../bin/libvtkImaging.a
../../../bin/libvtkGraphicsPythonD.a ../../../bin/libvtkGraphics.a
../../../bin/libvtkverdict.a ../../../bin/libvtkFilteringPythonD.a
../../../bin/libvtkFiltering.a ../../../bin/libvtkCommonPythonD.a
../../../bin/libvtkCommon.a -lpthread ../../../bin/libvtksys.a -ldl -lm
-lmpich -lrt -lsma -lportals -lpmi -lalpslli -lalpsutil -lm -lc -lc_p
-lpthread -lfftw3 -lfftw3f
*LINK_SEARCH_END_STATIC TRUE
*Linking CXX executable ../../../bin/vtkpython
cd
/global/homes/l/loring/Franklin/ParaView/PV3-3.8.1-py/VTK/Wrapping/Python &&
/global/common/franklin/usg/cmake/2.8.2/bin/cmake -E cmake_link_script
CMakeFiles/vtkpython.dir/link.txt --verbose=1
/opt/cray/xt-asyncpe/4.3/bin/CC -Wno-deprecated -Wno-deprecated
-static -O3 -DNDEBUG -fPIC -Bstatic -static
CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o -o
../../../bin/vtkpython -rdynamic -L/opt/fftw/3.2.2.1/lib/
-L/opt/cray/pmi/1.0-1.0000.7901.22.1.ss/lib64
-L/opt/cray/mpt/5.1.3/xt/seastar/mpich2-gnu/lib
-L/opt/cray/mpt/5.1.3/xt/seastar/sma/lib64
-L/opt/xt-libsci/10.5.0/gnu/lib/45 -L/opt/xt-libsci/10.5.0/gnu/lib
-L/opt/xt-pe/2.2.48B/lib -L/opt/xt-pe/default/lib
-L/opt/xt-pe/2.2.48B/lib/snos64 -L/opt/xt-pe/default/lib/snos64
-L/usr/lib/alps -L/opt/gcc/4.5.1/snos/lib/gcc/x86_64-suse-linux/4.5.1
-L/opt/gcc/4.5.1/snos/lib64 -L/lib64 -L/opt/gcc/4.5.1/snos/lib -lpthread
/usr/common/graphics/python-cnl/2.7.1/lib/libpython2.7.a -lz
../../../bin/libvtksys.a ../../../bin/libvtkCommon.a
../../../bin/libvtkFiltering.a ../../../bin/libvtkIO.a
../../../bin/libvtkGraphics.a ../../../bin/libvtkImaging.a -Wl,-Bstatic
-lutil ../../../bin/libvtkRendering.a
../../../bin/libvtkVolumeRendering.a ../../../bin/libvtkHybrid.a
../../../bin/libvtkWidgets.a ../../../bin/libvtkParallel.a
../../../bin/libvtkCharts.a ../../../bin/libvtkGeovis.a
../../../bin/libvtkInfovis.a ../../../bin/libvtkViews.a
../../../bin/libvtkCommonPython.a ../../../bin/libvtkFilteringPython.a
../../../bin/libvtkImagingPython.a ../../../bin/libvtkGraphicsPython.a
../../../bin/libvtkGenericFilteringPython.a
../../../bin/libvtkIOPython.a ../../../bin/libvtkRenderingPython.a
../../../bin/libvtkVolumeRenderingPython.a
../../../bin/libvtkHybridPython.a ../../../bin/libvtkWidgetsPython.a
../../../bin/libvtkParallelPython.a ../../../bin/libvtkInfovisPython.a
../../../bin/libvtkGeovisPython.a ../../../bin/libvtkViewsPython.a
../../../bin/libvtkChartsPython.a
../../../bin/libvtkGenericFilteringPythonD.a
../../../bin/libvtkGenericFiltering.a
../../../bin/libvtkVolumeRenderingPythonD.a
../../../bin/libvtkVolumeRendering.a
../../../bin/libvtkParallelPythonD.a ../../../bin/libvtkGeovisPythonD.a
../../../bin/libvtkGeovis.a ../../../bin/libvtkproj4.a
../../../bin/libvtkChartsPythonD.a ../../../bin/libvtkCharts.a
../../../bin/libvtkViewsPythonD.a ../../../bin/libvtkViews.a
../../../bin/libvtkInfovisPythonD.a ../../../bin/libvtkInfovis.a
../../../bin/libvtklibxml2.a -Wl,-Bdynamic -lm
../../../bin/libvtkalglib.a ../../../bin/libvtkWidgetsPythonD.a
../../../bin/libvtkWidgets.a ../../../bin/libvtkHybridPythonD.a
../../../bin/libvtkHybrid.a ../../../bin/libvtkParallel.a
../../../bin/libVPIC.a ../../../bin/libCosmo.a
/opt/cray/mpt/5.1.0/xt/seastar/mpich2-gnu/lib/libmpich.a
../../../bin/libvtkexoIIc.a ../../../bin/libvtkIOPythonD.a
../../../bin/libvtkRenderingPythonD.a ../../../bin/libvtkRendering.a
../../../bin/libvtkIO.a ../../../bin/libvtkDICOMParser.a
../../../bin/libvtkNetCDF_cxx.a ../../../bin/libvtkNetCDF.a
../../../bin/libvtkmetaio.a ../../../bin/libvtksqlite.a
../../../bin/libvtkpng.a ../../../bin/libvtktiff.a
../../../bin/libvtkzlib.a ../../../bin/libvtkjpeg.a
../../../bin/libvtkexpat.a ../../../bin/libvtkftgl.a
../../../bin/libvtkfreetype.a
/usr/common/graphics/ParaView/Mesa-7.5.1/lib64/libOSMesa.a
../../../bin/libvtkImagingPythonD.a ../../../bin/libvtkImaging.a
../../../bin/libvtkGraphicsPythonD.a ../../../bin/libvtkGraphics.a
../../../bin/libvtkverdict.a ../../../bin/libvtkFilteringPythonD.a
../../../bin/libvtkFiltering.a ../../../bin/libvtkCommonPythonD.a
../../../bin/libvtkCommon.a -lpthread ../../../bin/libvtksys.a -ldl -lm
-Wl,-Bstatic -Wl,-Bdynamic -lmpich -lrt -lsma -lportals -lpmi -lalpslli
-lalpsutil -lm -lc -lc_p -lpthread -lfftw3 -lfftw3f*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110303/0f08cba6/attachment-0001.htm>
More information about the ParaView
mailing list