Toybrick

标题: rknn api demo 编译问题 [打印本页]

作者: someone9388    时间: 2019-2-21 18:15
标题: rknn api demo 编译问题
[toybrick@localhost build]$ make
[ 25%] Building CXX object CMakeFiles/rknn_mobilenet.dir/rknn_mobilenet.cpp.o
/home/toybrick/workspace/Linux_rknn_api_sdk/rknn_mobilenet.cpp:1:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
          ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rknn_mobilenet.dir/build.make:63: CMakeFiles/rknn_mobilenet.dir/rknn_mobilenet.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/rknn_mobilenet.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
[toybrick@localhost build]$


作者: someone9388    时间: 2019-2-21 18:20
fedora,
gcc-aarch64-linux-gnu
g++-aarch64-linux-gnu
已安装
作者: 程子    时间: 2019-2-21 20:46
如果你在板子上操作,你不需要交叉编译,直接用gcc g++ 就可以了。
作者: zhanglao    时间: 2019-6-14 15:53
遇到同样的问题,知道直接用板子的gcc g++能搞定,就是想知道原因,结果搞了半天没解决,最后无奈换成aarch64-redhat-linux-gcc/g++可以成功编译,估计就是aarch64-linux-gnu-gcc/g++有问题,坑。。。




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3