您的位置:
首页
>>
SoftHub关联区
>> 主题: mediapipe bazel build 编译提示编译找不到opencv4/opencv2/core/version.hpp [zt]
[最新]
[回主站]
mediapipe bazel build 编译提示编译找不到opencv4/opencv2/core/version.hpp [zt]
clq
浏览(572) -
2022-04-09 22:23:02 发表
编辑
关键字:
https://blog.csdn.net/CLOUD_J/article/details/102705191
mediapipe bazel build 编译提示编译找不到opencv4/opencv2/core/version.hpp
问题:mediapipe bazel build 编译提示编译找不到opencv4/opencv2/core/version.hpp
分析:主要原因在于没有配置好bazel的第三方库的环境变量
解决方案:
1、需要修改根目录下WORKSAPCE的linux_opencv仓库的path,改到你安装的opencv环境位置,例如我安装opencv4需要修改如下
new_local_repository(
name = "linux_opencv",
build_file = "@//third_party:opencv_linux.BUILD",
path = "/home/myname/software/opencv",
)
1
2
3
4
5
2、需要修改third_party/opencv_linux.BUILD找到opencv
cc_library(
name = "opencv",
srcs = glob(
[
"lib/libopencv_core.so",
"lib/libopencv_highgui.so",
"lib/libopencv_imgcodecs.so",
"lib/libopencv_imgproc.so",
"lib/libopencv_video.so",
"lib/libopencv_videoio.so",
],
),
hdrs = glob(["include/opencv4/opencv2/*.h*",
"include/opencv4/opencv2/**/*.h*" , ]),
includes = ["include/opencv4/"],
linkstatic = 1,
visibility = ["//visibility:public"],
)
本帖子属于以下条目()
NEWBT官方QQ群1: 276678893
可求档连环画,漫画;询问文本处理大师等软件使用技巧;求档softhub软件下载及使用技巧.
但不可"开车",严禁国家敏感话题,不可求档涉及版权的文档软件.
验证问题说明申请入群原因即可.