<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to port my ITK/VTK application from
windowsXP to linux (Fedora core 4)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On both the OS I sucessfully installed the same
software:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CMAKE 2.0.6</FONT></DIV>
<DIV><FONT face=Arial size=2>ITK 2.2.0</FONT></DIV>
<DIV><FONT face=Arial size=2>VTK 4.2-LatestRelease</FONT></DIV>
<DIV><FONT face=Arial size=2>FLTK 1.1.4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but when i try to build the application in linux,
it fails.</FONT></DIV>
<DIV><FONT face=Arial size=2>It has some problems with vtkImagePlaneWidget an
vtk Mappers.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Building in windows with Visual C++ 6.0 it
works.</FONT></DIV>
<DIV><FONT face=Arial size=2>Building in linux with gcc 4.0 with the same CMAKE
List it doesn't!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is gcc4.0 compatible with VTK 4.2?!</FONT></DIV>
<DIV><FONT face=Arial size=2>Compiling VTK with gcc4.0 i had to change
source code of vtkBMPReader and vtkImageReader filter as i found in the
forum!</FONT></DIV>
<DIV><FONT face=Arial size=2>Have i to change some other filters in
VTK?!?</FONT></DIV>
<DIV><FONT face=Arial size=2>I also tryed to build the application with VTK 4.4
but the building fails with the same errors!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It seems that it can't link two object that are in
different library (es. vtkImagePlaneWidget(Hybrid lib) and
vtkPlaneSource(Graphics lib)).</FONT></DIV>
<DIV><FONT face=Arial size=2>I had the same problem with library of my
application..and i just resolved it writing in CMakeList file something like
</FONT><FONT face=Arial size=2>LINK_LIBRARIES(libA libB ecc).</FONT></DIV>
<DIV><FONT face=Arial size=2>How can i do the same for VTK?!</FONT></DIV>
<DIV><FONT face=Arial size=2>What am I missing?!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you!</FONT></DIV>
<DIV><FONT face=Arial size=2>Matteo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are the error messages:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>.</FONT></DIV>
<DIV><FONT face=Arial size=2>Building executable
/usr/local/src/MyCode/VIP/EmbryomicsLocal...<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3d8a):
In function `vtkImagePlaneWidget::Push(double*,
double*)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::Push(float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3e35):
In function
`vtkImagePlaneWidget::PlaceWidget(float*)':<BR>vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3e53):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3eb1):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3ecf):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3f1c):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x3f3a):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x42ab):
In function `vtkImagePlaneWidget::UpdateOrigin()':<BR>vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetCenter(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x4333):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetCenter(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x6319):
In function
`vtkImagePlaneWidget::SetPlaneOrientation(int)':<BR>vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x6337):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x638d):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x63ab):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x63f8):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x6416):vtkImagePlaneWidget.cxx:
undefined reference to `vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x6c0a):
In function
`vtkImagePlaneWidget::SetSlicePosition(float)':<BR>vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::Push(float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x707d):
In function `vtkImagePlaneWidget::Scale(double*, double*, int,
int)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7096):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x72a9):
In function `vtkImagePlaneWidget::Translate(double*,
double*)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x72c2):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7376):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x73da):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x748e):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x74f2):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x75b8):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x76a8):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x76c1):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x774d):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7766):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x77f2):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7acf):
In function `vtkImagePlaneWidget::Rotate(double*, double*,
double*)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7b2a):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7e12):
In function `vtkImagePlaneWidget::Spin(double*,
double*)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x7e6d):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x8689):
In function
`vtkImagePlaneWidget::SetSliceIndex(int)':<BR>vtkImagePlaneWidget.cxx: undefined
reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x86a2):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x8a48):
In function `vtkImagePlaneWidget::SetPoint1(float, float,
float)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint1(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x8a69):
In function
`vtkImagePlaneWidget::SetPoint1(float*)':<BR>vtkImagePlaneWidget.cxx: undefined
reference to
`vtkPlaneSource::SetPoint1(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x8ae8):
In function `vtkImagePlaneWidget::SetPoint2(float, float,
float)':<BR>vtkImagePlaneWidget.cxx: undefined reference to
`vtkPlaneSource::SetPoint2(float, float,
float)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x8b09):
In function
`vtkImagePlaneWidget::SetPoint2(float*)':<BR>vtkImagePlaneWidget.cxx: undefined
reference to
`vtkPlaneSource::SetPoint2(float*)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x96b8):
In function
`vtkImagePlaneWidget::vtkImagePlaneWidget()':<BR>vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::New()'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x9784):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkTextureMapToPlane::New()'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x9bb4):
In function
`vtkImagePlaneWidget::vtkImagePlaneWidget()':<BR>vtkImagePlaneWidget.cxx:
undefined reference to
`vtkPlaneSource::New()'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkHybrid.a(vtkImagePlaneWidget.o)(.text+0x9c80):vtkImagePlaneWidget.cxx:
undefined reference to
`vtkTextureMapToPlane::New()'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkDataSetMapper.o)(.text+0x637):
In function `vtkDataSetMapper::Render(vtkRenderer*,
vtkActor*)':<BR>vtkDataSetMapper.cxx: undefined reference to
`vtkDataSetSurfaceFilter::New()'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkTextMapper.o)(.text+0x30):
In function `vtkTextMapper::CollectRevisions(std::basic_ostream<char,
std::char_traits<char> >&)':<BR>vtkTextMapper.cxx: undefined
reference to `vtkMapper2D::CollectRevisions(std::basic_ostream<char,
std::char_traits<char>
>&)'/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkTextMapper.o)(.text+0x832):
In function `vtkTextMapper::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, vtkIndent)':<BR>vtkTextMapper.cxx:
undefined reference to `vtkMapper2D::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&,
vtkIndent)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkTextMapper.o)(.gnu.linkonce.r._ZTI13vtkTextMapper[typeinfo
for vtkTextMapper]+0x8): undefined reference to `typeinfo for
vtkMapper2D'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkTextMapper.o)(.gnu.linkonce.t._ZN11vtkMapper2DC2Ev[vtkMapper2D::vtkMapper2D()]+0x16):
In function `vtkMapper2D::vtkMapper2D()':<BR>vtkTextMapper.cxx: undefined
reference to `vtable for
vtkMapper2D'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkTextMapper.o)(.gnu.linkonce.t._ZN11vtkMapper2DD2Ev[vtkMapper2D::~vtkMapper2D()]+0x7):
In function `vtkMapper2D::~vtkMapper2D()':<BR>vtkTextMapper.cxx: undefined
reference to `vtable for
vtkMapper2D'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkImageMapper.o)(.text+0x30):
In function `vtkImageMapper::CollectRevisions(std::basic_ostream<char,
std::char_traits<char> >&)':<BR>vtkImageMapper.cxx: undefined
reference to `vtkMapper2D::CollectRevisions(std::basic_ostream<char,
std::char_traits<char>
>&)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkImageMapper.o)(.text+0x64e):
In function `vtkImageMapper::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, vtkIndent)':<BR>vtkImageMapper.cxx:
undefined reference to `vtkMapper2D::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&,
vtkIndent)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkImageMapper.o)(.gnu.linkonce.r._ZTI14vtkImageMapper[typeinfo
for vtkImageMapper]+0x8): undefined reference to `typeinfo for
vtkMapper2D'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkPolyDataMapper2D.o)(.text+0x30):
In function `vtkPolyDataMapper2D::CollectRevisions(std::basic_ostream<char,
std::char_traits<char> >&)':<BR>vtkPolyDataMapper2D.cxx: undefined
reference to `vtkMapper2D::CollectRevisions(std::basic_ostream<char,
std::char_traits<char>
>&)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkPolyDataMapper2D.o)(.text+0x1059):
In function `vtkPolyDataMapper2D::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, vtkIndent)':<BR>vtkPolyDataMapper2D.cxx:
undefined reference to `vtkMapper2D::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&,
vtkIndent)'<BR>/usr/local/src/MyCode/VTKbin/bin/libvtkRendering.a(vtkPolyDataMapper2D.o)(.gnu.linkonce.r._ZTI19vtkPolyDataMapper2D[typeinfo
for vtkPolyDataMapper2D]+0x8): undefined reference to `typeinfo for
vtkMapper2D'<BR>collect2: ld returned 1 exit status<BR>make[1]: ***
[/usr/local/src/MyCode/VIP/EmbryomicsLocal] Error 1<BR>make: ***
[default_target] Error 2<BR></FONT></DIV></BODY></HTML>