Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Having trouble with Cross Compile of Qt 5.5.0 build for ARM
Forum Updated to NodeBB v4.3 + New Features

Having trouble with Cross Compile of Qt 5.5.0 build for ARM

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 631 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.
  • samapolloS Offline
    samapolloS Offline
    samapollo
    wrote on last edited by samapollo
    #1

    Hello,
    I have been working at this for a couple of weeks now, and have not been able to build my version of Qt. I always run into the same error when I run my Make:

    qlibrary_unix.cpp:(.text+0x1330): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlopen.o): In function dlopen': (.text+0xc): undefined reference to __dlopen'
    /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlclose.o): In function dlclose': (.text+0x0): undefined reference to __dlclose'
    /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In function dlsym': (.text+0xc): undefined reference to __dlsym'
    /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlerror.o): In function dlerror': (.text+0x0): undefined reference to __dlerror'
    collect2: error: ld returned 1 exit status
    make[3]: *** [../../lib/libQt5Core.so.5.5.0] Error 1
    make[3]: Leaving directory /home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase/src/corelib' make[2]: *** [sub-corelib-make_first] Error 2 make[2]: Leaving directory /home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    This is my configuration:
    ./configure -shared -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/sam/Qt5/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/RaspImg/img2 -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi -qreal double -qt-xcb -Wno-psabi

    And this is my qmake.conf:

    qmake configuration for building with arm-linux-gnueabi-g++

    MAKEFILE_GENERATOR = UNIX
    CONFIG += incremental
    QMAKE_INCREMENTAL_STYLE = sublib

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    #include openGL libraries
    QMAKE_INCDIR_OPENGL = /usr/include/GL
    QMAKE_LIBDIR_OPENGL = /usr/lib
    QMAKE_LIBS_OPENGL = -lGLU -lGL
    QMAKE_LIBDIR_X11 = /usr/lib

    modifications to g++.conf

    QMAKE_CC = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-gcc
    QMAKE_CXX = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++
    QMAKE_LINK = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++

    modifications to linux.conf

    QMAKE_AR = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-objcopy
    QMAKE_NM = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-nm -P
    QMAKE_STRIP = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-strip
    load(qt_config)

    PLEASE HELP!!!

    jsulmJ 1 Reply Last reply
    0
    • samapolloS samapollo

      Hello,
      I have been working at this for a couple of weeks now, and have not been able to build my version of Qt. I always run into the same error when I run my Make:

      qlibrary_unix.cpp:(.text+0x1330): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlopen.o): In function dlopen': (.text+0xc): undefined reference to __dlopen'
      /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlclose.o): In function dlclose': (.text+0x0): undefined reference to __dlclose'
      /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In function dlsym': (.text+0xc): undefined reference to __dlsym'
      /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlerror.o): In function dlerror': (.text+0x0): undefined reference to __dlerror'
      collect2: error: ld returned 1 exit status
      make[3]: *** [../../lib/libQt5Core.so.5.5.0] Error 1
      make[3]: Leaving directory /home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase/src/corelib' make[2]: *** [sub-corelib-make_first] Error 2 make[2]: Leaving directory /home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase/src'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory `/home/sam/Qt5/qt-everywhere-opensource-src-5.5.0/qtbase'
      make: *** [module-qtbase-make_first] Error 2

      This is my configuration:
      ./configure -shared -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/sam/Qt5/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/RaspImg/img2 -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi -qreal double -qt-xcb -Wno-psabi

      And this is my qmake.conf:

      qmake configuration for building with arm-linux-gnueabi-g++

      MAKEFILE_GENERATOR = UNIX
      CONFIG += incremental
      QMAKE_INCREMENTAL_STYLE = sublib

      include(../common/linux.conf)
      include(../common/gcc-base-unix.conf)
      include(../common/g++-unix.conf)

      #include openGL libraries
      QMAKE_INCDIR_OPENGL = /usr/include/GL
      QMAKE_LIBDIR_OPENGL = /usr/lib
      QMAKE_LIBS_OPENGL = -lGLU -lGL
      QMAKE_LIBDIR_X11 = /usr/lib

      modifications to g++.conf

      QMAKE_CC = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-gcc
      QMAKE_CXX = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++
      QMAKE_LINK = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++
      QMAKE_LINK_SHLIB = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-g++

      modifications to linux.conf

      QMAKE_AR = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-ar cqs
      QMAKE_OBJCOPY = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-objcopy
      QMAKE_NM = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-nm -P
      QMAKE_STRIP = /home/sam/Qt5/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabi-strip
      load(qt_config)

      PLEASE HELP!!!

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

      @samapollo I'm wondering why you try to link against static version of libdl: /mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a?
      Don't you have a shared libdl.so?

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

      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