CUDA + Qt connection failed

Hi, im struggling with connecting Qt GUI with CUDA. While building project i always get this error message: error while loading shared libraries: libcudart.so.9.2: cannot open shared object file: No such file or directory.

I have found only one solution to this issue: http://www.cs.virginia.edu/~mwb7w/cuda_support/libcudart.html, but i had already set this variables to proper paths wykop1 — ImgBB.

SS of NVCC and GCC version output: wykop3 — ImgBB
part of .pro file responsible for adding cuda: wykop2 — ImgBB

Project is running on Ubuntu 18.04 with NVIDIA 396.45 DRIVERS on GeForce 1050Ti mobile. Toolkit i have installed by runfile supported for Ubuntu 16.04.

as root i.e. sudo, create a file called cuda.conf in the directory:

/etc/ld.so.conf.d

The file should contain this line:

/usr/local/cuda/lib64

then as root/sudo do:

ldconfig

It solved my issue, thanks.