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: cannot open shared object file: No such file or directory.

I have found only one solution to this issue:, but i had already set this variables to proper paths

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

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:


The file should contain this line:


then as root/sudo do:


It solved my issue, thanks.