|
【人工智能】
rknn_api 库编译
发表于 2022-4-25 15:41:36
浏览:5139
|
回复:4
打印
只看该作者
[复制链接]
楼主
我在编译 RKNN_SDK\RK_NPU_SDK_1.2.0\release\rknpu2\examples\rknn_yolov5_demo 例程的时候出现如下错误:
./build-linux_RK356X.sh
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gwhw/docker/rknn_yolov5_demo/build/build_linux_aarch64
make[2]: *** No rule to make target '../../../../runtime/RK356X/Linux/librknn_api/armhf/librknnrt.so', needed by 'rknn_yolov5_demo'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 33%] Building CXX object CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o
/home/gwhw/docker/rknn_yolov5_demo/src/main.cc:33:10: fatal error: rknn_api.h: No such file or directory
33 | #include "rknn_api.h"
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rknn_yolov5_demo.dir/build.make:63: CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/rknn_yolov5_demo.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
请问怎么编译rknn_api呢?
|
|