1、在编译的时候出现下面的错误:
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: XXXXX.pro
这是因为QMAKESPEC变量没有设置好
网上说要这么改,
在/root/.bash_profile里加入一行:
export QMAKESPEC=/home/arm/build/qt/mkspecs/linux-arm-g++(即是linux-g++的路径)。
试了不行,又在/etc/profile下
添加export QMAKESPEC=/home/arm/build/qt/mkspecs/linux-arm-g++
2、这样上面的问题倒是解决了,可是又显现如下问题:
http://www.cnblogs.com/http://www.cnblogs.com/arm/build/qt/include/QtCore/qatomic_i386.h: In destructor 'QString::~QString()':
http://www.cnblogs.com/http://www.cnblogs.com/arm/build/qt/include/QtCore/qatomic_i386.h:132:29: error: output number 0 not directly addressable
http://www.cnblogs.com/http://www.cnblogs.com/arm/build/qt/include/QtCore/qatomic_i386.h:132:29: warning: use of memory input without lvalue in asm operand 2 is deprecated [enabled by default]
make: *** [dialog.o] 错误 1
网上的朋友说这是缺少需要一个QT_ARCH_ARM的宏,试着用重新make distclean 又make后,还是出现这样的问题。
功力尚且,不能解决,先记录下来。。。
无奈之下只有重新编译:
3、The specified system/compiler is not supported
查看环境变量export发现有一个环境变量 QMAKESPEC=............这时之前配置过的,unset QMAKESPEC,接着配置就没问题了
4、注意事项
在配置QT是,配置命令是其长无比的,要是中间多个空格或者少个空格,那就吃大亏了,让你找半天都找不到错误。