I tried compiling the stable version of VTK - vtk-5.4.0<br />
with Qt - 4.3.4, the cmake version is 2.4.7, on a linux Ubuntu machine. In CMakeCache.txt file QT_MKSPECS_DIR:PATH=/home/raashid/src/qt-4.3.4-static_install/mkspecs<br />
<br />
Still I am getting compilation issues with the following errors -<br />
<br />
[ 88%] Building CXX object GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtTreeModelAdapter.o<br />
Linking CXX executable ../../../../bin/QVTKCxxTests<br />
/home/raashid/src/qt-4.3.4-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-4.3.4-static_install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':<br />
qguieventdispatcher_glib.cpp:(.text+0x119): undefined reference to `g_source_remove_poll'<br />
qguieventdispatcher_glib.cpp:(.text+0x124): undefined reference to `g_source_destroy'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::startingUp()':<br />
qguieventdispatcher_glib.cpp:(.text+0x1b6): undefined reference to `g_source_add_poll'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':<br />
qguieventdispatcher_glib.cpp:(.text+0x209): undefined reference to `g_source_remove_poll'<br />
qguieventdispatcher_glib.cpp:(.text+0x214): undefined reference to `g_source_destroy'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':<br />
qguieventdispatcher_glib.cpp:(.text+0x606): undefined reference to `g_source_new'<br />
qguieventdispatcher_glib.cpp:(.text+0x619): undefined reference to `g_source_set_can_recurse'<br />
qguieventdispatcher_glib.cpp:(.text+0x653): undefined reference to `g_source_attach'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtGui.a(qguieventdispatcher_glib.o): In function `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':<br />
qguieventdispatcher_glib.cpp:(.text+0x7c6): undefined reference to `g_source_new'<br />
qguieventdispatcher_glib.cpp:(.text+0x7d9): undefined reference to `g_source_set_can_recurse'<br />
qguieventdispatcher_glib.cpp:(.text+0x813): undefined reference to `g_source_attach'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::hasPendingEvents()':<br />
qeventdispatcher_glib.cpp:(.text+0x5cf): undefined reference to `g_main_context_pending'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)':<br />
qeventdispatcher_glib.cpp:(.text+0x72e): undefined reference to `g_main_context_iteration'<br />
qeventdispatcher_glib.cpp:(.text+0x74b): undefined reference to `g_main_context_iteration'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':<br />
qeventdispatcher_glib.cpp:(.text+0x7fe): undefined reference to `g_threads_got_initialized'<br />
qeventdispatcher_glib.cpp:(.text+0x81b): undefined reference to `g_main_context_ref'<br />
qeventdispatcher_glib.cpp:(.text+0x831): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x844): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x920): undefined reference to `g_source_add_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x932): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0x948): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x971): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x983): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0x999): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x9bc): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x9ce): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0xa02): undefined reference to `g_main_context_new'<br />
qeventdispatcher_glib.cpp:(.text+0xa28): undefined reference to `g_thread_init'<br />
qeventdispatcher_glib.cpp:(.text+0xa36): undefined reference to `g_main_context_default'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::unregisterSocketNotifier(QSocketNotifier*)':<br />
qeventdispatcher_glib.cpp:(.text+0xce7): undefined reference to `g_source_remove_poll'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::registerSocketNotifier(QSocketNotifier*)':<br />
qeventdispatcher_glib.cpp:(.text+0xdc3): undefined reference to `g_source_add_poll'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br />
qeventdispatcher_glib.cpp:(.text+0xe5f): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0xe6d): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0xebf): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0xef6): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0xf04): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0xf20): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0xf5e): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0xf6c): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0xf81): undefined reference to `g_main_context_unref'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br />
qeventdispatcher_glib.cpp:(.text+0x102f): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x103d): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x108f): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x10c6): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x10d4): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x10f0): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x112e): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x113c): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x1151): undefined reference to `g_main_context_unref'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlib::~QEventDispatcherGlib()':<br />
qeventdispatcher_glib.cpp:(.text+0x120f): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x121d): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x126f): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x12a6): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x12b4): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x12d0): undefined reference to `g_source_remove_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x130e): undefined reference to `g_source_destroy'<br />
qeventdispatcher_glib.cpp:(.text+0x131c): undefined reference to `g_source_unref'<br />
qeventdispatcher_glib.cpp:(.text+0x1331): undefined reference to `g_main_context_unref'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_glib.o): In function `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':<br />
qeventdispatcher_glib.cpp:(.text+0x13de): undefined reference to `g_threads_got_initialized'<br />
qeventdispatcher_glib.cpp:(.text+0x13fb): undefined reference to `g_main_context_ref'<br />
qeventdispatcher_glib.cpp:(.text+0x1411): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x1424): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x1500): undefined reference to `g_source_add_poll'<br />
qeventdispatcher_glib.cpp:(.text+0x1512): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0x1528): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x1551): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x1563): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0x1579): undefined reference to `g_source_new'<br />
qeventdispatcher_glib.cpp:(.text+0x159c): undefined reference to `g_source_set_can_recurse'<br />
qeventdispatcher_glib.cpp:(.text+0x15ae): undefined reference to `g_source_attach'<br />
qeventdispatcher_glib.cpp:(.text+0x15e2): undefined reference to `g_main_context_new'<br />
qeventdispatcher_glib.cpp:(.text+0x1608): undefined reference to `g_thread_init'<br />
qeventdispatcher_glib.cpp:(.text+0x1616): undefined reference to `g_main_context_default'<br />
/home/raashid/src/qt-4.3.4-static_install/lib/libQtCore.a(qeventdispatcher_unix.o): In function `QTimerInfoList::getTime(timeval&)':<br />
qeventdispatcher_unix.cpp:(.text+0x4ae): 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 />
Please help me with the above issues.<br />
Thanks and regards,<br />
Raashid<br />
<br />
<br />
On Tue, 21 Apr 2009 02:54:11 +0530 wrote<br />
>As a side note, please remember that the ParaView doesn't officially<br />
>support Qt 4.5 yet. We currently support Qt 4.3.*. Qt 4.5 will be<br />
>officially supported after the ParaView 3.6 release.<br />
><br />
>Utkarsh<br />
><br />
>On Mon, Apr 20, 2009 at 10:09 AM, Clinton Stimpson <clinton@elemtech.com> wrote:<br />
>><br />
>> What's the version of CMake? Its supposed to take care of the glib<br />
>> dependency.<br />
>> And what is QT_MKSPECS_DIR set to in your CMakeCache.txt file?<br />
>><br />
>> Clint<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><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></Table>