[vtkusers] Fwd: VTK5.10 building problem
Jothybasu Selvaraj
jothybasu at gmail.com
Tue Apr 3 10:02:48 EDT 2012
---------- Forwarded message ----------
From: Jothybasu Selvaraj <jothybasu at gmail.com>
Date: Tue, Apr 3, 2012 at 3:00 PM
Subject: Re: [vtkusers] VTK5.10 building problem
To: David Gobbi <david.gobbi at gmail.com>
Cc: VTK Developers <vtk-developers at vtk.org>
Though it built and install sucessfully, I am unable to run the examples
which uses Qt. For instance, the QtVTKRenderWindows.exe throws a error as
shown in the attached screenshot.
I have all the Qt and VTK DLLs in the build release folder.
Thanks
Jothy
On Tue, Apr 3, 2012 at 1:56 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Jothy,
>
> You are around the 4th or 5th person who has noted this unexpected
> dependency of Qt on Infovis. It definitely seems to be an issue, but
> I've taken a quick look through the CMake scripts and I'm not sure
> where the dependency comes from. Does anyone know why this
> dependency exists?
>
> - David
>
>
> On Tue, Apr 3, 2012 at 6:39 AM, Jothybasu Selvaraj <jothybasu at gmail.com>
> wrote:
> > It builds if Infovis and Geovis are enabled in cmake.
> >
> > Looks pretty strange!
> >
> > Jothy
> >
> >
> > On Tue, Apr 3, 2012 at 11:42 AM, Jothybasu Selvaraj <jothybasu at gmail.com
> >
> > wrote:
> >>
> >> Hi all,
> >>
> >> I am trying to build vtk with mingw 4.4 with Qt support.
> >>
> >> I have set USE_QT and GUI_SUPPORT flags ON in cmake.
> >>
> >> But the build fails while trying to build QVTK.
> >>
> >> This is the error I get (something related to vtkSQLDatabase).
> >>
> >> Any hints why this is happening?
> >>
> >> [100%] Building CXX object
> >> GUISupport/Qt/CMakeFiles/QVTK.dir/moc_QVTKWidget2.cxx
> >> .obj
> >> Linking CXX shared library ..\..\bin\libQVTK.dll
> >> Creating library file: ..\..\bin\libQVTK.dll.a
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x60): undefined reference to
> >> `_imp___ZN14vtkSQLDatabase29RegisterCreateFrom
> >> URLCallbackEPFPS_PKcE'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x3d2): undefined reference to
> >> `_imp___ZN11vtkSQLQuery11SetDatabaseEP14vtkSQ
> >> LDatabase'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x415): undefined reference to `_imp___ZN14vtkSQLDatabaseC2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x474): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x4a1): undefined reference to `_imp___ZN14vtkSQLDatabaseC2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x500): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x1231): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x125e): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x133c): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x1361): undefined reference to `_imp___ZN14vtkSQLDatabaseD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x1440): more undefined references to
> `_imp___ZN14vtkSQLDatabaseD2Ev'
> >> follow
> >>
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.t
> >> ext+0x150f): undefined reference to
> >> `_imp___ZN14vtkSQLDatabase9PrintSelfERSo9vtk
> >> Indent'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r
> >> data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x88):
> undefined
> >> refere
> >> nce to `vtkSQLDatabase::GetColumnSpecification(vtkSQLDatabaseSchema*,
> int,
> >> int)'
> >>
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r
> >> data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x8c):
> undefined
> >> refere
> >> nce to `vtkSQLDatabase::GetIndexSpecification(vtkSQLDatabaseSchema*,
> int,
> >> int, b
> >> ool&)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r
> >> data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x90):
> undefined
> >> refere
> >> nce to `vtkSQLDatabase::GetTriggerSpecification(vtkSQLDatabaseSchema*,
> >> int, int)
> >> '
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLDatabase.cxx.obj):vtkQtSQLDatabase.cxx:(.r
> >> data$_ZTV16vtkQtSQLDatabase[vtable for vtkQtSQLDatabase]+0x94):
> undefined
> >> refere
> >> nce to `vtkSQLDatabase::EffectSchema(vtkSQLDatabaseSchema*, bool)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> 729): undefined reference to `_imp___ZN11vtkSQLQueryC2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> 80a): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> 94f): undefined reference to
> >> `_imp___ZN11vtkSQLQuery9PrintSelfERSo9vtkIndent'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> a9b): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> af0): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> b31): undefined reference to `_imp___ZN11vtkSQLQueryC2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> c12): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> d83): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> de8): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> eab): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.text+0x
> >> f00): undefined reference to `_imp___ZN11vtkSQLQueryD2Ev'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0x8c): undefined reference
> to
> >> `vtkS
> >> QLQuery::SetQuery(char const*)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0x90): undefined reference
> to
> >> `vtkS
> >> QLQuery::GetQuery()'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xa4): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, unsigned char)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xa8): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, unsigned short)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xac): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, unsigned int)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb0): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, unsigned long)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb4): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, signed char)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xb8): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, short)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xbc): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, int)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc0): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, long)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc4): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, unsigned long long)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xc8): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, long long)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xcc): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, float)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd0): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, double)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd4): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, char const*)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xd8): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, char const*, unsigned int)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xdc): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, vtkStdString const&)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe0): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, vtkVariant)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe4): undefined reference
> to
> >> `vtkS
> >> QLQuery::BindParameter(int, void const*, unsigned int)'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xe8): undefined reference
> to
> >> `vtkS
> >> QLQuery::ClearParameterBindings()'
> >>
> >>
> CMakeFiles\QVTK.dir/objects.a(vtkQtSQLQuery.cxx.obj):vtkQtSQLQuery.cxx:(.rdata$_
> >> ZTV13vtkQtSQLQuery[vtable for vtkQtSQLQuery]+0xec): undefined reference
> to
> >> `vtkS
> >> QLQuery::EscapeString(vtkStdString, bool)'
> >> collect2: ld returned 1 exit status
> >> mingw32-make[2]: *** [bin/libQVTK.dll] Error 1
> >> mingw32-make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2
> >> mingw32-make: *** [all] Error 2
> >>
> >> Thanks a lot!
> >>
> >> --
> >> Jothy
> >>
> >
> >
> >
> > --
> > Jothy
>
--
Jothy
--
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120403/40795549/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error.JPG
Type: image/jpeg
Size: 24634 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120403/40795549/attachment.jpeg>
More information about the vtkusers
mailing list