Opencv make Error in Ubuntu 17.10

asked 2018-07-16 03:10:25 -0500

ritikabhatia gravatar image

updated 2018-07-16 03:36:46 -0500

berak gravatar image


Ubuntu Version : 17.10
Cuda Version : 9.1 (Deb Network file)
Opencv Version : 3.4.0
GCC version : 7.2
Nvidia Drivers : 390.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]

In file included from /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

{home/prizmatics/opencv-3.4.0/modules/photo/fast_nlmeans_denoising_invoker_ccmmons.hpp:138:17: note: sugge
sted 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'

if (std::isnan(w]] w = 1.0; XX Handle h = 0.0

{homefprizmatiosQlfopencv-S.4.ofimodulesfphotofsroffast_nlmeans_denoising_invoker_ccmmons.hpp:260:17: note: sugge
sted 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

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
edit retag flag offensive close merge delete


please put a text version of your error here ! (not an image)

also please try to use latest opencv3.4.2, not 3.4.0

berak gravatar imageberak ( 2018-07-16 03:16:10 -0500 )edit

This is the error and for yolo v3 opencv 3.4.0 is required not higher version than that

ritikabhatia gravatar imageritikabhatia ( 2018-07-16 03:30:59 -0500 )edit

thanks for the edit !

berak gravatar imageberak ( 2018-07-16 03:35:55 -0500 )edit

try to disable the precompiled headers in cmake:

berak gravatar imageberak ( 2018-07-16 03:39:34 -0500 )edit

Is explicitly adding symbolic link to gcc-5 instead of by default gcc-7 is the reason of this error?

ritikabhatia gravatar imageritikabhatia ( 2018-07-16 04:04:14 -0500 )edit