我按照MAD Utils Guide 运行mad-loader的例程时,运行./build_loader_lnx.sh C6678 little命令时有以下的提示(运行./build_loader_lnx.sh C6678提示一样)我正确地设置了环境变量 也就是code generator的路径
zhubaojun@zhubaojun-Compaq-325:/tmp/mad-loader$ sudo ./build_loader_lnx.sh C6678 little
./build_loader_lnx.sh: 4: [: C6678: unexpected operator
./build_loader_lnx.sh: 10: [: little: unexpected operator
make: Entering directory `/tmp/mad-loader/mal/malLib/build'
rm -rf *_LNX
rm -rf *malLib.*
mkdir -p C60_LNX
touch C60_LNX/.created
cl6x -c -DDEVICE=6678 -mv6600 -g -ml3 -pds67 –abi=elfabi -I. -I ../include/ -I /home/zhubaojun/tl/ti/ccsv5/tools/compiler/c6000_7.4.4/include -I../elfLoader//DLOAD -I../elfLoader//DLOAD_API -I../elfLoader//DLWRAPPER -I../elfLoader//DLOAD_SYM -I../elfLoader//C60_DLOAD_DYN -I../elfLoader//C60_DLOAD_REL -I../include/ -I../malApis/ -DC60_TARGET ../elfLoader//DLOAD/ArrayList.c –output_file C60_LNX/ArrayList.obj
make: cl6x: Command not found
make: *** [C60_LNX/ArrayList.obj] Error 127
make: Leaving directory `/tmp/mad-loader/mal/malLib/build'
make: Entering directory `/tmp/mad-loader/mal/malApp/build'
我看了一下shell和makefile文件里面没有c16x命令,怎么会有下面的提示呢:
cl6x -c -DDEVICE=6678 -mv6600 -g -ml3 -pds67 –abi=elfabi -I. -I ../include/ -I /home/zhubaojun/tl/ti/ccsv5/tools/compiler/c6000_7.4.4/include -I../elfLoader//DLOAD -I../elfLoader//DLOAD_API -I../elfLoader//DLWRAPPER -I../elfLoader//DLOAD_SYM -I../elfLoader//C60_DLOAD_DYN -I../elfLoader//C60_DLOAD_REL -I../include/ -I../malApis/ -DC60_TARGET ../elfLoader//DLOAD/ArrayList.c –output_file C60_LNX/ArrayList.obj
make: cl6x: Command not found
另外还有个提示:
./build_loader_lnx.sh: 4: [: C6678: unexpected operator
./build_loader_lnx.sh: 10: [: little: unexpected operator
这是两个shell文件的输入参数,shell文件要求的输入参数,为何还会有这种提示?
请问大家怎么解决这个问题的 谢谢
Allen35065:
cl6x是C6000的编译器,你要把编译器路径加到系统路径里再试试看。