Installing and running Dlib on Ubuntu 16.04
First I installed the dependencies (always local installation if possible) and then DLIB itself in roughly the following order: CUDA Installed the latest CUDA by following the instructions in http://docs.nvidia.com/cuda/ . I used the network installation for Ubuntu 16.04 where everything is installed by typing $ sudo apt-get install cuda I rebooted my Linux and after that CUDA examples compiled and everything seemed working OK. cuDNN Enabling CUDA with dlib requires this NVidia extension and for that I registered as a developer, downloaded the Ubuntu 16.04 tar ball from https://developer.nvidia.com/rdp/cudnn-download and installed it to the local directory (tar ball contains shares libraries and header files). OpenCV I downloaded the most recent source packages from https://www.opencv.org/ and made a local installation (for that I changed the CMAKE_INSTALL_PREFIX). DLIB I followed the instructions in http://dlib.net and the only difference ...