[vtkusers] CMake with MFC GuiSupport sample vtk 6.0 rc3
Mike Gagnon
mike at gagnon.com
Thu Jun 20 15:55:05 EDT 2013
After generating the solution files for the SDI samples with CMake,
vtkMFC.lib is referenced in the solution, but it does not exist after a
successful build. I do find vtkGUISupportMFC-6.0.lib in the output lib
folder though. So I'm thinking the name has just changed since support
for mfc is now in a module.
After getting nowhere on fixing the last linker problems, I tried
rebuilding vtk with a few different options. I'm not sure it's solvable
this way though.
In any case, I tried removing the reference to vtkmfc.lib and replaced
it with ctkGUISupportMFC-6.0.lib. Then kept adding library files to the
project to get along further until all .libs are referenced. The below
unresolved external symbol errors are what I'm left with.
Any help would be greatly appreciated. Thanks!
Mike
2>vtkSDI.cpp.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)"
(??0vtkDebugLeaksManager@@QAE at XZ)
2>MainFrm.obj : error LNK2019: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)"
(??0vtkDebugLeaksManager@@QAE at XZ) referenced in function "void __cdecl
`dynamic initializer for 'vtkDebugLeaksManagerInstance''(void)"
(??__EvtkDebugLeaksManagerInstance@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)"
(??0vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)"
(??0vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::vtkDebugLeaksManager(void)"
(??0vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::~vtkDebugLeaksManager(void)"
(??1vtkDebugLeaksManager@@QAE at XZ) referenced in function "public:
__thiscall std::_String_alloc<0,struct
std::_String_base_types<char,class std::allocator<char> >
>::_String_alloc<0,struct std::_String_base_types<char,class
std::allocator<char> > >(class std::allocator<char> const &)"
(??0?$_String_alloc@$0A at U?$_String_base_types at DV?$allocator at D@std@@@std@@@std@@QAE at ABV?$allocator at D@1@@Z)
2>MainFrm.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::~vtkDebugLeaksManager(void)"
(??1vtkDebugLeaksManager@@QAE at XZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::~vtkDebugLeaksManager(void)"
(??1vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::~vtkDebugLeaksManager(void)"
(??1vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "public:
__thiscall vtkDebugLeaksManager::~vtkDebugLeaksManager(void)"
(??1vtkDebugLeaksManager@@QAE at XZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Construct(void)"
(?vtkInteractionStyle_AutoInit_Construct@@YAXXZ) referenced in function
__unwindfunclet$??0?$_String_alloc@$0A at U?$_String_base_types at DV?$allocator at D@std@@@std@@@std@@QAE at ABV?$allocator at D@1@@Z$0
2>MainFrm.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkInteractionStyle_AutoInit_Construct(void)"
(?vtkInteractionStyle_AutoInit_Construct@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkInteractionStyle_AutoInit_Construct(void)"
(?vtkInteractionStyle_AutoInit_Construct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Construct(void)"
(?vtkInteractionStyle_AutoInit_Construct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Construct(void)"
(?vtkInteractionStyle_AutoInit_Construct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Destruct(void)"
(?vtkInteractionStyle_AutoInit_Destruct@@YAXXZ)
2>MainFrm.obj : error LNK2019: unresolved external symbol "void __cdecl
vtkInteractionStyle_AutoInit_Destruct(void)"
(?vtkInteractionStyle_AutoInit_Destruct@@YAXXZ) referenced in function
"public: __thiscall
vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit(void)"
(??1vtkRenderingCore_AutoInit@@QAE at XZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkInteractionStyle_AutoInit_Destruct(void)"
(?vtkInteractionStyle_AutoInit_Destruct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Destruct(void)"
(?vtkInteractionStyle_AutoInit_Destruct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkInteractionStyle_AutoInit_Destruct(void)"
(?vtkInteractionStyle_AutoInit_Destruct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Construct(void)"
(?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ) referenced in function
__unwindfunclet$??0?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at PBD@Z$0
2>MainFrm.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeType_AutoInit_Construct(void)"
(?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeType_AutoInit_Construct(void)"
(?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Construct(void)"
(?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Construct(void)"
(?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Destruct(void)"
(?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ) referenced in function
"public: __thiscall std::_String_alloc<0,struct
std::_String_base_types<char,class std::allocator<char> >
>::_String_alloc<0,struct std::_String_base_types<char,class
std::allocator<char> > >(class std::allocator<char> const &)"
(??0?$_String_alloc@$0A at U?$_String_base_types at DV?$allocator at D@std@@@std@@@std@@QAE at ABV?$allocator at D@1@@Z)
2>MainFrm.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeType_AutoInit_Destruct(void)"
(?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeType_AutoInit_Destruct(void)"
(?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Destruct(void)"
(?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeType_AutoInit_Destruct(void)"
(?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Construct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Construct@@YAXXZ) referenced in
function "public: __thiscall std::_String_alloc<0,struct
std::_String_base_types<char,class std::allocator<char> >
>::~_String_alloc<0,struct std::_String_base_types<char,class
std::allocator<char> > >(void)"
(??1?$_String_alloc@$0A at U?$_String_base_types at DV?$allocator at D@std@@@std@@@std@@QAE at XZ)
2>MainFrm.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeTypeOpenGL_AutoInit_Construct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Construct@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeTypeOpenGL_AutoInit_Construct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Construct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Construct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2019: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Destruct@@YAXXZ) referenced in
function "public: void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned
int,unsigned int)"
(?_Copy@?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAEXII at Z)
2>MainFrm.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeTypeOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Destruct@@YAXXZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingFreeTypeOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingFreeTypeOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingFreeTypeOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Construct(void)"
(?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ)
2>MainFrm.obj : error LNK2019: unresolved external symbol "void __cdecl
vtkRenderingOpenGL_AutoInit_Construct(void)"
(?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ) referenced in function
"public: __thiscall
vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit(void)"
(??0vtkRenderingCore_AutoInit@@QAE at XZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingOpenGL_AutoInit_Construct(void)"
(?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Construct(void)"
(?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Construct(void)"
(?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ)
2>vtkSDI.cpp.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingOpenGL_AutoInit_Destruct@@YAXXZ)
2>MainFrm.obj : error LNK2019: unresolved external symbol "void __cdecl
vtkRenderingOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingOpenGL_AutoInit_Destruct@@YAXXZ) referenced in function
"public: __thiscall
vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit(void)"
(??1vtkRenderingCore_AutoInit@@QAE at XZ)
2>StdAfx.obj : error LNK2001: unresolved external symbol "void __cdecl
vtkRenderingOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDIView.obj : error LNK2001: unresolved external symbol "void
__cdecl vtkRenderingOpenGL_AutoInit_Destruct(void)"
(?vtkRenderingOpenGL_AutoInit_Destruct@@YAXXZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(int)"
(?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@H at Z) referenced
in function "public: class vtkAlgorithmOutput * __thiscall
vtkAlgorithm::GetOutputPort(void)"
(?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
static class vtkDataSetReader * __cdecl vtkDataSetReader::New(void)"
(?New at vtkDataSetReader@@SAPAV1 at XZ) referenced in function "public:
virtual int __thiscall CvtkSDIDoc::OnOpenDocument(char const *)"
(?OnOpenDocument at CvtkSDIDoc@@UAEHPBD at Z)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
static class vtkDataSetMapper * __cdecl vtkDataSetMapper::New(void)"
(?New at vtkDataSetMapper@@SAPAV1 at XZ) referenced in function "protected:
__thiscall CvtkSDIDoc::CvtkSDIDoc(void)" (??0CvtkSDIDoc@@IAE at XZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
static class vtkActor * __cdecl vtkActor::New(void)"
(?New at vtkActor@@SAPAV1 at XZ) referenced in function "protected: __thiscall
CvtkSDIDoc::CvtkSDIDoc(void)" (??0CvtkSDIDoc@@IAE at XZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
static class vtkActor2D * __cdecl vtkActor2D::New(void)"
(?New at vtkActor2D@@SAPAV1 at XZ) referenced in function "protected:
__thiscall CvtkSDIDoc::CvtkSDIDoc(void)" (??0CvtkSDIDoc@@IAE at XZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
static class vtkTextMapper * __cdecl vtkTextMapper::New(void)"
(?New at vtkTextMapper@@SAPAV1 at XZ) referenced in function "protected:
__thiscall CvtkSDIDoc::CvtkSDIDoc(void)" (??0CvtkSDIDoc@@IAE at XZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkRenderer::AddActor(class vtkProp *)"
(?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function
"private: void __thiscall CvtkSDIDoc::ExecutePipeline(void)"
(?ExecutePipeline at CvtkSDIDoc@@AAEXXZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkRenderer::RemoveActor(class vtkProp *)"
(?RemoveActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function
"private: void __thiscall CvtkSDIDoc::RemoveActors(void)"
(?RemoveActors at CvtkSDIDoc@@AAEXXZ)
2>vtkSDIDoc.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkRenderer::ResetCamera(void)"
(?ResetCamera at vtkRenderer@@QAEXXZ) referenced in function "private: void
__thiscall CvtkSDIDoc::ExecutePipeline(void)"
(?ExecutePipeline at CvtkSDIDoc@@AAEXXZ)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
static void * __cdecl vtkObjectBase::operator new(unsigned int)"
(??2vtkObjectBase@@SAPAXI at Z) referenced in function "public: static
class vtkCallbackCommand * __cdecl vtkCallbackCommand::New(void)"
(?New at vtkCallbackCommand@@SAPAV1 at XZ)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
static void __cdecl vtkObjectBase::operator delete(void *)"
(??3vtkObjectBase@@SAXPAX at Z) referenced in function
__unwindfunclet$?New at vtkCallbackCommand@@SAPAV1 at XZ$0
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
unsigned long __thiscall vtkObject::AddObserver(unsigned long,class
vtkCommand *,float)" (?AddObserver at vtkObject@@QAEKKPAVvtkCommand@@M at Z)
referenced in function "public: virtual void __thiscall
CvtkSDIView::OnInitialUpdate(void)" (?OnInitialUpdate at CvtkSDIView@@UAEXXZ)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderer * __cdecl vtkRenderer::New(void)"
(?New at vtkRenderer@@SAPAV1 at XZ) referenced in function "public: __thiscall
CvtkSDIView::CvtkSDIView(void)" (??0CvtkSDIView@@QAE at XZ)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
__thiscall vtkMFCWindow::vtkMFCWindow(class CWnd *)"
(??0vtkMFCWindow@@QAE at PAVCWnd@@@Z) referenced in function "public:
virtual void __thiscall CvtkSDIView::OnInitialUpdate(void)"
(?OnInitialUpdate at CvtkSDIView@@UAEXXZ)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkMFCWindow::DrawDC(class CDC *)"
(?DrawDC at vtkMFCWindow@@QAEXPAVCDC@@@Z) referenced in function "public:
virtual void __thiscall CvtkSDIView::OnDraw(class CDC *)"
(?OnDraw at CvtkSDIView@@UAEXPAVCDC@@@Z)
2>vtkSDIView.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkCallbackCommand::vtkCallbackCommand(void)"
(??0vtkCallbackCommand@@IAE at XZ) referenced in function "public: static
class vtkCallbackCommand * __cdecl vtkCallbackCommand::New(void)"
(?New at vtkCallbackCommand@@SAPAV1 at XZ)
2>C:\devlib\VTK6.0.0.rc3\src\Examples\GUI\Win32\vtkMFC\build\vtkSDI\Debug\vtkSDI.exe
: fatal error LNK1120: 26 unresolved externals
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
More information about the vtkusers
mailing list