登录 用户中心() [退出] 后台管理 注册
   
您的位置: 首页 >> 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"],
)



总数:0 页次:1/0 首页 尾页  
总数:0 页次:1/0 首页 尾页  


所在合集/目录
mediapipe 更多



发表评论:
文本/html模式切换 插入图片 文本/html模式切换


附件:



NEWBT官方QQ群1: 276678893
可求档连环画,漫画;询问文本处理大师等软件使用技巧;求档softhub软件下载及使用技巧.
但不可"开车",严禁国家敏感话题,不可求档涉及版权的文档软件.
验证问题说明申请入群原因即可.

Copyright © 2005-2020 clq, All Rights Reserved
版权所有
桂ICP备15002303号-1