Unable to compile openCV 3.3.0 with cuda 9.0

Hi,

I am getting below after following steps mentioned in : https://stackoverflow.com/questions/46584000/cmake-error-variables-are-set-to-notfound

[ 71%] Building NVCC (Device) object modules/cudalegacy/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_NCV.cu.o
[ 71%] Linking CXX executable …/…/bin/opencv_test_cudaimgproc
…/…/lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaFwd_8u_C3R' ../../lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaFwd_8u_AC4R’
…/…/lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaFwd_8u_AC4IR' ../../lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaInv_8u_C3R’
…/…/lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaInv_8u_AC4R' ../../lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaInv_8u_C3IR’
…/…/lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaFwd_8u_C3IR' ../../lib/libopencv_cudaimgproc.so.3.3.0: undefined reference to nppiGammaInv_8u_AC4IR’
collect2: error: ld returned 1 exit status
modules/cudaimgproc/CMakeFiles/opencv_test_cudaimgproc.dir/build.make:366: recipe for target ‘bin/opencv_test_cudaimgproc’ failed
make[2]: *** [bin/opencv_test_cudaimgproc] Error 1
CMakeFiles/Makefile2:2991: recipe for target ‘modules/cudaimgproc/CMakeFiles/opencv_test_cudaimgproc.dir/all’ failed
make[1]: *** [modules/cudaimgproc/CMakeFiles/opencv_test_cudaimgproc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

Can any one help me to resolve this.

Best Regards,
Naveen.

Sorry, there is an while copy from https://devtalk.nvidia.com/default/topic/1024631/cuda-9-opencv-gt-building-errors/

changed line 71 from find_cuda_helper_libs(nppic) to find_cuda_helper_libs(nppicc).
Now building is completed

Thanks