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. Help build Qt5.15.2 with aarch64-linux-gnu-g++
QtWS25 Last Chance

Help build Qt5.15.2 with aarch64-linux-gnu-g++

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 1.0k 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.
  • B Offline
    B Offline
    Balaton
    wrote on 14 Apr 2022, 07:13 last edited by
    #1

    Hello! I want to build Qt5.15.2 with aarch64-linux-gnu-g++. Cross compiler gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu. Qt5 qt-everywhere-src-5.15.2.tar.xz.
    Configure:

    ../qt-everywhere-src-5.15.2/configure -release -no-opengl -linuxfb -device linux-arm-generic-g++ -device-option CROSS_COMPILE=/opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot /opt/qt5rock/sysroot/ -gcc-sysroot -prefix /usr/local/qt5pi -extprefix /opt/qt5rock/targetBinaries -hostprefix /opt/qt5rock/hostBinaries -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -nomake tests -make libs -pkg-config -no-use-gold-linker -v -recheck -I /opt/qt5rock/sysroot/usr/include -I /opt/qt5rock/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include -L /opt/qt5rock/sysroot/lib -L /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu
    
    

    After configure I get a lot of similar errors. An example is one of them:

    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -c -pipe --sysroot=/opt/qt5rock/sysroot/ --sysroot=/opt/qt5rock/sysroot/ -O2 -w -fPIC  -I. -I/opt/qt5rock/sysroot/usr/include -I/opt/qt5rock/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include -I/opt/qt5rock/sysroot/usr/include/aarch64-linux-gnu -I/opt/qt5rock/qt-everywhere-src-5.15.2/qtbase/mkspecs/devices/linux-arm-generic-g++ -o main.o main.cpp
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ --sysroot=/opt/qt5rock/sysroot/ --sysroot=/opt/qt5rock/sysroot/ -Wl,-O1 -o tiff main.o   -L/opt/qt5rock/sysroot/lib -L/opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu -L/opt/qt5rock/sysroot//usr/lib/aarch64-linux-gnu -ltiff   
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: libwebp.so.6, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: libzstd.so.1, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: liblzma.so.5, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: libjbig.so.0, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: libjpeg.so.62, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.5.0/../../../../aarch64-linux-gnu/bin/ld: warning: libz.so.1, needed by /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so, not found (try using -rpath or -rpath-link)
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `deflateInit_'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `WebPPictureImportRGB'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `lzma_lzma_preset@XZ_5.0'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_finish_decompress@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `deflate'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_destroy@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jbg_dec_init'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `lzma_memusage@XZ_5.0'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `jpeg_read_scanlines@LIBJPEG_6.2'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `ZSTD_initCStream'
    > /opt/qt5rock/sysroot/usr/lib/aarch64-linux-gnu/libtiff.so: undefined reference to `deflateEnd'
    

    The linker does not see certain bob libraries, although they are present in the folders specified in the -L switch.

    libwebp.so.6
    libzstd.so.1
    liblzma.so.5
    libjbig.so.0
    libjpeg.so.62
    libz.so.1

    Someone can tell you how to correctly tell the linker where to get these libraries.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Apr 2022, 19:46 last edited by
      #2

      Hi and welcome to devnet,

      What do you mean by bob libraries ?

      Are you sure these librairies you point to are of the correct architecture ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        macfanpl
        wrote on 15 Apr 2022, 12:13 last edited by
        #3

        @SGaist Me direns that OP meant blob...........

        Whatever he meant, I think that shitty compilator ( dcc ), upon being dinted, should:

        • look for deps and install All ( SCREW you utf )
        • relink libs
        1 Reply Last reply
        0

        1/3

        14 Apr 2022, 07:13

        • Login

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