[vtkusers] Trouble building VTK with Qt Support - please help
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Apr 20 10:08:32 EDT 2009
As a side note, please remember that the ParaView doesn't officially
support Qt 4.5 yet. We currently support Qt 4.3.*. Qt 4.5 will be
officially supported after the ParaView 3.6 release.
Utkarsh
On Mon, Apr 20, 2009 at 10:09 AM, Clinton Stimpson <clinton at elemtech.com> wrote:
>
> What's the version of CMake? Its supposed to take care of the glib
> dependency.
> And what is QT_MKSPECS_DIR set to in your CMakeCache.txt file?
>
> Clint
>
> Raashid Baig wrote:
>>
>> I am trying to build VTK on Linux Ubuntu machine with Qt support.
>> Qt version - 4.5.0
>> vtk version - cvs checkout on 20/04/2009
>> However it fails to build, is there a particular Qt version with which
>> current vtk version should be built ?
>>
>> The error is as follows-
>>
>> [ 93%] Built target QVTKWidgetPlugin
>> Scanning dependencies of target QVTKCxxTests
>> [ 93%] Building CXX object
>> GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/QVTKCxxTests.o
>> [ 93%] Building CXX object
>> GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtInitialization.o
>> [ 93%] Building CXX object
>> GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtSQLDatabase.o
>> [ 93%] Building CXX object
>> GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtTableModelAdapter.o
>> [ 93%] Building CXX object
>> GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/TestQtTreeModelAdapter.o
>> Linking CXX executable ../../../../bin/QVTKCxxTests
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':
>> qguieventdispatcher_glib.cpp:(.text+0x39): undefined reference to
>> `g_source_remove_poll'
>> qguieventdispatcher_glib.cpp:(.text+0x44): undefined reference to
>> `g_source_destroy'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':
>> qguieventdispatcher_glib.cpp:(.text+0x129): undefined reference to
>> `g_source_remove_poll'
>> qguieventdispatcher_glib.cpp:(.text+0x134): undefined reference to
>> `g_source_destroy'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function `QGuiEventDispatcherGlib::startingUp()':
>> qguieventdispatcher_glib.cpp:(.text+0x1c6): undefined reference to
>> `g_source_add_poll'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function `QGuiEventDispatcherGlib::~QGuiEventDispatcherGlib()':
>> qguieventdispatcher_glib.cpp:(.text+0x219): undefined reference to
>> `g_source_remove_poll'
>> qguieventdispatcher_glib.cpp:(.text+0x224): undefined reference to
>> `g_source_destroy'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function
>> `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':
>> qguieventdispatcher_glib.cpp:(.text+0x616): undefined reference to
>> `g_source_new'
>> qguieventdispatcher_glib.cpp:(.text+0x629): undefined reference to
>> `g_source_set_can_recurse'
>> qguieventdispatcher_glib.cpp:(.text+0x663): undefined reference to
>> `g_source_attach'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qguieventdispatcher_glib.o):
>> In function
>> `QGuiEventDispatcherGlibPrivate::QGuiEventDispatcherGlibPrivate()':
>> qguieventdispatcher_glib.cpp:(.text+0x7d6): undefined reference to
>> `g_source_new'
>> qguieventdispatcher_glib.cpp:(.text+0x7e9): undefined reference to
>> `g_source_set_can_recurse'
>> qguieventdispatcher_glib.cpp:(.text+0x823): undefined reference to
>> `g_source_attach'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o):
>> In function `.L1784':
>> qgtkstyle.cpp:(.text+0x8d09): undefined reference to `g_object_get'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o):
>> In function `.L1780':
>> qgtkstyle.cpp:(.text+0x8dff): undefined reference to `g_object_get'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(qgtkstyle.o):
>> In function `.L1842':
>> qgtkstyle.cpp:(.text+0x9250): undefined reference to `g_object_get'
>> qgtkstyle.cpp:(.text+0x92c0): undefined reference to `g_free'
>>
>> /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)':
>> gtksymbols.cpp:(.text+0x6d4): undefined reference to `g_object_set'
>> gtksymbols.cpp:(.text+0x6fc): undefined reference to `g_object_set'
>>
>> /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)':
>> gtksymbols.cpp:(.text+0x1157): undefined reference to `g_free'
>>
>> /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)':
>> gtksymbols.cpp:(.text+0x12cf): undefined reference to `g_object_set'
>> gtksymbols.cpp:(.text+0x13ec): undefined reference to `g_slist_free'
>>
>> /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)':
>> gtksymbols.cpp:(.text+0x1647): undefined reference to `g_free'
>>
>> /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)':
>> gtksymbols.cpp:(.text+0x18a7): undefined reference to `g_free'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o):
>> In function `setup_gtk_widget(_GtkWidget*)':
>> gtksymbols.cpp:(.text+0x1f6a): undefined reference to
>> `g_type_check_instance_is_a'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o):
>> In function `getThemeName()':
>> gtksymbols.cpp:(.text+0x22cd): undefined reference to `g_type_init'
>> gtksymbols.cpp:(.text+0x2337): undefined reference to `g_object_unref'
>> gtksymbols.cpp:(.text+0x2346): undefined reference to `g_error_free'
>> gtksymbols.cpp:(.text+0x27aa): undefined reference to `g_free'
>>
>> /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*)':
>> gtksymbols.cpp:(.text+0x3c73): undefined reference to
>> `g_type_check_instance_is_a'
>> gtksymbols.cpp:(.text+0x3c99): undefined reference to
>> `g_type_check_instance_is_a'
>> gtksymbols.cpp:(.text+0x3d1c): undefined reference to `g_free'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtGui.a(gtksymbols.o):
>> In function `QGtk::initGtkWidgets()':
>> gtksymbols.cpp:(.text+0x40c0): undefined reference to
>> `g_signal_connect_data'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::wakeUp()':
>> qeventdispatcher_glib.cpp:(.text+0x33b): undefined reference to
>> `g_main_context_wakeup'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::hasPendingEvents()':
>> qeventdispatcher_glib.cpp:(.text+0x43f): undefined reference to
>> `g_main_context_pending'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::processEvents(QFlags)':
>> qeventdispatcher_glib.cpp:(.text+0x634): undefined reference to
>> `g_main_context_iteration'
>> qeventdispatcher_glib.cpp:(.text+0x64d): undefined reference to
>> `g_main_context_iteration'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function
>> `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':
>> qeventdispatcher_glib.cpp:(.text+0x7ce): undefined reference to
>> `g_threads_got_initialized'
>> qeventdispatcher_glib.cpp:(.text+0x7eb): undefined reference to
>> `g_main_context_ref'
>> qeventdispatcher_glib.cpp:(.text+0x801): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x814): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x826): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x83c): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x865): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x877): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x88d): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x8b7): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x8c9): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x8f7): undefined reference to
>> `g_main_context_new'
>> qeventdispatcher_glib.cpp:(.text+0x91d): undefined reference to
>> `g_thread_init'
>> qeventdispatcher_glib.cpp:(.text+0x927): undefined reference to
>> `g_main_context_default'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function
>> `QEventDispatcherGlib::unregisterSocketNotifier(QSocketNotifier*)':
>> qeventdispatcher_glib.cpp:(.text+0xbd7): undefined reference to
>> `g_source_remove_poll'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function
>> `QEventDispatcherGlib::registerSocketNotifier(QSocketNotifier*)':
>> qeventdispatcher_glib.cpp:(.text+0xcb3): undefined reference to
>> `g_source_add_poll'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
>> qeventdispatcher_glib.cpp:(.text+0xd4f): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xd5d): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xdaf): undefined reference to
>> `g_source_remove_poll'
>> qeventdispatcher_glib.cpp:(.text+0xde6): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xdf4): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xe09): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xe17): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xe2c): undefined reference to
>> `g_main_context_unref'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
>> qeventdispatcher_glib.cpp:(.text+0xedf): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xeed): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xf3f): undefined reference to
>> `g_source_remove_poll'
>> qeventdispatcher_glib.cpp:(.text+0xf76): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xf84): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xf99): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0xfa7): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0xfbc): undefined reference to
>> `g_main_context_unref'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
>> qeventdispatcher_glib.cpp:(.text+0x106f): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0x107d): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0x10cf): undefined reference to
>> `g_source_remove_poll'
>> qeventdispatcher_glib.cpp:(.text+0x1106): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0x1114): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0x1129): undefined reference to
>> `g_source_destroy'
>> qeventdispatcher_glib.cpp:(.text+0x1137): undefined reference to
>> `g_source_unref'
>> qeventdispatcher_glib.cpp:(.text+0x114c): undefined reference to
>> `g_main_context_unref'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_glib.o):
>> In function
>> `QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*)':
>> qeventdispatcher_glib.cpp:(.text+0x11fe): undefined reference to
>> `g_threads_got_initialized'
>> qeventdispatcher_glib.cpp:(.text+0x121b): undefined reference to
>> `g_main_context_ref'
>> qeventdispatcher_glib.cpp:(.text+0x1231): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x1244): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x1256): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x126c): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x1295): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x12a7): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x12bd): undefined reference to
>> `g_source_new'
>> qeventdispatcher_glib.cpp:(.text+0x12e7): undefined reference to
>> `g_source_set_can_recurse'
>> qeventdispatcher_glib.cpp:(.text+0x12f9): undefined reference to
>> `g_source_attach'
>> qeventdispatcher_glib.cpp:(.text+0x1327): undefined reference to
>> `g_main_context_new'
>> qeventdispatcher_glib.cpp:(.text+0x134d): undefined reference to
>> `g_thread_init'
>> qeventdispatcher_glib.cpp:(.text+0x1357): undefined reference to
>> `g_main_context_default'
>>
>> /home/raashid/src/qt-all-opensource-src-4.5.0-static-install/lib/libQtCore.a(qeventdispatcher_unix.o):
>> In function `QTimerInfoList::getTime(timeval&)':
>> qeventdispatcher_unix.cpp:(.text+0x64e): undefined reference to
>> `clock_gettime'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/QVTKCxxTests] Error 1
>> make[1]: *** [GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/all]
>> Error 2
>> make: *** [all] Error 2
>>
>>
>> Any help in this regard will be great.
>> Thanks in advance.
>> Raashid
>>
>>
>> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list