Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build QT 5.4.1 on ARM Ubuntu leads to undefined references
Forum Updated to NodeBB v4.3 + New Features

Build QT 5.4.1 on ARM Ubuntu leads to undefined references

Scheduled Pinned Locked Moved Mobile and Embedded
linuximx6compile-errors
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PhTe
    wrote on last edited by
    #1

    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 function QXcbClipboard::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 function lcQpaXInput()': /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 to QLoggingCategory::~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 ................. yes

    Qt 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 ..... no

    Support 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)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved