您的位置:首页 > 运维架构 > Linux

MISP版本嵌入式QT编译时出现mips-linux-gcc command not found

2017-01-27 23:36 1006 查看
configure的时候都没什么问题
我的configure是:
./configure -prefix /opt/qt-jz -xplatform qws/linux-mips-g++ -embedded mips

configure顺利的过了,但是当make的时候,出现了mips-linux-gcc :Commond not fount!

我装的是mipsl-linux-gcc ,而且已经交叉编译过了个hello world了。。

make时出现的错误是:
make[1]: Entering directory `/root/Desktop/download/qt-jz/src/corelib'
mips-linux-g++ -c -pipe -mips32 -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-mips-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-mips -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-mips -o .obj/release-shared-emb-mips/qabstractanimation.o animation/qabstractanimation.cpp
make[1]: mips-linux-g++:命令未找到
make[1]: *** [.obj/release-shared-emb-mips/qabstractanimation.o] 错误 127
make[1]: Leaving directory `/root/Desktop/download/qt-jz/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2

回答: MISP版本嵌入式QT编译时出现mips-linux-gcc command not found

which mips-linux-g++

检查你的交叉编译工具是否有加到PATH中

另外,如果你要用的是mipsel-linux-g++,修改qws/linux-mips-g++/qmake.conf
将其中的 mips-linux-g++ 改成 mipsel-linux-g++
http://www.supmen.com/nlzxjw26pk.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: