Having trouble with Cross Compile of Qt 5.5.0 build for ARM
-
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 functiondlopen': (.text+0xc): undefined reference to
__dlopen'
/mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlclose.o): In functiondlclose': (.text+0x0): undefined reference to
__dlclose'
/mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In functiondlsym': (.text+0xc): undefined reference to
__dlsym'
/mnt/RaspImg/img2/usr/lib/arm-linux-gnueabihf/libdl.a(dlerror.o): In functiondlerror': (.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 2This 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-psabiAnd this is my qmake.conf:
qmake configuration for building with arm-linux-gnueabi-g++
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublibinclude(../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/libmodifications 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!!!
-
@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?