我的环境变量已经设置好了:打开多个终端输入echo $PATH都会打印出:
/home/davinci/gdb/bin:/opt/codesourcery/arm2009q1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_5.0/montavista/pro/bin:/opt/mv_pro_5.0/montavista/common/bin
在任意终端输入:which arm_v5t_le-gcc打印出:
/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc
以上现象都表明我的交叉编译器环境已经设置正确!
可是我在: sudo arm_v5t_le-gcc hello.c -o hello
[sudo] password for davinci:sudo: arm_v5t_le-gcc: command not found
同样在编译appro的开发包:sudo make sys时:Making all in subdirectory quftp-1.0.7…
make[6]: Entering directory `/home/workdir/ipnc_app/network/quftp-1.0.7'
arm_v5t_le-gcc -g -O3 -Wall -I/home/workdir/ipnc_app/interface/inc -c -o ftp.o ftp.c
make[6]: arm_v5t_le-gcc: Command not found
make[6]: *** [ftp.o] Error 127
make[6]: Leaving directory `/home/workdir/ipnc_app/network/quftp-1.0.7'
make[5]: *** [quftp-1.0.7] Error 2
make[5]: Leaving directory `/home/workdir/ipnc_app/network'
我已经困惑了好久了。请大哥们给予解答啊!一个问题被折磨了三天快要崩溃了!
Steven Liu1:
老兄,你用的是达芬奇的东西,不是Sitara ARM吧?Sitara的ARM是AM335x,AM37x等,达芬奇芯片才是DM36x,DM812x之类的
达芬奇的入口:http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39.aspx
Yaoming Qin:
你为什么要用sudo?
去掉试试看