初级会员
- 积分
- 162
- 金钱
- 162
- 注册时间
- 2013-3-27
- 在线时间
- 32 小时
|
1金钱
大神:
好!
我希望在SDK/app/alientek/atk_rkmedia/library/atk_camera.c添加opencv。我添加头文件#include "opencv2/opencv.hpp",
然后执行编译指令make atk_rkmedia-rebuild
报错。请大神帮帮忙。
报错信息如下:
In file included from /home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/opencv2/opencv.hpp:52,
from /home/alientek/SDK/buildroot/output/alientek_rv1126/build/atk_rkmedia-1.0/library/atk_camera.c:20:
/home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/opencv2/core.hpp:49:4: 错误: #error core.hpp header must be compiled as C++
# error core.hpp header must be compiled as C++
^~~~~
In file included from /home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/opencv2/core.hpp:52,
from /home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/opencv2/opencv.hpp:52,
from /home/alientek/SDK/buildroot/output/alientek_rv1126/build/atk_rkmedia-1.0/library/atk_camera.c:20:
/home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/rkaiq/common/opencv2/core/cvdef.h:712:4: 错误: #error "OpenCV 4.x+ requires enabled C++11 support"
# error "OpenCV 4.x+ requires enabled C++11 support"
^~~~~
/home/alientek/SDK/buildroot/output/alientek_rv1126/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/rkaiq/common/opencv2/core/cvdef.h:718:10: 致命错误: array:没有那个文件或目录
#include <array>
^~~~~~~
编译中断。
make[4]: *** [library/CMakeFiles/atk_camera.dir/build.make:76:library/CMakeFiles/atk_camera.dir/atk_camera.c.o] 错误 1
make[3]: *** [CMakeFiles/Makefile2:164:library/CMakeFiles/atk_camera.dir/all] 错误 2
make[2]: *** [Makefile:136:all] 错误 2
make[1]: *** [package/pkg-generic.mk:231:/home/alientek/SDK/buildroot/output/alientek_rv1126/build/atk_rkmedia-1.0/.stamp_built] 错误 2
make: *** [/home/alientek/SDK/buildroot/output/alientek_rv1126/Makefile:16:_all] 错误 2
|
|