标题:关于qt5移植arm编译问题
作者:14dzqiu
日期:2017-04-10 17:02
内容:
由于项目需要,需要在armLinux上面跑qt,根据
http://blog.csdn.net/kkvvll2/article/details/23468533
,但是当我输入./configure ...配置的时候报错如下:
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
No QPA platform plugin enabled!
If you really want to build without a QPA platform plugin you must pass
-no-qpa-platform-guard to configure. Doing this will
produce a Qt that can not run GUI applications.
The dependencies needed for xcb to build are listed in
src/plugins/platforms/xcb/README
我已经看过那个README,也下载了全部的库,还是update了,还是不行,请问时怎么回事?
#1 [uidab 04-10 17:53]
Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出
#2 回 uidab 的帖子 [14dzqiu 04-11 09:52]
uidab:Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出 (2017-04-10 17:53)
加了-v报错如下,请指教!
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIE-I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
g++-o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9][^0-9]*\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_HOST_ARCH="i386"
CFG_HOST_CPUFEATURES=""
System architecture: 'unknown'
Host architecture: 'i386'
C++11 auto-detection... ()
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -std=c++0x -Wall -W -fPIE-I../../../mkspecs/linux-arm-test -I. -o c++11.o c++11.cpp
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found
make: *** Error 127
C++11 disabled.
floatmath auto-detection... ()
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE-I../../../mkspecs/linux-arm-test -I. -o floatmath.o floatmath.cpp
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found
make: *** Error 127
floatmath ..
#3 [14dzqiu 04-11 10:06]
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found
于是我将arm-linux-gnueabi-g++改为arm-linux-g++,配置成功
因为我的编译器是arm-none-linux-gnueabi-g++,这样应该没有问题吧?
#4 [14dzqiu 04-11 10:08]
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found
于是我将arm-linux-gnueabi-g++改为arm-linux-g++,配置成功
因为我的编译器是arm-none-linux-gnueabi-g++,这样应该没有问题吧?
#5 回 uidab 的帖子 [14dzqiu 04-11 10:12]
uidab:Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出 (2017-04-10 17:53)
我知道了,我的编译器是arm-none-linux-guneabi,而不是arm-lunux-guneabi,已解决,谢谢了