下面这个是用的4.7的,说找不到cdefs.h,我find了也确实是没有的。
lr@ubuntu:~/RK3288/codes/hello/build$ make
Scanning dependencies of target hello_exe
[100%] Building C object CMakeFiles/hello_exe.dir/hello.c.o
In file included from /home/lr/RK3288/codes/hello/hello.c:3:0:
/home/lr/RK3288/SDK/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/../lib/gcc/arm-eabi/4.7/include-fixed/stdio.h:50:23: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
CMakeFiles/hello_exe.dir/build.make:54: recipe for target 'CMakeFiles/hello_exe.dir/hello.c.o' failed
make[2]: *** [CMakeFiles/hello_exe.dir/hello.c.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hello_exe.dir/all' failed
make[1]: *** [CMakeFiles/hello_exe.dir/all] Error 2
Makefile:72: recipe for target 'all' failed
make: *** [all] Error 2
下面是4.6的,说找不到stdio.h
lr@ubuntu:~/RK3288/codes/hello/build$ make
Scanning dependencies of target hello_exe
[100%] Building C object CMakeFiles/hello_exe.dir/hello.c.o
/home/lr/RK3288/codes/hello/hello.c:3:19: fatal error: stdio.h: No such file or directory
compilation terminated.
CMakeFiles/hello_exe.dir/build.make:54: recipe for target 'CMakeFiles/hello_exe.dir/hello.c.o' failed
make[2]: *** [CMakeFiles/hello_exe.dir/hello.c.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hello_exe.dir/all' failed
make[1]: *** [CMakeFiles/hello_exe.dir/all] Error 2
Makefile:72: recipe for target 'all' failed
make: *** [all] Error 2