gpt4 book ai didi

c++ - libcudart.so.5.5,/usr/local/lib/libopencv_core.so 需要

转载 作者:行者123 更新时间:2023-11-28 05:27:45 24 4
gpt4 key购买 nike

我的电脑是CentOS系统,我尝试安装caffe。安装一些依赖项后。我运行 $make all,然后它返回以下警告:

NVCC src/caffe/solvers/sgd_solver.cu
NVCC src/caffe/solvers/rmsprop_solver.cu
NVCC src/caffe/solvers/adam_solver.cu
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
CXX tools/test_net.cpp
CXX/LD -o .build_release/tools/test_net.bin
/usr/bin/ld: warning: libcudart.so.5.5, needed by /usr/local/lib/libopencv_core.so, may conflict with libcudart.so.6.0
CXX tools/upgrade_net_proto_binary.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
/usr/bin/ld: warning: libcudart.so.5.5, needed by /usr/local/lib/libopencv_core.so, may conflict with libcudart.so.6.0

我检查了cuda的版本:$nvcc -V,它返回:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Built on Wed_Jul_17_18:36:13_PDT_2013
Cuda compilation tools, release 5.5, V5.5.0

我输入/usr/local,显示: wathet blue cuda file ,我进入usr/local/cuda/lib,里面有libcudart.so.6.0!但是 libcudart.so.5.5 文件在 /usr/local/cuda-5.5/lib 中。我不知道如何制作/usr/local/lib/libopencv_core.so 需要的 libcudart.so.5.5。那么如何解决这个问题呢?

最佳答案

您的 opencv 是使用 cuda 支持构建的,并且与 cuda 5.5 相关联。请尝试此命令以确保相关性

ldd/usr/local/lib/libopencv_core.so

...如果 opencv 依赖于 cuda 5.5,请使用 cuda 5.5 构建你的 caffe,或者你需要在你的机器上从源代码构建 opencv,它会自动找到 cuda 6.0

关于c++ - libcudart.so.5.5,/usr/local/lib/libopencv_core.so 需要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40194978/

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