qt5.5 cross compile xcb failed
-
I'm new with QT and ARM.
I had success with cross compile qt4 (4.8.5) from linux to linux-arm-gnueabihf-g++ but not with qt5 (5.5.0) (it has some changes).I am using:
Linux x64: Ubuntu 15.10
QT5 Source: qt-everywhere-opensource-src-5.5.0
Toolchain: gcc-4.6.2-glibc-2.13-linaro
Linux ARM: linuxhere is the configure
./configure -v
-opensource
-prefix /usr/local/Trolltech/arm-Qt-5.5.0
-confirm-license
-debug-and-release
-shared
-xplatform linux-arm-gnueabi-g++
-qreal float
-qt-xcb
-force-pkg-config
-I/home/hubing/tslib-install/include
-L/home/hubing/tslib-install/lib
-importdir /usr/local/Trolltech/arm-Qt-5.5.0/qmlI change the qmake.conf in the linux-arm-gnueabi-g++ folder with :
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublibinclude(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)QMAKE_CC = arm-linux-gcc
QMAKE_CXX = arm-linux-g++
QMAKE_LINK = arm-linux-g++
QMAKE_LINK_SHLIB = arm-linux-g++QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_NM = arm-linux-nm -P
QMAKE_STRIP = arm-linux-strip
load(qt_config)And cross_compile has been set:
declare -x ARCH="arm"
declare -x CLUTTER_IM_MODULE="xim"
declare -x COMPIZ_BIN_PATH="/usr/bin/"
declare -x COMPIZ_CONFIG_PROFILE="ubuntu"
declare -x CROSS_COMPILE="/home/hubing/MY-I.MX6/03_tools/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-"here is the configuration output:
xcb auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I/home/hubing/tslib-install/include -I/usr/local/include -I../../../mkspecs/linux-arm-gnueabi-g++ -o xcb.o xcb.cpp
xcb.cpp: In function 'int main(int, char)':xcb.cpp:39:23: warning: unused variable 't' [-Wunused-variable]
arm-linux-g++ -Wl,-O1 -o xcb xcb.o -L/home/hubing/tslib-install/lib -L/usr/local/lib -lxcb
/usr/local/lib/libxcb.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Makefile:182: recipe for target 'xcb' failed
make: *** [xcb] Error 1
xcb disabled.
The test for linking against libxcb failed!
You might need to install dependency packages for libxcb.
See src/plugins/platforms/xcb/README.and i have install lib-xcb already.
could anyone tell me why? I will appreciate your help very much!
Thanks -
I also try to configure without qt-xcb,and it works.But,when i compile an app with qt5.5,the app can't run on my arm board correctly. the console can output correct message ,but the gui doesn't show? Could anyone explain this? Does it relate to the reason that i don't compile and install xcb plugins?