|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用eclipse搭建编译cleanflight-master出错,请大神指点。
以下是出错的信息
01:53:17 **** Incremental Build of configuration Default for project cleanflight ****
make all
Building file: ../support/stmloader/loader.c
Invoking: Cross GCC Compiler
gcc -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"support/stmloader/loader.d" -MT"support/stmloader/loader.o" -o "support/stmloader/loader.o" "../support/stmloader/loader.c"
Finished building: ../support/stmloader/loader.c
Building file: ../support/stmloader/serial.c
Invoking: Cross GCC Compiler
gcc -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"support/stmloader/serial.d" -MT"support/stmloader/serial.o" -o "support/stmloader/serial.o" "../support/stmloader/serial.c"
In file included from ../support/stmloader/serial.c:29:
/usr/include/sys/select.h:28: error: parse error before "fd_set"
../support/stmloader/serial.c: In function `initSerial':
../support/stmloader/serial.c:39: error: `O_NOCTTY' undeclared (first use in this function)
../support/stmloader/serial.c:39: error: (Each undeclared identifier is reported only once
../support/stmloader/serial.c:39: error: for each function it appears in.)
../support/stmloader/serial.c:39: error: `O_NDELAY' undeclared (first use in this function)
../support/stmloader/serial.c:46: warning: implicit declaration of function `fcntl'
../support/stmloader/serial.c:46: error: `F_SETFL' undeclared (first use in this function)
../support/stmloader/serial.c:35: warning: unused variable `brate'
../support/stmloader/serial.c: In function `serialAvailable':
../support/stmloader/serial.c:154: error: `fd_set' undeclared (first use in this function)
../support/stmloader/serial.c:154: error: parse error before "fdSet"
../support/stmloader/serial.c:157: warning: implicit declaration of function `FD_ZERO'
../support/stmloader/serial.c:157: error: `fdSet' undeclared (first use in this function)
../support/stmloader/serial.c:158: warning: implicit declaration of function `FD_SET'
make: *** [support/stmloader/serial.o] Error 1
01:53:52 Build Finished (took 35s.737ms)
|
| |