Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

static qt for mips: Can't find matching LO16 reloc against



  • I'm trying to compile QT static libs for MIPSEL
    so I have qmake.conf with redefined flags

    CROSS_COMPILE           = mipsel-unknown-linux-gnu-
    QMAKE_CC                = $${CROSS_COMPILE}gcc
    QMAKE_CXX               = $${CROSS_COMPILE}g++
    QMAKE_LINK              = $${QMAKE_CXX}
    QMAKE_LINK_SHLIB        = $${QMAKE_CXX}
    
    QMAKE_AR                = $${CROSS_COMPILE}ar cqs
    QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
    QMAKE_NM                = $${CROSS_COMPILE}nm -P
    QMAKE_STRIP             = $${CROSS_COMPILE}strip
    
    QMAKE_CFLAGS            = -EL -march=mips32r5
    QMAKE_CXXFLAGS          = $${QMAKE_CFLAGS}
    QMAKE_LFLAGS            = -EL
    
    QT_QPA_DEFAULT_PLATFORM = xcb
    

    during compilation of examples I have this

    mipsel-unknown-linux-gnu/bin/ld: /tmp/qt/qt-everywhere-src-5.11.2/qtbase/lib/libQt5Core.a(qurl.o): Can't find matching LO16 reloc against `_ZL8parseIp6R7QStringPK5QCharS3_N4QUrl11ParsingModeE' for R_MIPS_GOT16 at 0x36c in section `.text._ZN11QUrlPrivate7setHostERK7QStringiiN4QUrl11ParsingModeE[_ZN11QUrlPrivate7setHostERK7QStringiiN4QUrl11ParsingModeE]'
    

    Is it a toolchain problem or qt?

    my configuration parameters are:

    ./configure -opensource -confirm-license -static -release -nomake tests -no-opengl -webengine-embedded-build -xplatform devices/linux-mipsel-unknown-g++ -v -sysroot /opt/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/sysroot/
    

  • Lifetime Qt Champion


Log in to reply