sliver-chen / mpp_linux_cpp

a demo shows that how to use rockchip mpp framework in linux
54 stars 63 forks source link

vpu.h not found #4

Open lihao2333 opened 5 years ago

lihao2333 commented 5 years ago

My chip is rk3399.
I set the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER in CMakeList.txt. Then I do mkdir build;cd build;cmake ..;make, and I get the following error.

root@norco:~/mpp_linux_cpp/build# make
Scanning dependencies of target mpp_linux_demo
[ 12%] Building CXX object CMakeFiles/mpp_linux_demo.dir/main.cpp.o
In file included from /root/mpp_linux_cpp/main.cpp:9:0:
/root/mpp_linux_cpp/mpp/Codec.h:16:17: fatal error: vpu.h: No such file or directory
compilation terminated.
CMakeFiles/mpp_linux_demo.dir/build.make:62: recipe for target 'CMakeFiles/mpp_linux_demo.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/mpp_linux_demo.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mpp_linux_demo.dir/all' failed
make[1]: *** [CMakeFiles/mpp_linux_demo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Should I install a vpu.h manually? How to install it?

tothedistance commented 3 years ago

i guess we have to put all header under /usr/include. for my company's machine, all header are under /usr/include/rockchip. and it seems the gcc will not go down recursively.

zhouwg commented 2 years ago

vpu.h could be found at latest source code in project rockchip-linux-mpp.

modify mpp_linux_cpp manually and it works as expected.