<div dir="ltr">Hi all,<br><br>I am trying to build vtk with mingw 4.4 with Qt support.<br><br>I have set USE_QT and GUI_SUPPORT flags ON in cmake.<br><br>But the build fails while trying to build QVTK.<br><br>This is the error I get (something related to vtkSQLDatabase).<br>
<br>Any hints why this is happening?<br clear="all"><br>[100%] Building CXX object GUISupport/Qt/CMakeFiles/QVTK.dir/moc_QVTKWidget2.cxx<br>.obj<br>Linking CXX shared library ..\..\bin\libQVTK.dll<br>Creating library file: ..\..\bin\libQVTK.dll.a<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x60): undefined reference to `_imp___ZN14vtkSQLDatabase29RegisterCreateFrom<br>URLCallbackEPFPS_PKcE'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>
ext+0x3d2): undefined reference to `_imp___ZN11vtkSQLQuery11SetDatabaseEP14vtkSQ<br>LDatabase'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x415): undefined reference to `_imp___ZN14vtkSQLDatabaseC2Ev'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x474): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>
ext+0x4a1): undefined reference to `_imp___ZN14vtkSQLDatabaseC2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x500): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x1231): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>
ext+0x125e): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x133c): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x1361): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>
ext+0x1440): more undefined references to `_imp___ZN14vtkSQLDatabaseD2Ev' follow<br><br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t<br>ext+0x150f): undefined reference to `_imp___ZN14vtkSQLDatabase9PrintSelfERSo9vtk<br>
Indent'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r<br>data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x88): undefined refere<br>nce to `vtkSQLDatabase::GetColumnSpecification(vtkSQLDatabaseSchema*, int, int)'<br>
<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r<br>data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x8c): undefined refere<br>nce to `vtkSQLDatabase::GetIndexSpecification(vtkSQLDatabaseSchema*, int, int, b<br>
ool&)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r<br>data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x90): undefined refere<br>nce to `vtkSQLDatabase::GetTriggerSpecification(vtkSQLDatabaseSchema*, int, int)<br>
'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r<br>data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x94): undefined refere<br>nce to `vtkSQLDatabase::EffectSchema(vtkSQLDatabaseSchema*, bool)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>729): undefined reference to `_imp___ZN11vtkSQLQueryC2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>
80a): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>94f): undefined reference to `_imp___ZN11vtkSQLQuery9PrintSelfERSo9vtkIndent'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>a9b): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>
af0): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>b31): undefined reference to `_imp___ZN11vtkSQLQueryC2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>
c12): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>d83): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>
de8): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>eab): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x<br>
f00): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0x8c): undefined reference to `vtkS<br>
QLQuery::SetQuery(char const*)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0x90): undefined reference to `vtkS<br>QLQuery::GetQuery()'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xa4): undefined reference to `vtkS<br>QLQuery::BindParameter(int, unsigned char)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>
ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xa8): undefined reference to `vtkS<br>QLQuery::BindParameter(int, unsigned short)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xac): undefined reference to `vtkS<br>
QLQuery::BindParameter(int, unsigned int)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb0): undefined reference to `vtkS<br>QLQuery::BindParameter(int, unsigned long)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb4): undefined reference to `vtkS<br>QLQuery::BindParameter(int, signed char)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>
ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb8): undefined reference to `vtkS<br>QLQuery::BindParameter(int, short)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xbc): undefined reference to `vtkS<br>
QLQuery::BindParameter(int, int)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc0): undefined reference to `vtkS<br>QLQuery::BindParameter(int, long)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc4): undefined reference to `vtkS<br>QLQuery::BindParameter(int, unsigned long long)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc8): undefined reference to `vtkS<br>QLQuery::BindParameter(int, long long)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>
ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xcc): undefined reference to `vtkS<br>QLQuery::BindParameter(int, float)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd0): undefined reference to `vtkS<br>
QLQuery::BindParameter(int, double)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd4): undefined reference to `vtkS<br>QLQuery::BindParameter(int, char const*)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd8): undefined reference to `vtkS<br>QLQuery::BindParameter(int, char const*, unsigned int)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xdc): undefined reference to `vtkS<br>QLQuery::BindParameter(int, vtkStdString const&)'<br>
CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe0): undefined reference to `vtkS<br>QLQuery::BindParameter(int, vtkVariant)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>
ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe4): undefined reference to `vtkS<br>QLQuery::BindParameter(int, void const*, unsigned int)'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>
ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe8): undefined reference to `vtkS<br>QLQuery::ClearParameterBindings()'<br>CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_<br>ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xec): undefined reference to `vtkS<br>
QLQuery::EscapeString(vtkStdString, bool)'<br>collect2: ld returned 1 exit status<br>mingw32-make[2]: *** [bin/libQVTK.dll] Error 1<br>mingw32-make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2<br>mingw32-make: *** [all] Error 2<br>
<br>Thanks a lot!<br><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>