[Paraview-developers] Building ParaView plugin on OS X using ParaView-Development tarball
martyn.gigg at stfc.ac.uk
martyn.gigg at stfc.ac.uk
Fri May 25 04:27:32 EDT 2012
Hi,
I'm trying to build some ParaView plugins for our project on OS X.
I have successfully built ParaView and if I point our CMake code directly at the build's bin directory containing the ParaView libs & cmake files then the plugins build correctly and run as expected.
However, if I generate a development package tarball, in my case ParaView-Development-3.10.1-Darwin-x86_64.tar.gz, and extract this out to some directory and point my project at the lib directory of the result then I get linker errors when I try to build my code. Using make VERBOSE=1 it seems that not all of the ParaView dependencies have been included at the linker step.
The linker line when using the tarball version looks like:
-L/Users/mantidlog/mantid-builds/paraview-3.10.1-patched/tarball/ParaView-Development-3.10.1-Darwin-x86_64/lib/paraview-3.10 -lpqComponents -lvtkPVServerManager
whereas when it is linked using the built copy I get many more libraries included
-L/Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libpqComponents.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVServerManager.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libpqCore.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVServerManager.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVFiltersCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVFilters.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVServerCommonCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVServerCommon.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkPVCommandOptions.dylib -framework CoreServices /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkChartsCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkViewsCS.dylib -framework OpenGL /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkVolumeRenderingCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkVolumeRendering.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkWidgetsCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkHybridCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libKWCommon.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkXdmfCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkXdmf.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libXdmf.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkhdf5.1.8.5.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkCharts.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libQtTesting.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libpqWidgets.dylib /usr/lib/libQtUiTools.a -framework QtHelp /usr/lib/libQtCLucene.dylib -framework Cocoa /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libQVTK.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkViews.pv3.10.dylib -framework QtWebKit -framework phonon -framework QtDBus -framework QtXml -framework QtXmlPatterns /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkInfovisCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkParallelCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkRenderingCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkGenericFilteringCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkGenericFiltering.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkGraphicsCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkImagingCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkIOCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkInfovis.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkWidgets.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkHybrid.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkParallel.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkRendering.pv3.10.dylib -framework QtGui -framework QtSql -framework QtCore /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkIO.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkDICOMParser.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkNetCDF.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkNetCDF_cxx.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkmetaio.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtksqlite.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkpng.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkjpeg.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtktiff.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkexpat.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkGraphics.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkverdict.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkImaging.pv3.10.dylib -lobjc /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkfreetype.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libVPIC.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libCosmo.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkftgl.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkexoIIc.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtklibxml2.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkzlib.pv3.10.dylib -ldl -lpthread -lm /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkalglib.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkFilteringCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkFiltering.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkCommonCS.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkClientServer.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtkCommon.pv3.10.dylib /Users/mantidlog/mantid-builds/paraview-3.10.1-patched/build/bin/libvtksys.pv3.10.dylib -lm -framework QtNetwork
Would someone be able to shed some light on this?
Many Thanks,
Martyn
--
Scanned by iCritical.
More information about the Paraview-developers
mailing list