Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT Creator Unresolved Symbols on Raspbian Stretch
Forum Updated to NodeBB v4.3 + New Features

QT Creator Unresolved Symbols on Raspbian Stretch

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 719 Views
  • 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.
  • Mighty MM Offline
    Mighty MM Offline
    Mighty M
    wrote on last edited by Mighty M
    #1

    Hi,

    Built QT on RPI3 (Raspbian Stretch), now trying to build QT Creator IDE and getting undefined references. The QT version I natively built is 5.10. Trying to now build QT Creator 4.9. I know 4.9 Creator is compatible with 5.10 QT (thats the instructions I am following). I can see some 5.7 QT libs are installed in the OS, but when I check apt-get package manager it only offers 5.7.1 as available ? Can I upgrade the QT OS libs to 5.10 ? I have built 5.10 via make, make install, not installed via package manager.

    apt-get Qt packages installed :
    liblxqt-l10n/stable,now 0.11.2-1 all [installed,automatic]
    liblxqt0/stable,now 0.11.1-1 armhf [installed,automatic]
    libpolkit-qt5-1-1/stable,now 0.112.0-5 armhf [installed,automatic]
    libqt5core5a/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    libqt5dbus5/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    libqt5gui5/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    libqt5network5/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    libqt5svg5/stable,now 5.7.1~20161021-2 armhf [installed,automatic]
    libqt5widgets5/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    libqt5x11extras5/stable,now 5.7.1~20161021-2 armhf [installed,automatic]
    libqt5xdg2/stable,now 2.0.0-5+b1 armhf [installed,automatic]
    libqt5xdgiconloader2/stable,now 2.0.0-5+b1 armhf [installed,automatic]
    libqt5xml5/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    lxqt-policykit/stable,now 0.11.1-1 armhf [installed,automatic]
    lxqt-policykit-l10n/stable,now 0.11.2-1 all [installed,automatic]
    qt5-gtk-platformtheme/now 5.7.1+dfsg-3+rpi1 armhf [installed,upgradable to: 5.7.1+dfsg-3+rpi1+deb9u1]
    qttranslations5-l10n/stable,now 5.7.1~20161021-1 all [installed,automatic]

    Undefined References:
    pi@Pi3VISION:~/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0 $ make verbose=1
    cd src/ && ( test -e Makefile || /opt/Qt5.10/bin/qmake -o Makefile /home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/src.pro USE_SYSTEM_BOTAN=1 ) && make -f Makefile
    make[1]: Entering directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src'
    cd shared/ && ( test -e Makefile || /opt/Qt5.10/bin/qmake -o Makefile /home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/shared.pro USE_SYSTEM_BOTAN=1 ) && make -f Makefile
    make[2]: Entering directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared'
    cd qbs/src/lib/corelib/ && ( test -e Makefile || /opt/Qt5.10/bin/qmake -o Makefile /home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/lib/corelib/corelib.pro USE_SYSTEM_BOTAN=1 ) && make -f Makefile
    make[3]: Entering directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/lib/corelib'
    make[3]: Nothing to be done for 'first'.
    make[3]: Leaving directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/lib/corelib'
    cd qbs/src/app/ && ( test -e Makefile || /opt/Qt5.10/bin/qmake -o Makefile /home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app/app.pro USE_SYSTEM_BOTAN=1 ) && make -f Makefile
    make[3]: Entering directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app'
    cd qbs/ && ( test -e Makefile || /opt/Qt5.10/bin/qmake -o Makefile /home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app/qbs/qbs.pro USE_SYSTEM_BOTAN=1 ) && make -f Makefile
    make[4]: Entering directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app/qbs'
    /usr/bin/g++ -mfloat-abi=hard -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../lib/qtcreator' -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../lib' -Wl,-O1 -Wl,-rpath,/opt/Qt5.10/lib -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -o ../../../../../../bin/qbs consolelogger.o coloredoutput.o commandlineparser.o commandpool.o commandlineoption.o commandlineoptionpool.o parsercommand.o main.o ctrlchandler.o application.o status.o consoleprogressobserver.o commandlinefrontend.o qbstool.o moc_application.o moc_commandlinefrontend.o -L/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/lib/qtcreator -lqbscore -L/opt/Qt5.10/lib -lQt5Core -lpthread
    /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5: undefined reference to QLocaleData::validateChars(QString const&, QLocaleData::NumberMode, QByteArray*, int, QFlags<QLocale::NumberOption>) const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Xml.so.5: undefined reference to QXmlUtils::isPublicID(QString const&)@Qt_5_PRIVATE_API'
    /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5: undefined reference to `QLocaleData::bytearrayToLongLong(char const*, int, bool*, bool*)@Qt_5'
    collect2: error: ld returned 1 exit status
    Makefile:128: recipe for target '../../../../../../bin/qbs' failed
    make[4]: *** [../../../../../../bin/qbs] Error 1
    make[4]: Leaving directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app/qbs'
    Makefile:50: recipe for target 'sub-qbs-make_first' failed
    make[3]: *** [sub-qbs-make_first] Error 2
    make[3]: Leaving directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared/qbs/src/app'
    Makefile:73: recipe for target 'sub-qbs-src-app-make_first' failed
    make[2]: *** [sub-qbs-src-app-make_first] Error 2
    make[2]: Leaving directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src/shared'
    Makefile:50: recipe for target 'sub-shared-make_first-ordered' failed
    make[1]: *** [sub-shared-make_first-ordered] Error 2
    make[1]: Leaving directory '/home/pi/3rdparty/qt5.10/qt-creator-opensource-src-4.9.0/src'
    Makefile:45: recipe for target 'sub-src-make_first-ordered' failed
    make: *** [sub-src-make_first-ordered] Error 2

    Any ideas on how to solve this ?

    Thanks

    Marcus

    1 Reply Last reply
    0
    • Mighty MM Offline
      Mighty MM Offline
      Mighty M
      wrote on last edited by
      #2

      I found this page :
      https://www.tal.org/tutorials/building-qtcreator-raspberry-pi-debian-stretch

      Talks about removing pre-installed Qt libs, so I'm trying this.

      jsulmJ 1 Reply Last reply
      0
      • Mighty MM Mighty M

        I found this page :
        https://www.tal.org/tutorials/building-qtcreator-raspberry-pi-debian-stretch

        Talks about removing pre-installed Qt libs, so I'm trying this.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Mighty-M How did you call qmake? You should use absolute path to qmake from your own Qt build.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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