Issue
I am trying to install dlib on Google colaboratory (Ubuntu 18.04 (Bionic Beaver)), but it's throwing an error.
CMake Error:
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".
For full details, please visit this link: https://github.com/davisking/dlib/issues/1529
Google colab already has these libraries in /usr/local/cuda-9.2/targets/x86_64-linux/lib
.
How do I link this path to CMake, so that it can find these libraries?
Here is the Google colab link to reproduce the error. Please note that you will need to download the cudnn file from developer.nvidia.com. You will need to sign-in, but the file can be freely downloaded. https://colab.research.google.com/drive/1IiOLDP20QT3JFx5pigCibDadq9orNErk
Solution
dlib is now pre-installed on colab, so you might be unblocked with simply:
import dlib
help(dlib)
Answered By - Ami F