build master branch on debian9 with cuda9
Hello I've tried to build opencv3 master with gcc6 cuda9 but i always get an error regarding with cuda, compilation without cuda works fine,.
I as well get the warnings
cc1plus: warning: home/opencv/build/modules/cudaarithm/test_precomp.hpp.gch/opencv_test_cudaarithm_Release.gch: not used because `OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch]
Has anyone experienced this problem before? Is it possible to build opencv3 with cuda-9 and gcc-6?
cheers kris
can you try without precompiled headers ?
(also clean build dir)
I tried, but no success. I get several warnings like
/home/christoph/software/opencv/modules/cudaarithm/src/cuda/sub_mat.cu(78): warning: function "<unnamed>::SubOp2::operator()" was declared but never referenced and /home/christoph/software/opencv/modules/core/include/opencv2/core/cuda/vec_math.hpp(205): error: calling a constexpr __host__ function("abs") from a __device__ function("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
20 errors detected in the compilation of "/tmp/tmpxft_000013bc_00000000-13_warp.compute_70.cpp1.ii". CMake Error at cuda_compile_generated_warp.cu.o.cmake:264 (message): Error generating file /home/christoph/software/opencv/build/modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cud