<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>It seems you did not includes VTK_LIBRARIES in your demo application .
Modifiy your CMake list and add libraries like this.</DIV>
<DIV> </DIV>
<DIV>TARGET_LINK_LIBRARIES(YourProjectName ${VTK_LIBRARIES} )</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Alex</DIV>
<DIV><BR> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=lobo.theslayer@gmail.com
href="mailto:lobo.theslayer@gmail.com">Rodrigo Lovera</A> </DIV>
<DIV><B>Sent:</B> Tuesday, September 04, 2012 10:58 AM</DIV>
<DIV><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV><B>Subject:</B> [vtkusers] Trouble building VTK and using with
C++</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Hi
everyone,
<DIV> </DIV>
<DIV>I'm having serious troubles to compile the vtk's examples for c++, I'm
using Visual C++ Express 2010 and building VTK many times but still can't figure
out what's the right way to go. I'm working on an application for 3D ultrasound
visualization I'll appreciate some help with these</DIV>
<DIV> </DIV>
<DIV>Errors im getting are like these</DIV>
<DIV>
<DIV>1>------ Build started: Project: TestVTK, Configuration: Debug Win32
------</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
unsigned long __thiscall vtkObject::AddObserver(unsigned long,class vtkCommand
*,float)" (?AddObserver@vtkObject@@QAEKKPAVvtkCommand@@M@Z) referenced in
function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
class vtkCoordinate * __thiscall
vtkSliderRepresentation2D::GetPoint2Coordinate(void)"
(?GetPoint2Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ)
referenced in function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
class vtkCoordinate * __thiscall
vtkSliderRepresentation2D::GetPoint1Coordinate(void)"
(?GetPoint1Coordinate@vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ)
referenced in function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetValue(double)"
(?SetValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetMaximumValue(double)"
(?SetMaximumValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function
_main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetMinimumValue(double)"
(?SetMinimumValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function
_main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderer::AddActor(class vtkProp *)"
(?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)"
(?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)
referenced in function _main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
class vtkProperty * __thiscall vtkActor::GetProperty(void)"
(?GetProperty@vtkActor@@QAEPAVvtkProperty@@XZ) referenced in function
_main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)"
(?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced in function
_main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
class vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)"
(?GetOutput@vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in function
_main</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
void __thiscall vtkAbstractWidget::SetWidgetRepresentation(class
vtkWidgetRepresentation *)"
(?SetWidgetRepresentation@vtkAbstractWidget@@IAEXPAVvtkWidgetRepresentation@@@Z)
referenced in function "public: void __thiscall
vtkSliderWidget::SetRepresentation(class vtkSliderRepresentation *)"
(?SetRepresentation@vtkSliderWidget@@QAEXPAVvtkSliderRepresentation@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
__thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)"
(??1vtkSmartPointerBase@@QAE@XZ) referenced in function "public: __thiscall
vtkSmartPointer<class vtkSphereSource>::~vtkSmartPointer<class
vtkSphereSource>(void)"
(??1?$vtkSmartPointer@VvtkSphereSource@@@@QAE@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkSphereSource * __cdecl vtkSphereSource::New(void)"
(?New@vtkSphereSource@@SAPAV1@XZ) referenced in function "public: static class
vtkSmartPointer<class vtkSphereSource> __cdecl vtkSmartPointer<class
vtkSphereSource>::New(void)"
(?New@?$vtkSmartPointer@VvtkSphereSource@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
(?New@vtkPolyDataMapper@@SAPAV1@XZ) referenced in function "public: static class
vtkSmartPointer<class vtkPolyDataMapper> __cdecl vtkSmartPointer<class
vtkPolyDataMapper>::New(void)"
(?New@?$vtkSmartPointer@VvtkPolyDataMapper@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkActor * __cdecl vtkActor::New(void)" (?New@vtkActor@@SAPAV1@XZ)
referenced in function "public: static class vtkSmartPointer<class
vtkActor> __cdecl vtkSmartPointer<class vtkActor>::New(void)"
(?New@?$vtkSmartPointer@VvtkActor@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderer * __cdecl vtkRenderer::New(void)"
(?New@vtkRenderer@@SAPAV1@XZ) referenced in function "public: static class
vtkSmartPointer<class vtkRenderer> __cdecl vtkSmartPointer<class
vtkRenderer>::New(void)"
(?New@?$vtkSmartPointer@VvtkRenderer@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(?New@vtkRenderWindow@@SAPAV1@XZ) referenced in function "public: static class
vtkSmartPointer<class vtkRenderWindow> __cdecl vtkSmartPointer<class
vtkRenderWindow>::New(void)"
(?New@?$vtkSmartPointer@VvtkRenderWindow@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderWindowInteractor * __cdecl
vtkRenderWindowInteractor::New(void)"
(?New@vtkRenderWindowInteractor@@SAPAV1@XZ) referenced in function "public:
static class vtkSmartPointer<class vtkRenderWindowInteractor> __cdecl
vtkSmartPointer<class vtkRenderWindowInteractor>::New(void)"
(?New@?$vtkSmartPointer@VvtkRenderWindowInteractor@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkSliderRepresentation2D * __cdecl
vtkSliderRepresentation2D::New(void)"
(?New@vtkSliderRepresentation2D@@SAPAV1@XZ) referenced in function "public:
static class vtkSmartPointer<class vtkSliderRepresentation2D> __cdecl
vtkSmartPointer<class vtkSliderRepresentation2D>::New(void)"
(?New@?$vtkSmartPointer@VvtkSliderRepresentation2D@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static void __cdecl vtkObjectBase::operator delete(void *)"
(??3vtkObjectBase@@SAXPAX@Z) referenced in function
__unwindfunclet$?New@vtkSliderCallback@@SAPAV1@XZ$0</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static void * __cdecl vtkObjectBase::operator new(unsigned int)"
(??2vtkObjectBase@@SAPAXI@Z) referenced in function "public: static class
vtkSliderCallback * __cdecl vtkSliderCallback::New(void)"
(?New@vtkSliderCallback@@SAPAV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkCommand::vtkCommand(void)" (??0vtkCommand@@IAE@XZ) referenced in
function "public: __thiscall vtkSliderCallback::vtkSliderCallback(void)"
(??0vtkSliderCallback@@QAE@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::Delete(void)"
(?Delete@vtkObjectBase@@UAEXXZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::FastDelete(void)"
(?FastDelete@vtkObjectBase@@UAEXXZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::PrintSelf(class
std::basic_ostream<char,struct std::char_traits<char> > &,class
vtkIndent)"
(?PrintSelf@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::PrintHeader(class
std::basic_ostream<char,struct std::char_traits<char> > &,class
vtkIndent)"
(?PrintHeader@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::PrintTrailer(class
std::basic_ostream<char,struct std::char_traits<char> > &,class
vtkIndent)"
(?PrintTrailer@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkObjectBase::Register(class vtkObjectBase *)"
(?Register@vtkObjectBase@@UAEXPAV1@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::CollectRevisions(class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?CollectRevisions@vtkObjectBase@@MAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::RegisterInternal(class vtkObjectBase
*,int)" (?RegisterInternal@vtkObjectBase@@MAEXPAV1@H@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::UnRegisterInternal(class vtkObjectBase
*,int)" (?UnRegisterInternal@vtkObjectBase@@MAEXPAV1@H@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::ReportReferences(class
vtkGarbageCollector *)"
(?ReportReferences@vtkObjectBase@@MAEXPAVvtkGarbageCollector@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static int __cdecl vtkObjectBase::IsTypeOf(char const *)"
(?IsTypeOf@vtkObjectBase@@SAHPBD@Z) referenced in function "public: static int
__cdecl vtkCommand::IsTypeOf(char const *)"
(?IsTypeOf@vtkCommand@@SAHPBD@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkObjectBase::vtkObjectBase(void)" (??0vtkObjectBase@@IAE@XZ)
referenced in function "public: static class vtkObjectBase * __cdecl
vtkObjectBase::New(void)" (?New@vtkObjectBase@@SAPAV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkCommand::UnRegister(void)" (?UnRegister@vtkCommand@@QAEXXZ)
referenced in function "public: virtual void __thiscall
vtkCommand::UnRegister(class vtkObjectBase *)"
(?UnRegister@vtkCommand@@UAEXPAVvtkObjectBase@@@Z)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
virtual __thiscall vtkObjectBase::~vtkObjectBase(void)"
(??1vtkObjectBase@@MAE@XZ) referenced in function "protected: virtual __thiscall
vtkCommand::~vtkCommand(void)" (??1vtkCommand@@MAE@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
static class vtkSliderWidget * __cdecl vtkSliderWidget::New(void)"
(?New@vtkSliderWidget@@SAPAV1@XZ) referenced in function "public: static class
vtkSmartPointer<class vtkSliderWidget> __cdecl vtkSmartPointer<class
vtkSliderWidget>::New(void)"
(?New@?$vtkSmartPointer@VvtkSliderWidget@@@@SA?AV1@XZ)</DIV>
<DIV>1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *,class
vtkSmartPointerBase::NoReference const &)"
(??0vtkSmartPointerBase@@IAE@PAVvtkObjectBase@@ABVNoReference@0@@Z) referenced
in function "protected: __thiscall vtkSmartPointer<class
vtkSphereSource>::vtkSmartPointer<class vtkSphereSource>(class
vtkSphereSource *,class vtkSmartPointerBase::NoReference const &)"
(??0?$vtkSmartPointer@VvtkSphereSource@@@@IAE@PAVvtkSphereSource@@ABVNoReference@vtkSmartPointerBase@@@Z)</DIV>
<DIV> </DIV>-- <BR><B><FONT color=#000066
face="'comic sans ms', sans-serif">Rodrigo aka WarHearT</FONT></B><BR></DIV>
<P>
<HR>
_______________________________________________<BR>Powered by
www.kitware.com<BR><BR>Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages
on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow
this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></DIV></DIV></DIV></BODY></HTML>