[vtkusers] Problem with linking

jonathan gallon jonathan.gallon at gmail.com
Tue Dec 19 06:42:16 EST 2006


Hello,

For a university project, we must use VTK. The teacher send us a base for
project which compile at te university (on ubuntu).
But I try to install vtk on my computer to work in my home but when I
compile the project, I have this error :

g++ -c -pipe -O2 -Wno-deprecated -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/qt4/Qt
-I/usr/local/include/vtk -I/usr/include -I/usr/X11R6/include -I. -I. -o
moc_visQtSliderSpinBox.o moc_visQtSliderSpinBox.cpp
g++ -o cellsearch main.visCellSearchInterface.o visCellSearchInterface.o
visCore.o visQtSliderSpinBox.o visVtkPolyDataViewer.o
vtkSelectedCellsMarchingCubes.o moc_visCellSearchInterface.o
moc_visQtSliderSpinBox.o -L/usr/lib -L/usr/local/lib/vtk -lQGLViewer
-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkPatented-lvtkRendering
-lvtkFiltering -lvtkHybrid -lvtkIO -lvtkpng -lvtkzlib -lvtkjpeg -lpthread
-L/usr/lib -lGL -lGLU -L/usr/X11R6/lib -lXt -lX11 -lXext -lQtGui -lQtCore
-lpthread
/usr/local/lib/vtk/libvtkIO.a(vtkDataReader.o): dans la fonction «
vtkByteSwap::Swap4BERange(int*, int)»:
vtkDataReader.cxx:(.text._ZN11vtkByteSwap12Swap4BERangeEPii[vtkByteSwap::Swap4BERange(int*,
int)]+0x14): référence indéfinie vers « vtkByteSwap::Swap4BERange(char*,
int)»
/usr/local/lib/vtk/libvtkIO.a(vtkDataReader.o): dans la fonction «
vtkByteSwap::Swap4BERange(float*, int)»:
vtkDataReader.cxx:(.text._ZN11vtkByteSwap12Swap4BERangeEPfi[vtkByteSwap::Swap4BERange(float*,
int)]+0x14): référence indéfinie vers « vtkByteSwap::Swap4BERange(char*,
int)»
/usr/local/lib/vtk/libvtkIO.a(vtkDataReader.o): dans la fonction «
vtkByteSwap::Swap2BERange(short*, int)»:
vtkDataReader.cxx:(.text._ZN11vtkByteSwap12Swap2BERangeEPsi[vtkByteSwap::Swap2BERange(short*,
int)]+0x14): référence indéfinie vers « vtkByteSwap::Swap2BERange(char*,
int)»
/usr/local/lib/vtk/libvtkIO.a(vtkDataReader.o): dans la fonction «
vtkByteSwap::Swap8BERange(double*, int)»:
vtkDataReader.cxx:(.text._ZN11vtkByteSwap12Swap8BERangeEPdi[vtkByteSwap::Swap8BERange(double*,
int)]+0x14): référence indéfinie vers « vtkByteSwap::Swap8BERange(char*,
int)»
/usr/local/lib/vtk/libvtkIO.a(vtkStructuredPointsReader.o): dans la fonction
« vtkStructuredPointsReader::vtkStructuredPointsReader()»:
vtkStructuredPointsReader.cxx:(.text+0x2c5b): référence indéfinie vers «
vtkStructuredPoints::New() »
/usr/local/lib/vtk/libvtkIO.a(vtkStructuredPointsReader.o): dans la fonction
« vtkStructuredPointsReader::vtkStructuredPointsReader()»:
vtkStructuredPointsReader.cxx:(.text+0x2cdf): référence indéfinie vers «
vtkStructuredPoints::New() »
collect2: ld returned 1 exit status

I use the debian etch distribution. I ask to my teacher but we don't
understand why this don't found the function.
(Also I try on an another computer, always on debian etch, and I obtains the
same error)

If somebody know the solution,

Thanks,

J. Gallon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061219/644c63f7/attachment.htm>


More information about the vtkusers mailing list