[vtkusers] static linking problem

Wojciech Bober w.bober at cranfield.ac.uk
Sat Jul 7 08:37:00 EDT 2007


Helo,

I can't link my program with vtk static libraries. I have looked for
solution but I can't solve the problem.
Here is my build log.

**** Build of configuration Debug for project CVP.DataServer ****

make -k all
Building target: CVP.DataServer
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -static -o "CVP.DataServer"  ./DataServer.o   -lvtkIO
-lvtkFiltering -lvtkGenericFiltering -lvtkCommon -lvtkImaging -lvtkGraphics
-lvtkHybrid -lvtkRendering -lvtksys -lvtkParallel -lpthread -ldl
/usr/local/lib/libvtkCommon.a(vtkDynamicLoader.o): In function
`vtkDynamicLoader::OpenLibrary(char const*)':
vtkDynamicLoader.cxx:(.text+0x11b): warning: Using 'dlopen' in statically
linked applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/local/lib/libvtkParallel.a(vtkSocketCommunicator.o): In function
`vtkSocketCommunicator::ConnectTo(char*, int)':
vtkSocketCommunicator.cxx:(.text+0x2327): warning: Using 'gethostbyaddr' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
vtkSocketCommunicator.cxx:(.text+0x22f5): warning: Using 'gethostbyname' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
/usr/local/lib/libvtkParallel.a(vtkSocketCommunicator.o): In function
`vtkSocketCommunicator::ReceivePartialTagged(void*, int, int, int, char
const*)':
vtkSocketCommunicator.cxx:(.text+0xca1): undefined reference to
`vtkByteSwap::Swap4BERange(void*, int)'
vtkSocketCommunicator.cxx:(.text+0xe33): undefined reference to
`vtkByteSwap::Swap8BERange(void*, int)'
/usr/local/lib/libvtkParallel.a(vtkSocketCommunicator.o): In function
`vtkSocketCommunicator::ReceiveTagged(void*, int, int, int, char const*)':
vtkSocketCommunicator.cxx:(.text+0x106c): undefined reference to
`vtkByteSwap::Swap4BE(void*)'
vtkSocketCommunicator.cxx:(.text+0x1225): undefined reference to
`vtkByteSwap::Swap4BE(void*)'
/usr/local/lib/libvtkParallel.a(vtkCommunicator.o): In function
`vtkCommunicator::ReadDataSet(vtkDataSet*)':
vtkCommunicator.cxx:(.text+0x88): undefined reference to
`vtkDataSetReader::New()'
vtkCommunicator.cxx:(.text+0x146): undefined reference to
`vtkDataSetReader::GetOutput()'
/usr/local/lib/libvtkParallel.a(vtkCommunicator.o): In function
`vtkCommunicator::ReadImageData(vtkImageData*)':
vtkCommunicator.cxx:(.text+0x180): undefined reference to
`vtkStructuredPointsReader::New()'
vtkCommunicator.cxx:(.text+0x21e): undefined reference to
`vtkStructuredPointsReader::GetOutput()'
vtkCommunicator.cxx:(.text+0x243): undefined reference to
`vtkStructuredPointsReader::GetOutput()'
/usr/local/lib/libvtkParallel.a(vtkCommunicator.o): In function
`vtkCommunicator::WriteDataSet(vtkDataSet*)':
vtkCommunicator.cxx:(.text+0xb94): undefined reference to
`vtkDataSetWriter::New()'
vtkCommunicator.cxx:(.text+0xc27): undefined reference to
`vtkWriter::SetInput(vtkDataObject*)'
vtkCommunicator.cxx:(.text+0xc60): undefined reference to
`vtkDataWriter::RegisterAndGetOutputString()'
/usr/local/lib/libvtkParallel.a(vtkCommunicator.o): In function
`vtkCommunicator::WriteImageData(vtkImageData*)':
vtkCommunicator.cxx:(.text+0xcda): undefined reference to
`vtkImageClip::New()'
vtkCommunicator.cxx:(.text+0xcef): undefined reference to
`vtkImageAlgorithm::SetInput(vtkDataObject*)'
vtkCommunicator.cxx:(.text+0xd1a): undefined reference to
`vtkImageClip::SetOutputWholeExtent(int*, vtkInformation*)'
vtkCommunicator.cxx:(.text+0xd1f): undefined reference to
`vtkStructuredPointsWriter::New()'
vtkCommunicator.cxx:(.text+0xd4c): undefined reference to
`vtkImageAlgorithm::GetOutput()'
vtkCommunicator.cxx:(.text+0xd5b): undefined reference to
`vtkWriter::SetInput(vtkDataObject*)'
vtkCommunicator.cxx:(.text+0xd91): undefined reference to
`vtkDataWriter::RegisterAndGetOutputString()'
collect2: ld returned 1 exit status

-- 
Wojciech Bober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070707/3ca1df96/attachment.htm>


More information about the vtkusers mailing list