目录
1、line 1: syntax error: unexpected “(“
4、CMake指令返回:No CMAKE_CXX_COMPILER could be found.
5、shell脚本返回 -bash: ./test.sh: /bin/sh^M: bad interpreter: No such file or directory.
1、line 1: syntax error: unexpected “(“
Linux下执行可执行文件,返回
./test
line 1: syntax error: unexpected "("
原因是交叉编译链用到的编译器不正确。
虚拟机生成指令gcc -o test test.c,实际上是错误的,应该用开发板系统对应的编译器,我的应该是arm-linux-gcc -o test test.c
2、tftp指令传输文件
使用tftp在windows和开发板之间传输文件,便面重复的挂载U盘等存储设备
Usage: tftp [OPTION]... HOST [PORT]
Transfer a file from/to tftp server using "octet" mode
Options:
-l FILE Local FILE
-r FILE Remote FILE
-g Get file
-p Put file
-b SIZE Transfer blocks of SIZE octets
1、首先需要在window本机下载、并运行tftpd32.e