zoukankan      html  css  js  c++  java
  • MISP版本嵌入式QT编译时出现mips-linux-gcc command not found

    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
  • 相关阅读:
    android 3G移植【转】
    【转】小白级的CocoaPods安装和使用教程
    【转】Core Bluetooth框架之二:后台处理
    【转】Core Bluetooth框架之一:Central与Peripheral
    ios ble 参考
    拼音处理
    通过触发器实现数据库的即时同步
    数据库中存取文件
    交叉报表处理实例
    SQL Server 2005 中实现通用的异步触发器架构
  • 原文地址:https://www.cnblogs.com/findumars/p/6354048.html
Copyright © 2011-2022 走看看