[vtkusers] compilation/linking problems with vtk and qt

Mark Roden mmroden at gmail.com
Tue Mar 29 15:13:32 EDT 2011


Hi all,

I'm getting compilation and linking errors with vs 2008 64 bit vtk and
qt.  My cmake options are:
examples
shared libraries
MP_Flag true
MP Num Processors 3
use n ways arrays
use qt
use rendering
use guisupport (only advanced option that's not set to default)


The compilation errors are:
Error	55	fatal error C1083: Cannot open include file:
'vtkDataObjectToTable.h': No such file or
directory	d:\src\vtk\VTK\Examples\GUI\Qt\SimpleView\SimpleView.cxx	14
Error	56	fatal error C1083: Cannot open include file:
'vtkGraphLayoutView.h': No such file or
directory	d:\src\vtk\VTK\Examples\GUI\Qt\GraphicsView\GraphLayoutViewItem.cpp	3
Error	57	fatal error C1083: Cannot open include file:
'vtkTreeRingView.h': No such file or
directory	d:\src\vtk\VTK\Examples\GUI\Qt\GraphicsView\TreeRingViewItem.cpp	3

And the linker errors are:
Error	48	fatal error LNK1120: 45 unresolved
externals	D:\src\vtk\VTK-build64-vs09-MVS\bin\Debug\QVTK.dll
Error	1	error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static int __cdecl
vtkSQLDatabase::IsTypeOf(char const *)"
(__imp_?IsTypeOf at vtkSQLDatabase@@SAHPEBD at Z) referenced in function
"public: static int __cdecl vtkQtSQLDatabase::IsTypeOf(char const *)"
(?IsTypeOf at vtkQtSQLDatabase@@SAHPEBD at Z)	vtkQtSQLDatabase.obj
Error	3	error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static int __cdecl
vtkSQLQuery::IsTypeOf(char const *)"
(__imp_?IsTypeOf at vtkSQLQuery@@SAHPEBD at Z) referenced in function
"public: static int __cdecl vtkQtSQLQuery::IsTypeOf(char const *)"
(?IsTypeOf at vtkQtSQLQuery@@SAHPEBD at Z)	vtkQtSQLDatabase.obj
Error	5	error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: virtual __cdecl
vtkSQLDatabase::~vtkSQLDatabase(void)"
(__imp_??1vtkSQLDatabase@@MEAA at XZ) referenced in function "protected:
virtual __cdecl vtkQtSQLDatabase::~vtkQtSQLDatabase(void)"
(??1vtkQtSQLDatabase@@MEAA at XZ)	vtkQtSQLDatabase.obj
Error	6	error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: __cdecl
vtkSQLDatabase::vtkSQLDatabase(void)"
(__imp_??0vtkSQLDatabase@@IEAA at XZ) referenced in function "protected:
__cdecl vtkQtSQLDatabase::vtkQtSQLDatabase(void)"
(??0vtkQtSQLDatabase@@IEAA at XZ)	vtkQtSQLDatabase.obj
Error	7	error LNK2001: unresolved external symbol "public: virtual
class vtkStdString __cdecl vtkSQLDatabase::GetTablePreamble(bool)"
(?GetTablePreamble at vtkSQLDatabase@@UEAA?AVvtkStdString@@_N at Z)	vtkQtSQLDatabase.obj
Error	8	error LNK2001: unresolved external symbol "public: virtual
class vtkStdString __cdecl
vtkSQLDatabase::GetColumnSpecification(class vtkSQLDatabaseSchema
*,int,int)" (?GetColumnSpecification at vtkSQLDatabase@@UEAA?AVvtkStdString@@PEAVvtkSQLDatabaseSchema@@HH at Z)	vtkQtSQLDatabase.obj
Error	9	error LNK2001: unresolved external symbol "public: virtual
class vtkStdString __cdecl vtkSQLDatabase::GetIndexSpecification(class
vtkSQLDatabaseSchema *,int,int,bool &)"
(?GetIndexSpecification at vtkSQLDatabase@@UEAA?AVvtkStdString@@PEAVvtkSQLDatabaseSchema@@HHAEA_N at Z)	vtkQtSQLDatabase.obj
Error	10	error LNK2001: unresolved external symbol "public: virtual
class vtkStdString __cdecl
vtkSQLDatabase::GetTriggerSpecification(class vtkSQLDatabaseSchema
*,int,int)" (?GetTriggerSpecification at vtkSQLDatabase@@UEAA?AVvtkStdString@@PEAVvtkSQLDatabaseSchema@@HH at Z)	vtkQtSQLDatabase.obj
Error	11	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLDatabase::EffectSchema(class vtkSQLDatabaseSchema
*,bool)" (?EffectSchema at vtkSQLDatabase@@UEAA_NPEAVvtkSQLDatabaseSchema@@_N at Z)	vtkQtSQLDatabase.obj
Error	12	error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: void __cdecl
vtkSQLQuery::SetDatabase(class vtkSQLDatabase *)"
(__imp_?SetDatabase at vtkSQLQuery@@IEAAXPEAVvtkSQLDatabase@@@Z)
referenced in function "public: virtual class vtkSQLQuery * __cdecl
vtkQtSQLDatabase::GetQueryInstance(void)"
(?GetQueryInstance at vtkQtSQLDatabase@@UEAAPEAVvtkSQLQuery@@XZ)	vtkQtSQLDatabase.obj
Error	13	error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual void __cdecl
vtkSQLDatabase::PrintSelf(class std::basic_ostream<char,struct
std::char_traits<char> > &,class vtkIndent)"
(__imp_?PrintSelf at vtkSQLDatabase@@UEAAXAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VvtkIndent@@@Z)
referenced in function "public: virtual void __cdecl
vtkQtSQLDatabase::PrintSelf(class std::basic_ostream<char,struct
std::char_traits<char> > &,class vtkIndent)"
(?PrintSelf at vtkQtSQLDatabase@@UEAAXAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VvtkIndent@@@Z)	vtkQtSQLDatabase.obj
Error	14	error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
vtkSQLDatabase::RegisterCreateFromURLCallback(class vtkSQLDatabase *
(__cdecl*)(char const *))"
(__imp_?RegisterCreateFromURLCallback at vtkSQLDatabase@@SAXP6APEAV1 at PEBD@Z at Z)
referenced in function "public: __cdecl
vtkQtSQLDatabaseInitializer::vtkQtSQLDatabaseInitializer(void)"
(??0vtkQtSQLDatabaseInitializer@@QEAA at XZ)	vtkQtSQLDatabase.obj
Error	2	error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static int __cdecl
vtkSQLDatabase::IsTypeOf(char const *)"
(__imp_?IsTypeOf at vtkSQLDatabase@@SAHPEBD at Z)	vtkQtSQLQuery.obj
Error	4	error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static int __cdecl
vtkSQLQuery::IsTypeOf(char const *)"
(__imp_?IsTypeOf at vtkSQLQuery@@SAHPEBD at Z)	vtkQtSQLQuery.obj
Error	15	error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: virtual __cdecl
vtkSQLQuery::~vtkSQLQuery(void)" (__imp_??1vtkSQLQuery@@MEAA at XZ)
referenced in function "protected: virtual __cdecl
vtkQtSQLQuery::~vtkQtSQLQuery(void)"
(??1vtkQtSQLQuery@@MEAA at XZ)	vtkQtSQLQuery.obj
Error	16	error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: __cdecl
vtkSQLQuery::vtkSQLQuery(void)" (__imp_??0vtkSQLQuery@@IEAA at XZ)
referenced in function "protected: __cdecl
vtkQtSQLQuery::vtkQtSQLQuery(void)"
(??0vtkQtSQLQuery@@IEAA at XZ)	vtkQtSQLQuery.obj
Error	17	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::IsActive(void)"
(?IsActive at vtkSQLQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	18	error LNK2001: unresolved external symbol "public: virtual
void __cdecl vtkRowQuery::SetCaseSensitiveFieldNames(bool)"
(?SetCaseSensitiveFieldNames at vtkRowQuery@@UEAAX_N at Z)	vtkQtSQLQuery.obj
Error	19	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkRowQuery::GetCaseSensitiveFieldNames(void)"
(?GetCaseSensitiveFieldNames at vtkRowQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	20	error LNK2001: unresolved external symbol "public: virtual
void __cdecl vtkRowQuery::CaseSensitiveFieldNamesOn(void)"
(?CaseSensitiveFieldNamesOn at vtkRowQuery@@UEAAXXZ)	vtkQtSQLQuery.obj
Error	21	error LNK2001: unresolved external symbol "public: virtual
void __cdecl vtkRowQuery::CaseSensitiveFieldNamesOff(void)"
(?CaseSensitiveFieldNamesOff at vtkRowQuery@@UEAAXXZ)	vtkQtSQLQuery.obj
Error	22	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::SetQuery(char const *)"
(?SetQuery at vtkSQLQuery@@UEAA_NPEBD at Z)	vtkQtSQLQuery.obj
Error	23	error LNK2001: unresolved external symbol "public: virtual
char const * __cdecl vtkSQLQuery::GetQuery(void)"
(?GetQuery at vtkSQLQuery@@UEAAPEBDXZ)	vtkQtSQLQuery.obj
Error	24	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BeginTransaction(void)"
(?BeginTransaction at vtkSQLQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	25	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::CommitTransaction(void)"
(?CommitTransaction at vtkSQLQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	26	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::RollbackTransaction(void)"
(?RollbackTransaction at vtkSQLQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	27	error LNK2001: unresolved external symbol "public: virtual
class vtkSQLDatabase * __cdecl vtkSQLQuery::GetDatabase(void)"
(?GetDatabase at vtkSQLQuery@@UEAAPEAVvtkSQLDatabase@@XZ)	vtkQtSQLQuery.obj
Error	28	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,void const *,unsigned
__int64)" (?BindParameter at vtkSQLQuery@@UEAA_NHPEBX_K at Z)	vtkQtSQLQuery.obj
Error	29	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,class vtkVariant)"
(?BindParameter at vtkSQLQuery@@UEAA_NHVvtkVariant@@@Z)	vtkQtSQLQuery.obj
Error	30	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,class vtkStdString const
&)" (?BindParameter at vtkSQLQuery@@UEAA_NHAEBVvtkStdString@@@Z)	vtkQtSQLQuery.obj
Error	31	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,char const *,unsigned
__int64)" (?BindParameter at vtkSQLQuery@@UEAA_NHPEBD_K at Z)	vtkQtSQLQuery.obj
Error	32	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,char const *)"
(?BindParameter at vtkSQLQuery@@UEAA_NHPEBD at Z)	vtkQtSQLQuery.obj
Error	33	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,double)"
(?BindParameter at vtkSQLQuery@@UEAA_NHN at Z)	vtkQtSQLQuery.obj
Error	34	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,float)"
(?BindParameter at vtkSQLQuery@@UEAA_NHM at Z)	vtkQtSQLQuery.obj
Error	35	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,__int64)"
(?BindParameter at vtkSQLQuery@@UEAA_NH_J at Z)	vtkQtSQLQuery.obj
Error	36	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,unsigned __int64)"
(?BindParameter at vtkSQLQuery@@UEAA_NH_K at Z)	vtkQtSQLQuery.obj
Error	37	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,long)"
(?BindParameter at vtkSQLQuery@@UEAA_NHJ at Z)	vtkQtSQLQuery.obj
Error	38	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,int)"
(?BindParameter at vtkSQLQuery@@UEAA_NHH at Z)	vtkQtSQLQuery.obj
Error	39	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,short)"
(?BindParameter at vtkSQLQuery@@UEAA_NHF at Z)	vtkQtSQLQuery.obj
Error	40	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,signed char)"
(?BindParameter at vtkSQLQuery@@UEAA_NHC at Z)	vtkQtSQLQuery.obj
Error	41	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,unsigned long)"
(?BindParameter at vtkSQLQuery@@UEAA_NHK at Z)	vtkQtSQLQuery.obj
Error	42	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,unsigned int)"
(?BindParameter at vtkSQLQuery@@UEAA_NHI at Z)	vtkQtSQLQuery.obj
Error	43	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,unsigned short)"
(?BindParameter at vtkSQLQuery@@UEAA_NHG at Z)	vtkQtSQLQuery.obj
Error	44	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::BindParameter(int,unsigned char)"
(?BindParameter at vtkSQLQuery@@UEAA_NHE at Z)	vtkQtSQLQuery.obj
Error	45	error LNK2001: unresolved external symbol "public: virtual
bool __cdecl vtkSQLQuery::ClearParameterBindings(void)"
(?ClearParameterBindings at vtkSQLQuery@@UEAA_NXZ)	vtkQtSQLQuery.obj
Error	46	error LNK2001: unresolved external symbol "public: virtual
class vtkStdString __cdecl vtkSQLQuery::EscapeString(class
vtkStdString,bool)"
(?EscapeString at vtkSQLQuery@@UEAA?AVvtkStdString@@V2 at _N@Z)	vtkQtSQLQuery.obj
Error	47	error LNK2019: unresolved external symbol
"__declspec(dllimport) public: virtual void __cdecl
vtkSQLQuery::PrintSelf(class std::basic_ostream<char,struct
std::char_traits<char> > &,class vtkIndent)"
(__imp_?PrintSelf at vtkSQLQuery@@UEAAXAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VvtkIndent@@@Z)
referenced in function "public: virtual void __cdecl
vtkQtSQLQuery::PrintSelf(class std::basic_ostream<char,struct
std::char_traits<char> > &,class vtkIndent)"
(?PrintSelf at vtkQtSQLQuery@@UEAAXAEAV?$basic_ostream at DU?$char_traits at D@std@@@std@@VvtkIndent@@@Z)	vtkQtSQLQuery.obj


Any ideas?

Thanks,
Mark



More information about the vtkusers mailing list