今天解决了QT Creator交叉编译提示make:arm-linux-g++:Command not found
2011-03-25 09:49
645 查看
初学QT,用QT Creator写了一个小程序,
使用ubuntu 10,编译工具使用arm-none-linux-gnueabi4.5.1并已经已经加入环境变量,加入的方法是修改/etc/bash.bashrc
终端执行arm-linux-g++ -v可正常获得版本号
终端执行which arm-linux-g++ 可正常显示路径
QT Creator编译时候提示
make:arm-linux-g++:Command not found
make:leaving directory '/....'
make:***[main.o] Error 127
然后我直接终端下执行arm-linux-g++ ..此处省略编译选项... 编译指令可以产生main.o
一直怀疑是环境变量设置的问题,但是已经修改过/etc/bash.bashrc文件了,终端下使用arm-linux-g++时正常的。
于是在网上搜罗关于环境变量设置的信息,看到开发android项目所需的eclipse进行环境变量设置是修改/etc/environment文件,于是试着修改这个文件,把arm-linux-g++ 的执行目录添加进去,果然QTCreator可以正常交叉编译arm程序了,庆祝一下。
2012-10-24
今天重新安装了系统,重新来解决这个问题。最正确的解决方案应该是修改qt create 项目的环境变量。
点击左侧Projiects按钮->最下面找到build environment->找到PATH环境变量->添加arm gcc编译链的路径
使用ubuntu 10,编译工具使用arm-none-linux-gnueabi4.5.1并已经已经加入环境变量,加入的方法是修改/etc/bash.bashrc
终端执行arm-linux-g++ -v可正常获得版本号
终端执行which arm-linux-g++ 可正常显示路径
QT Creator编译时候提示
make:arm-linux-g++:Command not found
make:leaving directory '/....'
make:***[main.o] Error 127
然后我直接终端下执行arm-linux-g++ ..此处省略编译选项... 编译指令可以产生main.o
一直怀疑是环境变量设置的问题,但是已经修改过/etc/bash.bashrc文件了,终端下使用arm-linux-g++时正常的。
于是在网上搜罗关于环境变量设置的信息,看到开发android项目所需的eclipse进行环境变量设置是修改/etc/environment文件,于是试着修改这个文件,把arm-linux-g++ 的执行目录添加进去,果然QTCreator可以正常交叉编译arm程序了,庆祝一下。
2012-10-24
今天重新安装了系统,重新来解决这个问题。最正确的解决方案应该是修改qt create 项目的环境变量。
点击左侧Projiects按钮->最下面找到build environment->找到PATH环境变量->添加arm gcc编译链的路径
相关文章推荐
- 解决QT Creator交叉编译提示make:arm-linux-g++:Command not found 命令找不到?
- 孙其功陪你学之--解决QT Creator交叉编译提示make:arm-linux-g++:Command not found 命令找不到
- 解决QT Creator交叉编译提示make:arm-linux-g++:Command not found 命令找不到
- Qt Creator编译时make: arm-linux-g++: command not found 错误!
- 转载-- Qt Creator编译时make: arm-linux-g++: command not found 错误!
- 解决在ubuntu上Qt creator提示unicore32-linux-g++:Command not found
- linux内核编译时出现“make: arm-linux-gcc:command not found解决
- 交叉编译错误make: arm-none-linux-gnueabi-gcc:命令未找到 /bin/sh: 1: arm-none-linux-gnueabi-gcc: not found问题解决
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- 交叉编译提示arm-linux-gcc no such filr or directory解决
- ubuntu14.04下编译linux uboot和kernel时提示arm-linux-gcc: not found 的解决过程
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- qtcreator 编译时出现arm-none-linux-gnueabi-g++: Command not found
- 64bit ubuntu14.04编译PlatinumKit出现的arm-linux-androideabi-g++: not found错误解决方法
- deepin 编译提示g++: command not found的解决
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- linux内核编译时出现“make: arm-linux-gcc:command not found!!!!!!
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- 安装交叉编译工具,执行arm-linux-gcc–v命令出现提示找不到该文件或目录?解决方法