gpt4 book ai didi

opencv - Caffe 构建反复失败

转载 作者:太空宇宙 更新时间:2023-11-03 21:04:00 24 4
gpt4 key购买 nike

我正在尝试编译软件 OpenPose在 Ubuntu 14 机器上。安装脚本安装 Caffe。安装 Caffe 时,我收到以下错误消息:

CXX tools/upgrade_net_proto_text.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1

来自 here ,我试过运行 ldconfig,我使用 OpenCV 3.2.0,所以我在 makefile 中取消了注释。我也尝试更新 ~/.bashrc 中的 OpenCV 路径,但我不确定我是否正确地完成了。我做了:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

在每个步骤之后,我再次运行安装脚本,但每次都失败并显示相同的错误消息(如上所示)。

最佳答案

到目前为止,我还没有看到有人成功安装了带有 openCV 3.2.0 的 caffe,我遇到了同样的问题,我所做的是降级到 OpenCV 3.1。出现的另一个问题是缺少 open_contrib 中的模块你应该沿着 opencv 安装,我建议你引用这个也与 OpenPose 相关的答案 here

关于opencv - Caffe 构建反复失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44770879/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com