Opencv make Error in Ubuntu 17.10
.
Ubuntu Version : 17.10
Cuda Version : 9.1 (Deb Network file)
Opencv Version : 3.4.0
GCC version : 7.2
Nvidia Drivers : 390.67390.67
I have treated this error by :
changing the default gcc to 5.4 before installation of cuda
Explicitly setting CXX and C compiler to 5.4 in bashrc
Trying various options in CMake
But still not getting this error resolved
cclplus: /home/prizmatics91/opencv-3.4.0/build/modules/photo/precomp.hpp.gch/opencv_photo_Release.gch:
not used because ‘OPENCV_TRAITS_ENABLE_DEPRECATED' is defined
[-Uinvalid-pch] [-Uinvalid-pch]
In file included from
/home/prizmatics/openov-3.4.0/modules/photo/src/fast_nlmeans_denoising_invoker.hpp:48:0, /home/prizmatics/openov-3.4.0/modules/photo/src/fast_nlmeans_denoising_invoker.hpp:48:0,
from {home/prizmatics/opencv-3.4.0/modules/photo/src/denoising.opp:44:
fhormefprizmatiosQl/openov-S.4.0{modulesfphotofsroffast_n_'lmeans_denoising_imroker_oomnons.hpp: In static member f
unction ‘static'WT DistAhs::caldWeight_{T,'WT>::f(douh1e, oonst float*,'WT}':
/home/prizmatics/opencv-3.4.0/modules/photo/fast_nlmeans_denoising_imroker_comnons.hpp:138:1?: ‘_h
iltin;isnan' is not a member of ‘std'
if (std::isnan(w]] w = 1.0; XX Handle h =
0.0 0.0
{home/prizmatics/opencv-3.4.0/modules/photo/fast_nlmeans_denoising_invoker_ccmmons.hpp:138:17: note: sugge
sted
alternative: alternative:
built-in>: note: ‘__bui1tin;isnan'
/home/prizmaticsQl/opencv-S.4.0{modules/photofsroffast_n_'lmeans_denoising_imroker_oomnons.hpp: In static member f
unction ‘static'WT DistSquared::caldWeight_{T,'WT>::f(douh1e, oonst float*,'WT}':
fhmnefprizmatiosQlfopencv-S.4.ofmodulesfphotofsroffast_nlmeans_denoising_imroker_comnons.hpp:260:17: ‘_h
iltin;isnan' is not a member of
‘std' ‘std'
if (std::isnan(w]] w = 1.0; XX Handle h =
0.0 0.0
{homefprizmatiosQlfopencv-S.4.ofimodulesfphotofsroffast_nlmeans_denoising_invoker_ccmmons.hpp:260:17: note: sugge
sted
alternative: alternative:
built-in>: note: ‘__bui1tin;isnan'
nodulesfphoto}CMakeFileonpencv_photo.dirfbuild.make:170: recipe for target 'modules}photoXCMakeFilesfopencv_pho
to.dirfsrcfdenoising.cpp.o' failed
nake[2]:
* *** [modulesfphotofCMakeFileonpencv_photo.dirfsrcfdenoising.cpp.o] Error
1 1
CMakeFilesXMakefileZ:910?: recipe for target 'modules}photo}CMakeFileonpencv_photo.dirfall' failed
nake[1]:
* *** [modulesfphoto}CMakeFileonpencv_photo.dirfall] Error 2
Makefile:162: recipe for target 'all' failed
lake:
* *** [all] Error 2
~/openov-3.4.0/huild$~/openov-3.4.0/huild$