[Paraview-developers] how do I link library to my reader plugin?

David E DeMarle dave.demarle at kitware.com
Thu Nov 8 10:19:08 EST 2012


Near the end of that I see that it is linking in cxform:
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E
cmake_link_script CMakeFiles/vtkEnlilReader.dir/link.txt --verbose=1
/usr/bin/c++  -O3  -dynamiclib -Wl,-headerpad_max_install_names
-o libvtkEnlilReader.dylib
-install_name /Volumes/Data/Development/vtkPlugins/PV4-201-build/libvtkEnlilReader.dylib
CMakeFiles/vtkEnlilReader.dir/qrc_vtkEnlilReader.cxx.o
CMakeFiles/vtkEnlilReader.dir/vtkEnlilReader.cxx.o
...
/Volumes/Data/Development/ParaView-src/git-version/build-2Nov12/lib/libvtkRenderingMatplotlib-pv3.98.1.dylib
cxform-0.71/libcxform.a
...

And google makes me think gregorian_calendar_to_jd is a function in
that library.

I'm thinking either:
1) there is some weird symbol mismatch (post the output of nm | grep
gregorian_calender on both libcxform.a and vtkEnlilReader.cxx.o to
diagnose)
2) libcxform depends on some other library (add that library to the
target_link_libraries to resolve).

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


More information about the Paraview-developers mailing list