[vtkusers] building VTK 5.8 on Ubuntu 10.04 and GTK+ related link errors during 'make'

HamidG listboss at gmail.com
Tue Dec 6 15:16:11 EST 2011


Hello,

I am trying to build vtk 5.8 from git sources.
I have enabled Qt, and BUILD_SHARED_LIBS is off.
CMAKE 2.8.6 configures and generates its files without errors and warnings.
But during 'make', I get these messages related to GTK+.

I am sure that I am missing a setting or a library, but not sure which one.
I've installed GTK+ packages on this machine (libraries and dev packages).

/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle.o): In function
`QGtkStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*,
QPainter*, QWidget const*) const':
qgtkstyle.cpp:(.text+0x2dd0): undefined reference to
`g_type_check_instance_cast'
qgtkstyle.cpp:(.text+0x2de4): undefined reference to `g_object_set_data'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle.o): In function
`QGtkStyle::styleHint(QStyle::StyleHint, QStyleOption const*, QWidget
const*, QStyleHintReturn*) const':
qgtkstyle.cpp:(.text+0x43ed): undefined reference to `g_object_get'
qgtkstyle.cpp:(.text+0x44e7): undefined reference to `g_object_get'
qgtkstyle.cpp:(.text+0x45a5): undefined reference to `g_object_get'
qgtkstyle.cpp:(.text+0x4664): undefined reference to `g_object_get'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle.o): In function
`QGtkStyle::pixelMetric(QStyle::PixelMetric, QStyleOption const*, QWidget
const*) const':
qgtkstyle.cpp:(.text+0x4dd0): undefined reference to `g_object_get'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::setupGtkWidget(_GtkWidget*)':
qgtkstyle_p.cpp:(.text+0x10a): undefined reference to
`g_type_check_instance_is_a'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`update_toolbar_style(_GtkWidget*, _GParamSpec*, void*)':
qgtkstyle_p.cpp:(.text+0x2aa): undefined reference to `g_object_get'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::getGConfBool(QString const&, bool)':
qgtkstyle_p.cpp:(.text+0x1a09): undefined reference to `g_type_init'
qgtkstyle_p.cpp:(.text+0x1a65): undefined reference to `g_object_unref'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::getGConfString(QString const&, QString const&)':
qgtkstyle_p.cpp:(.text+0x1ae1): undefined reference to `g_type_init'
qgtkstyle_p.cpp:(.text+0x1b47): undefined reference to `g_object_unref'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::addWidgetToMap(_GtkWidget*)':
qgtkstyle_p.cpp:(.text+0x2693): undefined reference to
`g_type_check_instance_is_a'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::addAllSubWidgets(_GtkWidget*, void*)':
qgtkstyle_p.cpp:(.text+0x2879): undefined reference to
`g_type_check_instance_is_a'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::setupGtkFileChooser(_GtkWidget*, QWidget*, QString
const&, QString const&, QString*, QFlags<QFileDialog::Option>, bool,
QMap<_GtkFileFilter*, QString>*)':
qgtkstyle_p.cpp:(.text+0x2a4c): undefined reference to `g_object_set'
qgtkstyle_p.cpp:(.text+0x2a66): undefined reference to `g_object_set'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::openFilenames(QWidget*, QString const&, QString const&,
QString const&, QString*, QFlags<QFileDialog::Option>)':
qgtkstyle_p.cpp:(.text+0x3a65): undefined reference to `g_object_set'
/home/user/local/Qt/4.7.4/lib/libQtGui.a(qgtkstyle_p.o): In function
`QGtkStylePrivate::initGtkWidgets() const':
qgtkstyle_p.cpp:(.text+0x498b): undefined reference to
`g_signal_connect_data'
qgtkstyle_p.cpp:(.text+0x4b28): undefined reference to
`g_signal_connect_data'
collect2: ld returned 1 exit status


--
View this message in context: http://vtk.1045678.n5.nabble.com/building-VTK-5-8-on-Ubuntu-10-04-and-GTK-related-link-errors-during-make-tp5053320p5053320.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list