QT 编译错误——make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] 错误 1

 
是用链接的编译器 4.1.2 编译qt4.5.2,./configure 能过,make就过不了了,如下错误
<built-in>:0: note: candidates are: void* operator new(unsigned int)
make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] 错误 1
make[1]: Leaving directory `/opt/qte-4.5.2/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2
 
原因是交叉编译器安装的目录不对,换成默认路径就可以了
/opt/toolchains/arm920t-eabi
 
vi ~/.bachrc
在最后面加入
export PATH=/opt/toolchains/arm920t-eabi/bin:$PATH
 
保存退出,执行 source ~/.bachrc  让配置生效
 
查看编译器版本 arm-linux-gcc -v
 

你可能感兴趣的:(qt,Path,编译器)