Build QT 5.4.1 on ARM Ubuntu leads to undefined references
-
I try to cross compile QT 5.4.1 for an i.mx6 ARM controller with ubuntu 12.04 armhf running.
I get the following error
...
arm-linux-gnueabihf-g++ -Wl,-rpath-link,/home/hico/share/ubuntu-12.04/usr/lib --sysroot=/home/hico/share/ubuntu-12.04 -Wl,--no-undefined -Wl,-rpath,/media/Data/qt5.4.1/lib -shared -o libqxcb.so .obj/qxcbclipboard.o .obj/qxcbconnection.o .obj/qxcbintegration.o .obj/qxcbkeyboard.o .obj/qxcbmime.o .obj/qxcbdrag.o .obj/qxcbscreen.o .obj/qxcbwindow.o .obj/qxcbbackingstore.o .obj/qxcbwmsupport.o .obj/qxcbmain.o .obj/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbconnection_xi2.o .obj/qxcbsessionmanager.o .obj/qglxintegration.o .obj/atom.o .obj/xkb-compat.o .obj/context.o .obj/xkb-keymap.o .obj/keysym.o .obj/keysym-utf.o .obj/state.o .obj/text.o .obj/context-priv.o .obj/keymap-priv.o .obj/utils.o .obj/utf8.o .obj/action.o .obj/ast-build.o .obj/compat.o .obj/expr.o .obj/include.o .obj/keycodes.o .obj/keymap-dump.o .obj/keymap.o .obj/keywords.o .obj/rules.o .obj/scanner.o .obj/symbols.o .obj/types.o .obj/vmod.o .obj/xkbcomp.o .obj/parser.o .obj/moc_qxcbconnection.o .obj/moc_qxcbmime.o .obj/moc_qxcbnativeinterface.o .obj/moc_qxcbsystemtraytracker.o -L/home/hico/share/ubuntu-12.04/usr/lib -lX11-xcb -lXi -lxcb-render-util -lSM -lICE -ldl -lxcb-glx -L/home/hico/share/ubuntu-12.04/usr/lib/arm-linux-gnueabihf -lxcb-render -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -L/media/Data/qt-everywhere-opensource-src-5.4.1/qtbase/lib -lQt5PlatformSupport -lfontconfig -lfreetype -lQt5DBus -pthread -lgthread-2.0 -lglib-2.0 -lXrender -lXext -lX11 -lm -ludev -lrt -lEGL -lQt5Gui -lQt5Core -lGL -lpthread
.obj/qxcbclipboard.o: In functionQXcbClipboard::handleSelectionRequest(xcb_selection_request_event_t*)': /media/Data/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/platforms/xcb/qxcbclipboard.cpp:626: undefined reference to
QDebug::~QDebug()'
.obj/qxcbconnection.o: In functionlcQpaXInput()': /media/Data/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:87: undefined reference to
QLoggingCategory::QLoggingCategory(char const*)'
/media/Data/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:87: undefined reference toQLoggingCategory::~QLoggingCategory()' .obj/qxcbconnection.o: In function
lcQpaXInputDevices()':
/media/Data/qt-everywhere-opensource-src-5.4.1/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:88: undefined reference to `QLoggingCategory::QLoggingCategory(char const*)'
...And I don't know why. Does anyone have a suggestion how to fix this?
My configuration is:
Building on: linux-g++ (i386, CPU features: none detected)
Building for: devices/linux-imx6-g++ (arm, CPU features: neon)Build options:
Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend clock-gettime clock-monotonic compile_examples concurrent cross_compile cups dbus debug egl evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gtk2 gtkstyle harfbuzz iconv icu inotify ipv6ifname large-config largefile libudev medium-config minimal-config mremap neon nis opengl openssl openvg pcre png posix_fallocate pulseaudio qpa qpa reduce_exports rpath shared small-config system-freetype system-jpeg system-png system-zlib xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender
Build parts ............ libs examples
Mode ................... debug
Using C++11 ............ no
Using gold linker....... no
Using PCH .............. no
Target compiler supports:
Neon ................. yesQt modules and options:
Qt D-Bus ............... yes (loading dbus-1 at runtime)
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. yes
QML debugging .......... yes
Use system proxies ..... noSupport enabled for:
Accessibility .......... yes
ALSA ................... yes
CUPS ................... yes
Evdev .................. yes
FontConfig ............. yes
FreeType ............... yes (system library)
Glib ................... yes
GTK theme .............. yes
HarfBuzz ............... yes (bundled copy)
Iconv .................. yes
ICU .................... yes
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using system library)
PNG .................. yes (in QtGui, using system library)
journald ............... no
mtdev .................. no
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
OpenSSL .............. yes (loading libraries at run-time)
NIS .................... yes
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... desktop
OpenVG ............... yes-auto
PCRE ................... yes (bundled copy)
pkg-config ............. yes
PulseAudio ............. yes
QPA backends:
DirectFB ............. no
EGLFS ................ no
KMS .................. no
LinuxFB .............. no
XCB .................. yes (system library)
EGL on X ........... no
GLX ................ yes
MIT-SHM ............ yes
Xcb-Xlib ........... yes
Xcursor ............ yes (loaded at runtime)
Xfixes ............. yes (loaded at runtime)
Xi ................. no
Xi2 ................ yes
Xinerama ........... yes (loaded at runtime)
Xrandr ............. yes (loaded at runtime)
Xrender ............ yes
XKB ................ no
XShape ............. yes
XSync .............. yes
XVideo ............. yes
Session management ..... yes
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. yes (plugin)
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. yes (plugin)
udev ................... yes
xkbcommon .............. yes (bundled copy, XKB config root: /usr/share/X11/xkb)
zlib ................... yes (system library)