[vtkusers] using 3rd party shared libs with wrapping enabled

Luke J West ljw at soc.soton.ac.uk
Tue Feb 15 18:10:33 EST 2005


Hi, I've written some VTK classes which use a third party shared library, and 
are working fine. 
 
However, I am now tying to incorporate them into VTK so that my users can 
access them from TCL and python, but I've not been able to get VTK to see the 
libraries at build time - and at the point where it tries to build the TCL 
wrappers in particular. 
 
At the end is a transcript of what happens when I type make. 
 
FYI - during the ccmake step, I append the -L and -l options appropriate for 
the third party libraries to the following variables... 
 
 CMAKE_CXX_FLAGS 
 CMAKE_EXE_LINKER_FLAGS 
 CMAKE_MODULE_LINKER_FLAGS 
 CMAKE_SHARED_LINKER_FLAGS 
 
As far as I can see, that's everywhere, but have I missed something? 
Is there anywhere else I need to specify libraries? 
 
I've gotten as far as I can with this and would REALLY REALLY appreciate input 
from anyone who has successfully or unsuccessfully incoporated code (that uses 
an external shared library) into VTK. 
 
If I get this sussed - I'll write a howto for the community. 
Thanks very much, 
 
Luke 
 
Now here's that transcript.... 
 
/local/VTK> make 
Building dependencies. cmake.depends... 
-- Compiling VTK CMake commands 
-- Compiling VTK CMake commands - done 
-- Loading VTK CMake commands 
-- Loading VTK CMake commands - done 
-- Using Buildname: Linux-c++ 
cmake.depends is up-to-date 
/local/VTK/Wrapping: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities: building default_target 
Building dependencies. cmake.depends... 
cmake.depends is up-to-date 
/local/VTK/Utilities/zlib: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/jpeg: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/png: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/tiff: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/expat: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/Doxygen: building default_target 
Building dependencies. cmake.depends... 
cmake.depends is up-to-date 
/local/VTK/Utilities/freetype: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Utilities/ftgl: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Common: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Filtering: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Imaging: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Graphics: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/IO: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Rendering: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Hybrid: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Patented: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Parallel: building default_target 
Building dependencies. cmake.depends... 
/local/VTK/Wrapping/Tcl: building default_target 
Building dependencies. cmake.depends... 
Building executable /local/VTK/bin/vtk... 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSet::read(void*, H5::DataType const&, H5::DataSpace const&, 
H5::DataSpace const&, H5::DSetMemXferPropList const&) const' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSet::getSpace() const' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DSetMemXferPropList::DEFAULT' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::FileAccPropList::DEFAULT' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSpace::DataSpace[in-charge](int, unsigned long long const*, unsigned 
long long const*)' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::CommonFG::openDataSet(char const*) const' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSet::DataSet[in-charge]()' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to `H5::Group::~Group 
[in-charge]()' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::H5File::H5File[in-charge](char const*, unsigned, H5::FileCreatPropList 
const&, H5::FileAccPropList const&)' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::PredType::NATIVE_INT' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSpace::~DataSpace [in-charge]()' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::FileCreatPropList::DEFAULT' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to `H5::H5File::~H5File 
[in-charge]()' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::CommonFG::openGroup(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) const' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSet::~DataSet [in-charge]()' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::DataSpace::selectHyperslab(H5S_seloper_t, unsigned long long const*, long 
long const*, unsigned long long const*, unsigned long longconst*) const' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::IdComponent::operator=(H5::IdComponent const&)' 
/local/VTK/bin/libvtkCommonTCL.so: undefined reference to 
`H5::CommonFG::openDataSet(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) const' 
collect2: ld returned 1 exit status 
make[3]: *** [/local/VTK/bin/vtk] Error 1 
make[2]: *** [default_target] Error 2 
make[1]: *** [default_target_Wrapping_Tcl] Error 2 
make: *** [default_target] Error 2 
 
 
Luke J West  :  e-Science  Research Assistant 
--------------------------------------------- 
Room 566/12, School of Ocean & Earth Sciences 
Southampton Oceanography Centre,  Southampton 
SO14 3ZH  United Kingdom 
--------------------------------------------- 
Tel: +44 23 8059 4801   Fax: +44 23 8059 3052 
Mob: +44 79 6107 4783 Skype: ljwest 
--------------------------------------------- 
http://godiva.soc.soton.ac.uk/ 

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the vtkusers mailing list