Hi Raashid,<br><br>The problem doesn't seem to come from VTK or QT but rather from glib. I think you probably just don't link against glib.<br><br>s.<br><br><div class="gmail_quote">On Mon, Apr 20, 2009 at 4:31 AM, Raashid Baig <span dir="ltr"><<a href="mailto:raashid.b@rediffmail.com">raashid.b@rediffmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am trying to build VTK on Linux Ubuntu machine with Qt support.<br>
Qt version - 4.5.0<br>
vtk version - cvs checkout on 20/04/2009<br>
However it fails to build, is there a particular Qt version with which current vtk version should be built ?<br>
<br>
The error is as follows-<br>
<br>
[ 93%] Built target QVTKWidgetPlugin<br>
Scanning dependencies of target QVTKCxxTests<br>
[ 93%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/QVTKCxxTests.o<br>
[ 93%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtInitialization.o<br>
[ 93%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtSQLDatabase.o<br>
[ 93%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtTableModelAdapter.o<br>
[ 93%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtTreeModelAdapter.o<br>
Linking CXX executable ../../../../bin/QVTKCxxTests<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':<br>
qguieventdispatcher_glib.cpp:(.text+0x39): undefined reference to `g_source_remove_poll'<br>
qguieventdispatcher_glib.cpp:(.text+0x44): undefined reference to `g_source_destroy'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':<br>
qguieventdispatcher_glib.cpp:(.text+0x129): undefined reference to `g_source_remove_poll'<br>
qguieventdispatcher_glib.cpp:(.text+0x134): undefined reference to `g_source_destroy'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::startingUp()':<br>
qguieventdispatcher_glib.cpp:(.text+0x1c6): undefined reference to `g_source_add_poll'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':<br>
qguieventdispatcher_glib.cpp:(.text+0x219): undefined reference to `g_source_remove_poll'<br>
qguieventdispatcher_glib.cpp:(.text+0x224): undefined reference to `g_source_destroy'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':<br>
qguieventdispatcher_glib.cpp:(.text+0x616): undefined reference to `g_source_new'<br>
qguieventdispatcher_glib.cpp:(.text+0x629): undefined reference to `g_source_set_can_recurse'<br>
qguieventdispatcher_glib.cpp:(.text+0x663): undefined reference to `g_source_attach'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':<br>
qguieventdispatcher_glib.cpp:(.text+0x7d6): undefined reference to `g_source_new'<br>
qguieventdispatcher_glib.cpp:(.text+0x7e9): undefined reference to `g_source_set_can_recurse'<br>
qguieventdispatcher_glib.cpp:(.text+0x823): undefined reference to `g_source_attach'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o): In function `.L1784':<br>
qgtkstyle.cpp:(.text+0x8d09): undefined reference to `g_object_get'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o): In function `.L1780':<br>
qgtkstyle.cpp:(.text+0x8dff): undefined reference to `g_object_get'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o): In function `.L1842':<br>
qgtkstyle.cpp:(.text+0x9250): undefined reference to `g_object_get'<br>
qgtkstyle.cpp:(.text+0x92c0): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `setupGtkFileChooser(_GtkWidget*, QWidget*, QString const&, QString const&, QString*, QFlags, bool)':<br>
gtksymbols.cpp:(.text+0x6d4): undefined reference to `g_object_set'<br>
gtksymbols.cpp:(.text+0x6fc): undefined reference to `g_object_set'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `QGtk::saveFilename(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags)':<br>
gtksymbols.cpp:(.text+0x1157): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `QGtk::openFilenames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags)':<br>
gtksymbols.cpp:(.text+0x12cf): undefined reference to `g_object_set'<br>
gtksymbols.cpp:(.text+0x13ec): undefined reference to `g_slist_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `QGtk::openDirectory(QWidget*, QString const&, QString const&, QFlags)':<br>
gtksymbols.cpp:(.text+0x1647): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `QGtk::openFilename(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags)':<br>
gtksymbols.cpp:(.text+0x18a7): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `setup_gtk_widget(_GtkWidget*)':<br>
gtksymbols.cpp:(.text+0x1f6a): undefined reference to `g_type_check_instance_is_a'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `getThemeName()':<br>
gtksymbols.cpp:(.text+0x22cd): undefined reference to `g_type_init'<br>
gtksymbols.cpp:(.text+0x2337): undefined reference to `g_object_unref'<br>
gtksymbols.cpp:(.text+0x2346): undefined reference to `g_error_free'<br>
gtksymbols.cpp:(.text+0x27aa): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `add_all_sub_widgets(_GtkWidget*, void*)':<br>
gtksymbols.cpp:(.text+0x3c73): undefined reference to `g_type_check_instance_is_a'<br>
gtksymbols.cpp:(.text+0x3c99): undefined reference to `g_type_check_instance_is_a'<br>
gtksymbols.cpp:(.text+0x3d1c): undefined reference to `g_free'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o): In function `QGtk::initGtkWidgets()':<br>
gtksymbols.cpp:(.text+0x40c0): undefined reference to `g_signal_connect_data'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::wakeUp()':<br>
qeventdispatcher_glib.cpp:(.text+0x33b): undefined reference to `g_main_context_wakeup'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::hasPendingEvents()':<br>
qeventdispatcher_glib.cpp:(.text+0x43f): undefined reference to `g_main_context_pending'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::processEvents(QFlags)':<br>
qeventdispatcher_glib.cpp:(.text+0x634): undefined reference to `g_main_context_iteration'<br>
qeventdispatcher_glib.cpp:(.text+0x64d): undefined reference to `g_main_context_iteration'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':<br>
qeventdispatcher_glib.cpp:(.text+0x7ce): undefined reference to `g_threads_got_initialized'<br>
qeventdispatcher_glib.cpp:(.text+0x7eb): undefined reference to `g_main_context_ref'<br>
qeventdispatcher_glib.cpp:(.text+0x801): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x814): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x826): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x83c): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x865): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x877): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x88d): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x8b7): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x8c9): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x8f7): undefined reference to `g_main_context_new'<br>
qeventdispatcher_glib.cpp:(.text+0x91d): undefined reference to `g_thread_init'<br>
qeventdispatcher_glib.cpp:(.text+0x927): undefined reference to `g_main_context_default'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::unregisterSocketNotifier(QSocketNotifier*)':<br>
qeventdispatcher_glib.cpp:(.text+0xbd7): undefined reference to `g_source_remove_poll'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::registerSocketNotifier(QSocketNotifier*)':<br>
qeventdispatcher_glib.cpp:(.text+0xcb3): undefined reference to `g_source_add_poll'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br>
qeventdispatcher_glib.cpp:(.text+0xd4f): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xd5d): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xdaf): undefined reference to `g_source_remove_poll'<br>
qeventdispatcher_glib.cpp:(.text+0xde6): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xdf4): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xe09): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xe17): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xe2c): undefined reference to `g_main_context_unref'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br>
qeventdispatcher_glib.cpp:(.text+0xedf): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xeed): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xf3f): undefined reference to `g_source_remove_poll'<br>
qeventdispatcher_glib.cpp:(.text+0xf76): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xf84): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xf99): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0xfa7): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0xfbc): undefined reference to `g_main_context_unref'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br>
qeventdispatcher_glib.cpp:(.text+0x106f): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0x107d): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0x10cf): undefined reference to `g_source_remove_poll'<br>
qeventdispatcher_glib.cpp:(.text+0x1106): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0x1114): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0x1129): undefined reference to `g_source_destroy'<br>
qeventdispatcher_glib.cpp:(.text+0x1137): undefined reference to `g_source_unref'<br>
qeventdispatcher_glib.cpp:(.text+0x114c): undefined reference to `g_main_context_unref'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':<br>
qeventdispatcher_glib.cpp:(.text+0x11fe): undefined reference to `g_threads_got_initialized'<br>
qeventdispatcher_glib.cpp:(.text+0x121b): undefined reference to `g_main_context_ref'<br>
qeventdispatcher_glib.cpp:(.text+0x1231): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x1244): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x1256): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x126c): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x1295): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x12a7): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x12bd): undefined reference to `g_source_new'<br>
qeventdispatcher_glib.cpp:(.text+0x12e7): undefined reference to `g_source_set_can_recurse'<br>
qeventdispatcher_glib.cpp:(.text+0x12f9): undefined reference to `g_source_attach'<br>
qeventdispatcher_glib.cpp:(.text+0x1327): undefined reference to `g_main_context_new'<br>
qeventdispatcher_glib.cpp:(.text+0x134d): undefined reference to `g_thread_init'<br>
qeventdispatcher_glib.cpp:(.text+0x1357): undefined reference to `g_main_context_default'<br>
/home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_unix.o): In function `QTimerInfoList::getTime(timeval&)':<br>
qeventdispatcher_unix.cpp:(.text+0x64e): undefined reference to `clock_gettime'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [bin/QVTKCxxTests] Error 1<br>
make[1]: *** [GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
Any help in this regard will be great.<br>
Thanks in advance.<br><font color="#888888">
Raashid<br><table style="font-family: Verdana; font-size: 11px; line-height: 15px;" width="644" border="0" cellpadding="0" cellspacing="0" height="57"><tbody><tr><td><a href="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><img src="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></a></td>
</tr></tbody></table></font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>