Meego Wiki
Views

SDK/Troubleshooting/Compiling MTF

From MeeGo wiki
< SDK
Jump to: navigation, search

Problem

With MeeGo 1.1, when compiling MeeGo Touch Framework applications, you may see the following error:

Undefined reference to QDataStream...
Undefined reference to QWidgetPrivate...
Undefined reference to QObjectPrivate...
...

(Screenshot)

Cause

This is because a different version of Qt has been installed on your system which is being used instead of the MeeGo version.

Workaround

Ensure Qt Creator finds the MeeGo Qt libraries in sysroot first.

Below, $sysroot should be replaced with the directory for the target you are working on, usually in /usr/lib/madde/linux-${arch}/sysroots/

Option 1:
Edit $sysroot/usr/share/qt4/mkspecs/features/meegotouch_common.prf
Delete the line:

unix: QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${M_LIB_DIR}

Option 2:
Edit $sysroot/usr/share/qt4/mkspecs/linux-g++/qmake.conf
Add the line:

QMAKE_LFLAGS += -Wl,-rpath-link,$sysroot/usr/lib
Personal tools