[vtkusers] Problems Compiling and Linking with differrent VTK Versions

Scheurer, Christian scheurer at ira.uka.de
Mon May 22 04:42:10 EDT 2006




Hello,


i have got several VTK Version installed on a special machine, e.g. VTK-4.0, VTK-4.2, VTK-4.2.6 and VTK-4.4.2

I have used VTK-4.4.2 for a year or so, but now I have realized that there are parts of the program which do not work correctly. On another machine there is the same program running with VTK-4.2 or so.

So I tried to compile and link my program with those VTK Version (VTK-4.2, VTK-4.2.6) after intalling them on the former machine.

But I get lots of errors when linking (!! Not compiling !!), at the bottom you can see the output!

Have you an idea?
Thanks at all.

Best regards,
Christian










Linking main
./obj/main.o(.gnu.linkonce.t._ZN13vtkFloatArray11InsertValueEif+0x25): In function `vtkFloatArray::InsertValue(int, float)':
/usr/include/c++/3.3/bits/stl_construct.h:143: undefined reference to `vtkFloatArray::ResizeAndExtend(int)'
./obj/scannercalibration.o(.text+0x2cb): In function `ScannerCalibration::addSphere(float, float*, float, float, float)':
src/scannercalibration.cpp:36: undefined reference to `vtkProperty::SetColor(float, float, float)'
./obj/scannercalibration.o(.text+0x3e1): In function `ScannerCalibration::addPlane(int, float*, float*, int, float, float, float)':
inc/gmatvec/mat.h:258: undefined reference to `vtkPlaneSource::SetPoint1(float, float, float)'
./obj/scannercalibration.o(.text+0x405): In function `ScannerCalibration::addPlane(int, float*, float*, int, float, float, float)':
src/scannercalibration.cpp:55: undefined reference to `vtkPlaneSource::SetPoint2(float, float, float)'
./obj/scannercalibration.o(.text+0x431):src/scannercalibration.cpp:56: undefined reference to `vtkPlaneSource::SetCenter(float, float, float)'
./obj/scannercalibration.o(.text+0x45d): In function `ScannerCalibration::addPlane(int, float*, float*, int, float, float, float)':
inc/gmatvec/mat.h:262: undefined reference to `vtkPlaneSource::SetNormal(float, float, float)'
./obj/scannercalibration.o(.text+0x4af):inc/gmatvec/mat.h:265: undefined reference to `vtkProperty::SetColor(float, float, float)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xcc):src/vtksupplements.cpp:47: undefined reference to `vtkViewport::LocalDisplayToDisplay(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xd0):src/vtksupplements.cpp:48: undefined reference to `vtkViewport::DisplayToNormalizedDisplay(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xd4):src/vtksupplements.cpp:48: undefined reference to `vtkViewport::NormalizedDisplayToViewport(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xd8):src/vtksupplements.cpp:48: undefined reference to `vtkViewport::ViewportToNormalizedViewport(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xdc):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::NormalizedViewportToView(float&, float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xe0):src/vtksupplements.cpp:50: undefined reference to `vtkRenderer::ViewToWorld(float&, float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xe4):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::DisplayToLocalDisplay(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xe8):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::NormalizedDisplayToDisplay(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xec):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::ViewportToNormalizedDisplay(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xf0):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::NormalizedViewportToViewport(float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xf4):src/vtksupplements.cpp:50: undefined reference to `vtkViewport::ViewToNormalizedViewport(float&, float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xf8):src/vtksupplements.cpp:50: undefined reference to `vtkRenderer::WorldToView(float&, float&, float&)'
./obj/vtksupplements.o(.gnu.linkonce.r._ZTV14LockedRenderer+0xfc):src/vtksupplements.cpp:52: undefined reference to `vtkRenderer::PickProp(float, float)'
./obj/texture.o(.text+0x896): In function `texture::Execute()':
inc/gmatvec/mat.h:306: undefined reference to `vtkLookupTable::SetTableValue(int, float, float, float, float)'
./obj/texture.o(.text+0x8d4):inc/gmatvec/mat.h:299: undefined reference to `vtkLookupTable::SetTableValue(int, float, float, float, float)'
./obj/texture.o(.text+0x1543): In function `texture::Execute()':
src/texture.cpp:348: undefined reference to `vtkDataArray::SetTuple2(int, float, float)'
./obj/texture.o(.text+0x1633):src/texture.cpp:362: undefined reference to `vtkLookupTable::SetTableValue(int, float, float,float, float)'
./obj/texture.o(.text+0x197c):src/texture.cpp:451: undefined reference to `vtkLookupTable::SetTableValue(int, float*)'
./obj/texture.o(.text+0x19e2):src/texture.cpp:468: undefined reference to `vtkLookupTable::GetTableValue(int, float*)'
./obj/texture.o(.text+0x1a04):src/texture.cpp:469: undefined reference to `vtkLookupTable::GetTableValue(int, float*)'
./obj/texture.o(.text+0x1a71):src/texture.cpp:475: undefined reference to `vtkLookupTable::SetTableValue(int, float*)'
./obj/texture.o(.text+0x1af9):src/texture.cpp:501: undefined reference to `vtkLookupTable::GetTableValue(int, float*)'
./obj/texture.o(.text+0x1b1b):src/texture.cpp:502: undefined reference to `vtkLookupTable::GetTableValue(int, float*)'
./obj/texture.o(.text+0x1b7a):src/texture.cpp:505: undefined reference to `vtkLookupTable::SetTableValue(int, float*)'
./obj/texture.o(.gnu.linkonce.t._ZN11vtkIntArray11InsertValueEii+0x25): In function `vtkIntArray::InsertValue(int, int)':
inc/gmatvec/array.h:41: undefined reference to `vtkIntArray::ResizeAndExtend(int)'
collect2: ld returned 1 exit status
make: *** [bin/Main] Error 1


More information about the vtkusers mailing list