[vtkusers] Linking error

Ravi Samala raviksamala at yahoo.com
Wed Oct 5 10:37:26 EDT 2005


hi VTKUsers,

I am back with a similar problem. When I initialize an
object for the class vtkImagePlaneWidget class

vtkImagePlaneWidget* planeWidgetZ =
vtkImagePlaneWidget::New();

I get the following error:
-------------------------------------------------------
Building executable
/dmip/kundusj/3D/VTK/VTKSourc/VTK/3DPMfilr/next/src3d...
Undefined			first referenced
 symbol  			    in file
vtkImagePlaneWidget::New(void)      ImageProcess.o
ld: fatal: Symbol referencing errors. No output
written to
/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next/src3d
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
c++          -Wno-deprecated
-I/usr/openwin/share/include -fPIC  BaseImg.o
ImageProcess.o TiffImg.o VffImg.o DicomImg.o StdAfx.o
TomoImg.o AnisotropicDiffusion.o ImageProcess3DAlgos.o
   -o
/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next/src3d
 -L/dmip/kundusj/3D/VTK/VTKSource/VTK/bin
-L/usr/openwin/lib -lvtkzlib -lvtkjpeg -lvtkpng
-lvtktiff -lvtkexpat -lvtkfreetype -lvtkftgl
-lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics
-lvtkIO -lvtkRendering -lGLU -lGL -lX11 -lXext -ltiff
-lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat
-lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon
-lthread -ldl -lm -lSM -lICE -lSM -lICE -lsocket -lnsl
-lsocket -lnsl -lvtkftgl -lvtkfreetype -lXt -lSM -lICE
-lsocket -lnsl
-Wl,-R/dmip/kundusj/3D/VTK/VTKSource/VTK/bin:/usr/openwin/lib

make: Fatal error: Command failed for target
`/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next/src3d'
Current working directory
/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next
*** Error code 1
The following command caused the error:
make  all
make: Fatal error: Command failed for target
`default_target'
-------------------------------------------------------

thank you,

Ravi.

--- Ravi Samala <raviksamala at yahoo.com> wrote:

> hi 
> 
> I found the problem....
> 
> I included the path
> 
> /usr/VTK/Hybrid
> in the file VTKConfig.cmake
> 
> 
> regards,
> 
> Ravi
> 
> --- Ravi Samala <raviksamala at yahoo.com> wrote:
> 
> > hello VTKUsers,
> > 
> > my program works fine utill I 
> > 
> > include "vtkImagePlaneWidget.h"
> > 
> > the error I got is as follows:
> >
> ----------------------------------------------------
> > Building object file ImageProcess.o...
> >
>
/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next/ImageProcess.cpp:16:
> > vtkImagePlaneWidget.h: No such file or directory
> > *** Error code 1
> > The following command caused the error:
> > c++ -o ImageProcess.o      -Wno-deprecated
> > -I/usr/openwin/share/include
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Rendering
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/IO
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Imaging
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Graphics
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Filtering
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Common
> >
>
-I/dmip/kundusj/3D/VTK/VTKSource/VTK/Common/Testing/Cxx
> >
> -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Utilities/zlib
> >
> -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Utilities/jpeg
> > -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Utilities/png
> >
> -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Utilities/tiff
> >
> -I/dmip/kundusj/3D/VTK/VTKSource/VTK/Utilities/expat
> > 
> > -c
> >
>
/dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next/ImageProcess.cpp
> > make: Fatal error: Command failed for target
> > `ImageProcess.o'
> > Current working directory
> > /dmip/kundusj/3D/VTK/VTKSource/VTK/3DPMfilr/next
> > *** Error code 1
> > The following command caused the error:
> > make  all
> > make: Fatal error: Command failed for target
> > `default_target'
> > 
> > 
> >
> ---------------------------------------------------
> > 
> > Thanks in advance,
> > 
> > Ravi.
> > 
> > 
> > 		
> > __________________________________ 
> > Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > http://mail.yahoo.com
> > _______________________________________________
> > This is the private VTK discussion list. 
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> > 
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the vtkusers mailing list