Solved Cross-Compile 5.7.1 for BeagleBoneBlack
-
Title states most of my case:
[Target]
BeagleBoneBlack
Linux beaglebone 4.4.30-ti-r64 armv7l GNU/linux
Debian 8.6
gcc version 4.9.2[host]
Ubuntu 16.04
4.4.0-145-generic x86_64 GNU/Linux[Tools]
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf
Qt 5.7.1 [git source][Configuration Output]
Build options: Configuration .......... audio-backend c++11 c++14 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus dbus-linked doubleconversion egl egl_x11 enable_new_dtags evdev eventfd freetype full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname kms large-config largefile libudev linuxfb medium-config minimal-config mremap neon no-libdl no-qml-debug openssl pcre png poll_ppoll posix_fallocate precompile_header qpa qpa reduce_exports release release_tools rpath shared small-config threadsafe-cloexec use_gold_linker xcb xcb-glx xcb-plugin xcb-qt xcb-xlib xinput2 xkbcommon-evdev xkbcommon-qt xlib xrender zlib Build parts ............ libs Mode ................... release; optimized tools Using sanitizer(s)...... none Using C++ standard ..... c++14 Using gold linker....... yes Using new DTAGS ........ yes Using PCH .............. yes Using LTCG ............. no Target compiler supports: Neon ................. yes Qt modules and options: Qt D-Bus ............... yes (linked to dbus-1) Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes Large File ............. yes QML debugging .......... no Use system proxies ..... no Support enabled for: Accessibility .......... no ALSA ................... no CUPS ................... no DoubleConversion........ yes (bundled copy) Evdev .................. yes FontConfig ............. no FreeType ............... yes (bundled copy) Glib ................... no GStreamer .............. no GTK platformtheme ...... no HarfBuzz ............... yes (bundled copy) Iconv .................. yes ICU .................... no Image formats: GIF .................. yes (plugin, using bundled copy) JPEG ................. yes (plugin, using bundled copy) PNG .................. yes (in QtGui, using bundled copy) libinput................ no Logging backends: journald ............... no syslog ............... no mtdev .................. no Networking: getaddrinfo .......... yes getifaddrs ........... yes IPv6 ifname .......... yes libproxy.............. no OpenSSL .............. yes (loading libraries at run-time) OpenGL / OpenVG: EGL .................. yes OpenGL ............... no OpenVG ............... no PCRE ................... yes (bundled copy) pkg-config ............. yes PulseAudio ............. no QPA backends: DirectFB ............. no EGLFS ................ no EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... no EGLFS Mali ......... no EGLFS Raspberry Pi . no EGLFS X11 .......... yes LinuxFB .............. yes Mir client............ no XCB .................. yes (bundled copy) EGL on X ........... yes GLX ................ yes MIT-SHM ............ yes Xcb-Xlib ........... yes Xcursor ............ yes (loaded at runtime) Xfixes ............. yes (loaded at runtime) Xi2 ................ yes Xrandr ............. yes (loaded at runtime) Xrender ............ yes XKB ................ yes XShape ............. yes XSync .............. yes Session management ..... yes SQL drivers: DB2 .................. no InterBase ............ no MySQL ................ no OCI .................. no ODBC ................. no PostgreSQL ........... no SQLite 2 ............. no SQLite ............... yes (plugin, using bundled copy) TDS .................. no tslib .................. no udev ................... yes xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb) xkbcommon-evdev......... yes zlib ................... yes (bundled copy)
[Make error]
make[5]: Leaving directory '/opt/Qt/qt5/qtbase/src/plugins/platforms/linuxfb' rm -f libQt5XcbQpa.so.5.7.1 libQt5XcbQpa.so libQt5XcbQpa.so.5 libQt5XcbQpa.so.5.7 /opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/mnt/rootfs -Wl,--no-undefined -Wl,--version-script,QtXcbQpa.version -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/lib -Wl,-rpath,/opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/lib -Wl,-rpath,/mnt/rootfs/usr/lib/arm-linux-gnueabihf -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared -Wl,-soname,libQt5XcbQpa.so.5 -o libQt5XcbQpa.so.5.7.1 .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/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbconnection_xi2.o .obj/qxcbglintegrationfactory.o .obj/qxcbglintegration.o .obj/qxcbnativeinterfacehandler.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/util.o .obj/x11-keymap.o .obj/x11-state.o .obj/moc_qxcbconnection.o .obj/moc_qxcbmime.o .obj/moc_qxcbnativeinterface.o .obj/moc_qxcbsystemtraytracker.o .obj/moc_qxcbglintegrationplugin.o -lX11-xcb -lXi -L/mnt/rootfs/usr/lib/arm-linux-gnueabihf -ldbus-1 -lxcb -L/opt/Qt/qt5/qtbase/lib -lxcb-static -lQt5PlatformSupport -lXext -lX11 -lm -lqtfreetype -lqtpng -lrt -ldl -ludev -lEGL -lQt5Gui -lQt5DBus -lQt5Core -lpthread .obj/qxcbclipboard.o:qxcbclipboard.cpp:function QXcbClipboard::handleSelectionRequest(xcb_selection_request_event_t*): error: undefined reference to 'QDebug::putByteArray(char const*, unsigned int, QDebug::Latin1Content)' .obj/qxcbclipboard.o:qxcbclipboard.cpp:function QXcbClipboard::handleSelectionRequest(xcb_selection_request_event_t*): error: undefined reference to 'QDebug::~QDebug()' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::~QXcbConnection(): error: undefined reference to 'QPlatformIntegration::destroyScreen(QPlatformScreen*)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::atomName(unsigned int): error: undefined reference to 'QDebug::~QDebug()' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::destroyScreen(QXcbScreen*): error: undefined reference to 'QPlatformIntegration::destroyScreen(QPlatformScreen*)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::destroyScreen(QXcbScreen*): error: undefined reference to 'QPlatformIntegration::setPrimaryScreen(QPlatformScreen*)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::destroyScreen(QXcbScreen*): error: undefined reference to 'QDebug::putString(QChar const*, unsigned int)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::destroyScreen(QXcbScreen*): error: undefined reference to 'QDebug::~QDebug()' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::destroyScreen(QXcbScreen*): error: undefined reference to 'QDebug::~QDebug()' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::createScreen(QXcbVirtualDesktop*, xcb_randr_output_change_t const&, xcb_randr_get_output_info_reply_t*): error: undefined reference to 'QPlatformIntegration::screenAdded(QPlatformScreen*, bool)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::updateScreens(xcb_randr_notify_event_t const*): error: undefined reference to 'QDebug::putString(QChar const*, unsigned int)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::updateScreens(xcb_randr_notify_event_t const*): error: undefined reference to 'QHighDpiScaling::updateHighDpiScaling()' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::updateScreens(xcb_randr_notify_event_t const*): error: undefined reference to 'QDebug::putString(QChar const*, unsigned int)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::updateScreens(xcb_randr_notify_event_t const*): error: undefined reference to 'QDebug::putString(QChar const*, unsigned int)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::initializeScreens(): error: undefined reference to 'QPlatformIntegration::screenAdded(QPlatformScreen*, bool)' .obj/qxcbconnection.o:qxcbconnection.cpp:function QXcbConnection::updateScreen(QXcbScreen*, xcb_randr_output_change_t const&): error: undefined reference to 'QPlatformIntegration::setPrimaryScreen(QPlatformScreen*)' .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::initialize(): error: undefined reference to 'QPlatformInputContextFactory::requested()' .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::initialize(): error: undefined reference to 'QString::operator=(QLatin1String)' .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::wmClass() const: error: undefined reference to 'QString::resize(int, QChar)' .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**): error: undefined reference to 'QPlatformServices::QPlatformServices()' .obj/qxcbintegration.o:qxcbintegration.cpp:function QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**): error: undefined reference to 'QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' .obj/qxcbintegration.o:qxcbintegration.cpp:vtable for QXcbIntegration: error: undefined reference to 'QPlatformIntegration::destroy()' .obj/qxcbintegration.o:qxcbintegration.cpp:vtable for QXcbIntegration: error: undefined reference to 'QPlatformIntegration::setApplicationIcon(QIcon const&) const' .obj/qxcbkeyboard.o:qxcbkeyboard.cpp:function QXcbKeyboard::handleKeyEvent(unsigned int, QEvent::Type, unsigned char, unsigned short, unsigned int): error: undefined reference to 'QWindowSystemInterface::handleExtendedKeyEvent(QWindow*, unsigned long, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short, bool)' .obj/qxcbkeyboard.o:qxcbkeyboard.cpp:function QXcbKeyboard::handleKeyEvent(unsigned int, QEvent::Type, unsigned char, unsigned short, unsigned int): error: undefined reference to 'QWindowSystemInterface::handleExtendedKeyEvent(QWindow*, unsigned long, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short, bool)' .obj/qxcbmime.o:qxcbmime.cpp:function QXcbMime::mimeConvertToFormat(QXcbConnection*, unsigned int, QByteArray const&, QString const&, QVariant::Type, QByteArray const&): error: undefined reference to 'QString::trimmed_helper(QString const&)' .obj/qxcbdrag.o:qxcbdrag.cpp:function QXcbDrag::move(QPoint const&): error: undefined reference to 'QHighDpiScaling::mapPositionFromNative(QPoint const&, QPlatformScreen const*)' .obj/qxcbdrag.o:qxcbdrag.cpp:function QXcbDrag::move(QPoint const&): error: undefined reference to 'QBasicDrag::recreateShapedPixmapWindow(QScreen*, QPoint const&)' .obj/qxcbdrag.o:qxcbdrag.cpp:function QXcbDrag::move(QPoint const&): error: undefined reference to 'QBasicDrag::moveShapedPixmapWindow(QPoint const&)' .obj/qxcbdrag.o:qxcbdrag.cpp:function QXcbDrag::drop(QPoint const&): error: undefined reference to 'QBasicDrag::drop(QPoint const&)' .obj/qxcbdrag.o:qxcbdrag.cpp:vtable for QXcbDrag: error: undefined reference to 'QBasicDrag::cancelDrag()' .obj/qxcbscreen.o:qxcbscreen.cpp:function QXcbScreen::logicalDpi() const [clone .localalias.72]: error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)' .obj/qxcbscreen.o:qxcbscreen.cpp:function QXcbScreen::updateGeometry(QRect const&, unsigned char): error: undefined reference to 'QWindowSystemInterface::handleScreenGeometryChange(QScreen*, QRect const&, QRect const&)' .obj/qxcbscreen.o:qxcbscreen.cpp:function QXcbScreen::handleScreenChange(xcb_randr_screen_change_notify_event_t*): error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)' .obj/qxcbscreen.o:qxcbscreen.cpp:function QXcbScreen::updateAvailableGeometry(): error: undefined reference to 'QWindowSystemInterface::handleScreenGeometryChange(QScreen*, QRect const&, QRect const&)' .obj/qxcbscreen.o:qxcbscreen.cpp:function operator<<(QDebug, QXcbScreen const*): error: undefined reference to 'qt_QMetaEnum_debugOperator(QDebug&, int, QMetaObject const*, char const*)' .obj/qxcbscreen.o:qxcbscreen.cpp:function operator<<(QDebug, QXcbScreen const*): error: undefined reference to 'qEnvironmentVariableIntValue(char const*, bool*)' .obj/qxcbscreen.o:qxcbscreen.cpp:vtable for QXcbScreen: error: undefined reference to 'QPlatformScreen::subpixelAntialiasingTypeHint() const' .obj/qxcbscreen.o:qxcbscreen.cpp:vtable for QXcbScreen: error: undefined reference to 'QPlatformScreen::powerState() const' .obj/qxcbscreen.o:qxcbscreen.cpp:vtable for QXcbScreen: error: undefined reference to 'QPlatformScreen::setPowerState(QPlatformScreen::PowerState)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::updateMotifWmHintsBeforeMap(): error: undefined reference to 'QPlatformWindow::windowMinimumSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::updateMotifWmHintsBeforeMap(): error: undefined reference to 'QPlatformWindow::windowMaximumSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::propagateSizeHints(): error: undefined reference to 'QPlatformWindow::windowMinimumSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::propagateSizeHints(): error: undefined reference to 'QPlatformWindow::windowMaximumSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::propagateSizeHints(): error: undefined reference to 'QPlatformWindow::windowBaseSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::propagateSizeHints(): error: undefined reference to 'QPlatformWindow::windowSizeIncrement() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::hide(): error: undefined reference to 'QPlatformScreen::screenForPosition(QPoint const&) const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::hide(): error: undefined reference to 'QHighDpiScaling::factor(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::hide(): error: undefined reference to 'QHighDpiScaling::origin(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::hide(): error: undefined reference to 'QHighDpiScaling::factor(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::hide(): error: undefined reference to 'QHighDpiScaling::origin(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::handleClientMessageEvent(xcb_client_message_event_t const*): error: undefined reference to 'QDebug::putByteArray(char const*, unsigned int, QDebug::Latin1Content)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::handleClientMessageEvent(xcb_client_message_event_t const*): error: undefined reference to 'QDebug::putByteArray(char const*, unsigned int, QDebug::Latin1Content)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QPlatformWindow::windowGeometry() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QPlatformWindow::windowMinimumSize() const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QPlatformWindow::screenForGeometry(QRect const&) const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QHighDpiScaling::factor(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QHighDpiScaling::factor(QScreen const*)' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::create(): error: undefined reference to 'QHighDpiScaling::m_active' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::setGeometry(QRect const&): error: undefined reference to 'QPlatformWindow::screenForGeometry(QRect const&) const' .obj/qxcbwindow.o:qxcbwindow.cpp:function QXcbWindow::handleConfigureNotifyEvent(xcb_configure_notify_event_t const*): error: undefined reference to 'QPlatformWindow::screenForGeometry(QRect const&) const' .obj/qxcbwindow.o:qxcbwindow.cpp:vtable for QXcbWindow: error: undefined reference to 'QPlatformWindow::requestUpdate()' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbShmImage::QXcbShmImage(QXcbScreen*, QSize const&, unsigned int, QImage::Format): error: undefined reference to 'QImage::toPixelFormat(QImage::Format)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbShmImage::QXcbShmImage(QXcbScreen*, QSize const&, unsigned int, QImage::Format): error: undefined reference to 'QImage::toPixelFormat(QImage::Format)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbShmImage::QXcbShmImage(QXcbScreen*, QSize const&, unsigned int, QImage::Format): error: undefined reference to 'QPlatformGraphicsBuffer::QPlatformGraphicsBuffer(QSize const&, QPixelFormat const&)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbBackingStore::flush(QWindow*, QRegion const&, QPoint const&): error: undefined reference to 'QHighDpiScaling::factor(QWindow const*)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbShmGraphicsBuffer::~QXcbShmGraphicsBuffer(): error: undefined reference to 'QPlatformGraphicsBuffer::~QPlatformGraphicsBuffer()' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:function QXcbShmGraphicsBuffer::~QXcbShmGraphicsBuffer(): error: undefined reference to 'QPlatformGraphicsBuffer::~QPlatformGraphicsBuffer()' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:typeinfo for QXcbShmGraphicsBuffer: error: undefined reference to 'typeinfo for QPlatformGraphicsBuffer' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:vtable for QXcbShmGraphicsBuffer: error: undefined reference to 'QPlatformGraphicsBuffer::metaObject() const' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:vtable for QXcbShmGraphicsBuffer: error: undefined reference to 'QPlatformGraphicsBuffer::qt_metacast(char const*)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:vtable for QXcbShmGraphicsBuffer: error: undefined reference to 'QPlatformGraphicsBuffer::qt_metacall(QMetaObject::Call, int, void**)' .obj/qxcbbackingstore.o:qxcbbackingstore.cpp:vtable for QXcbShmGraphicsBuffer: error: undefined reference to 'QPlatformGraphicsBuffer::bindToTexture(QRect const&) const' .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::nativeResourceFunctionForIntegration(QByteArray const&): error: undefined reference to 'QByteArray::toLower_helper(QByteArray const&)' .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::nativeResourceFunctionForContext(QByteArray const&): error: undefined reference to 'QByteArray::toLower_helper(QByteArray const&)' .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::nativeResourceFunctionForScreen(QByteArray const&): error: undefined reference to 'QByteArray::toLower_helper(QByteArray const&)' .obj/qxcbnativeinterface.o:qxcbnativeinterface.cpp:function QXcbNativeInterface::nativeResourceFunctionForWindow(QByteArray const&): error: undefined reference to 'QByteArray::toLower_helper(QByteArray const&)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::touchDeviceForId(int): error: undefined reference to 'QWindowSystemInterface::registerTouchDevice(QTouchDevice const*)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2HandleScrollEvent(void*, QXcbConnection::ScrollingDevice&): error: undefined reference to 'QWindowSystemInterface::handleWheelEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, QPoint, QPoint, QFlags<Qt::KeyboardModifier>, Qt::ScrollPhase, Qt::MouseEventSource, bool)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2ReportTabletEvent(void const*, QXcbConnection::TabletData*): error: undefined reference to 'QWindowSystemInterface::handleTabletEvent(QWindow*, unsigned long, QPointF const&, QPointF const&, int, int, QFlags<Qt::MouseButton>, double, int, int, double, double, int, long long, QFlags<Qt::KeyboardModifier>)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2SetupDevices(): error: undefined reference to 'QByteArray::toLower_helper(QByteArray&)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2SetupDevices(): error: undefined reference to 'QString::operator=(QLatin1String)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2SetupDevices(): error: undefined reference to 'QDebug::putByteArray(char const*, unsigned int, QDebug::Latin1Content)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2SetupDevices(): error: undefined reference to 'QString::operator=(QLatin1String)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2SetupDevices(): error: undefined reference to 'QString::operator=(QLatin1String)' .obj/qxcbconnection_xi2.o:qxcbconnection_xi2.cpp:function QXcbConnection::xi2Select(unsigned int): error: undefined reference to 'QWindowSystemInterfacePrivate::TabletEvent::setPlatformSynthesizesMouse(bool)' .obj/moc_qxcbsystemtraytracker.o:moc_qxcbsystemtraytracker.cpp:function QXcbSystemTrayTracker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**): error: undefined reference to 'QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qbasicfontdatabase.o):qbasicfontdatabase.cpp:function QBasicFontDatabase::fontEngine(QFontDef const&, void*): error: undefined reference to 'QPlatformFontDatabase::subpixelAntialiasingTypeHint() const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qbasicfontdatabase.o):qbasicfontdatabase.cpp:function QBasicFontDatabase::addTTFile(QByteArray const&, QByteArray const&): error: undefined reference to 'QPlatformFontDatabase::weightFromInteger(int)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qbasicfontdatabase.o):qbasicfontdatabase.cpp:vtable for (anonymous namespace)::QFontEngineFTRawData: error: undefined reference to 'QFontEngine::minLeftBearing() const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qbasicfontdatabase.o):qbasicfontdatabase.cpp:vtable for (anonymous namespace)::QFontEngineFTRawData: error: undefined reference to 'QFontEngine::minRightBearing() const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qfontengine_ft.o):qfontengine_ft.cpp:vtable for QFontEngineFT: error: undefined reference to 'QFontEngine::minLeftBearing() const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qfontengine_ft.o):qfontengine_ft.cpp:vtable for QFontEngineFT: error: undefined reference to 'QFontEngine::minRightBearing() const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qgenericunixservices.o):qgenericunixservices.cpp:function QGenericUnixServices::desktopEnvironment() const: error: undefined reference to 'QByteArray::toUpper_helper(QByteArray const&)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qgenericunixthemes.o):qgenericunixthemes.cpp:function QGenericUnixTheme::xdgIconThemePaths(): error: undefined reference to 'QString::splitRef(QChar, QString::SplitBehavior, Qt::CaseSensitivity) const' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qdbusmenubar.o):qdbusmenubar.cpp:function QDBusMenuBar::registerMenuBar(): error: undefined reference to 'QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qdbusmenubar.o):qdbusmenubar.cpp:function QtPrivate::ConverterFunctor<QVector<QDBusMenuItemKeys>, QtMetaTypePrivate::QSequentialIterableImpl, QtMetaTypePrivate::QSequentialIterableConvertFunctor<QVector<QDBusMenuItemKeys> > >::convert(QtPrivate::AbstractConverterFunction const*, void const*, void*): error: undefined reference to 'QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qdbustrayicon.o):qdbustrayicon.cpp:function QDBusTrayIcon::tempIcon(QIcon const&): error: undefined reference to 'QLockFilePrivate::processNameByPid(long long)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qdbusmenutypes.o):qdbusmenutypes.cpp:function QDBusMenuItem::convertMnemonic(QString const&): error: undefined reference to 'QString::resize(int, QChar)' /opt/Qt/qt5/qtbase/lib/libQt5PlatformSupport.a(qdbusmenutypes.o):qdbusmenutypes.cpp:function QDBusMenuItem::convertKeySequence(QKeySequence const&): error: undefined reference to 'QKeySequencePrivate::keyName(int, QKeySequence::SequenceFormat)' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function ft_gzip_stream_close: error: undefined reference to 'z_inflateEnd' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function ft_gzip_file_fill_output: error: undefined reference to 'z_inflate' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function ft_gzip_file_io: error: undefined reference to 'z_inflateReset' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Stream_OpenGzip: error: undefined reference to 'z_inflateInit2_' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Stream_OpenGzip: error: undefined reference to 'z_inflateEnd' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Gzip_Uncompress: error: undefined reference to 'z_inflateInit2_' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Gzip_Uncompress: error: undefined reference to 'z_inflate' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Gzip_Uncompress: error: undefined reference to 'z_inflateEnd' /opt/Qt/qt5/qtbase/lib/libqtfreetype.a(ftgzip.o):ftgzip.c:function FT_Gzip_Uncompress: error: undefined reference to 'z_inflateEnd' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_reset_crc: error: undefined reference to 'z_crc32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_calculate_crc: error: undefined reference to 'z_crc32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_icc_set_sRGB: error: undefined reference to 'z_adler32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_icc_set_sRGB: error: undefined reference to 'z_adler32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_icc_set_sRGB: error: undefined reference to 'z_crc32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_icc_set_sRGB: error: undefined reference to 'z_crc32' /opt/Qt/qt5/qtbase/lib/libqtpng.a(png.o):png.c:function png_reset_zstream: error: undefined reference to 'z_inflateReset' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngrutil.o):pngrutil.c:function png_inflate_claim: error: undefined reference to 'z_inflateReset' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngrutil.o):pngrutil.c:function png_inflate_claim: error: undefined reference to 'z_inflateInit_' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngrutil.o):pngrutil.c:function png_inflate.constprop.6: error: undefined reference to 'z_inflate' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngrutil.o):pngrutil.c:function png_decompress_chunk.constprop.5: error: undefined reference to 'z_inflateReset' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngrutil.o):pngrutil.c:function png_inflate_read.part.2.constprop.8: error: undefined reference to 'z_inflate' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwrite.o):pngwrite.c:function png_destroy_write_struct: error: undefined reference to 'z_deflateEnd' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwutil.o):pngwutil.c:function png_deflate_claim: error: undefined reference to 'z_deflateInit2_' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwutil.o):pngwutil.c:function png_deflate_claim: error: undefined reference to 'z_deflateEnd' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwutil.o):pngwutil.c:function png_deflate_claim: error: undefined reference to 'z_deflateReset' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwutil.o):pngwutil.c:function png_text_compress: error: undefined reference to 'z_deflate' /opt/Qt/qt5/qtbase/lib/libqtpng.a(pngwutil.o):pngwutil.c:function png_compress_IDAT: error: undefined reference to 'z_deflate' collect2: error: ld returned 1 exit status Makefile.xcb_qpa_lib:358: recipe for target '../../../../lib/libQt5XcbQpa.so.5.7.1' failed make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.7.1] Error 1 make[6]: Leaving directory '/opt/Qt/qt5/qtbase/src/plugins/platforms/xcb' Makefile:86: recipe for target 'sub-xcb_qpa_lib-pro-make_first-ordered' failed make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2 make[5]: Leaving directory '/opt/Qt/qt5/qtbase/src/plugins/platforms/xcb' Makefile:95: recipe for target 'sub-xcb-make_first' failed make[4]: *** [sub-xcb-make_first] Error 2 make[4]: Leaving directory '/opt/Qt/qt5/qtbase/src/plugins/platforms' Makefile:99: recipe for target 'sub-platforms-make_first' failed make[3]: *** [sub-platforms-make_first] Error 2 make[3]: Leaving directory '/opt/Qt/qt5/qtbase/src/plugins' Makefile:720: recipe for target 'sub-plugins-make_first' failed make[2]: *** [sub-plugins-make_first] Error 2 make[2]: Leaving directory '/opt/Qt/qt5/qtbase/src' Makefile:46: recipe for target 'sub-src-make_first' failed make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory '/opt/Qt/qt5/qtbase' Makefile:77: recipe for target 'module-qtbase-make_first' failed make: *** [module-qtbase-make_first] Error 2
-
I'm trying to wrap my head around why a Qt based library would have undefined references to another Qt based library? The only thing I can think of is I should be building each module in a specific order, but never ran across any indication this is true elsewhere?
I've also found a few related, unsolved posts about the exact same thing.
-
In the event someone else runs across this, I was blindly using a BeagleBone Black image that was running an lxqt version of Debian. So it had QT libraries already installed on it, that were conflicting. I purged all QT libs and installs from the image, rsynced the sysroot again, and it built without issue. So take a look at your sysroot and verify there aren't any pre-existing QT libraries, headers, or things of that nature before trying to cross-compile to it. Good luck.
-
@While_e Hi,
please specify the ./configure line(which parameters you used)...