【发布时间】:2019-04-02 09:13:57
【问题描述】:
我正在尝试在 Google colaboratory (Ubuntu 18.04 (Bionic Beaver)) 上安装 dlib,但它会引发错误。
CMake 错误:
The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_LIBRARY (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
CUDA_curand_LIBRARY (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
cusolver (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
-- Configuring incomplete, errors occurred!
See also "/content/dlib/build/CMakeFiles/CMakeOutput.log".
See also "/content/dlib/build/CMakeFiles/CMakeError.log".
有关详细信息,请访问此链接: https://github.com/davisking/dlib/issues/1529
Google colab 已经在 /usr/local/cuda-9.2/targets/x86_64-linux/lib 中提供了这些库。
如何将此路径链接到 CMake,以便它可以找到这些库?
这里是重现错误的 Google colab 链接。请注意,您需要从 developer.nvidia.com 下载 cudnn 文件。您需要登录,但文件可以免费下载。 https://colab.research.google.com/drive/1IiOLDP20QT3JFx5pigCibDadq9orNErk
【问题讨论】:
标签: cmake google-colaboratory dlib