scons -j4
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: warning: you do not seem to have the pywin32 extensions installed;
parallel (-j) builds may not work reliably with open Python files.
File "D: tthread\env\tools\Python27\Scripts\scons.py", line 204, in <module>
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\idlehook.o
CC build\applications\main.o
CC build\applications\test_can.o
CC build\applications\test_comu_01.o
In file included from D: tthread\Loongson-Smartloong-V3.0-RTT\include/rtlibc.h:22:0,
from D: tthread\Loongson-Smartloong-V3.0-RTT\include/rtdef.h:1081,
from D: tthread\Loongson-Smartloong-V3.0-RTT\include/rtthread.h:24,
from applications\idlehook.c:14:
D: tthread\Loongson-Smartloong-V3.0-RTT\include/libc/libc_fdset.h:23:24: fatal error: sys/select.h: No such file or directory
#include <sys/select.h>
在编译时出现如上代码,请问如何解决?
楼主可以把你具体的 BSP 说一下,而且你这个是打开了相应的组件,但是找不到头文件
- RT - Thread Operating System
/ | \
2006 - 2019 Copyright by rt-thread team
Online help documents : [https://www.rt-thread.org/document/site](https://www.rt-thread.org/document/site)
Lenovo@DESKTOP-HG3786P D:\rtthread\env
> cd D:\rtthread\Loongson-Smartloong-V3.0-RTT\bsp\ls1cdev
Lenovo@DESKTOP-HG3786P D:\rtthread\Loongson-Smartloong-V3.0-RTT\bsp\ls1cdev
> scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\idlehook.o
In file included from D:\rtthread\Loongson-Smartloong-V3.0-RTT\include/rtlibc.h:22:0,
from D:\rtthread\Loongson-Smartloong-V3.0-RTT\include/rtdef.h:1081,
from D:\rtthread\Loongson-Smartloong-V3.0-RTT\include/rtthread.h:24,
from applications\idlehook.c:14:
D:\rtthread\Loongson-Smartloong-V3.0-RTT\include/libc/libc_fdset.h:23:24: fatal error: sys/select.h: No such file or directory
#include <sys/select.h>
^
compilation terminated.
scons: *** [build\applications\idlehook.o] Error 1
scons: building terminated because of errors.
Lenovo@DESKTOP-HG3786P D:\rtthread\Loongson-Smartloong-V3.0-RTT\bsp\ls1cdev
- RT - Thread Operating System
/ | \
2006 - 2019 Copyright by rt-thread team
你这个是开了哪个组件?
你这个是开了哪个组件?
D:\Loongson-Smartloong-V3.0-RTT\include/libc/libc_fdset.h:23:24: fatal error: sys/select.h: No such file or directory
#include <sys/select.h>
没有开啊!