码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2017-01-27 23:44:06      阅读:506      评论:0      收藏:0      [点我收藏+]

标签:core   direct   rect   download   global   man   ons   nbsp   which   

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

  1. 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

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

标签:core   direct   rect   download   global   man   ons   nbsp   which   

原文地址:http://www.cnblogs.com/findumars/p/6354048.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!