Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv 2.4.5 compilation erros

Hi Alll

I try compile the last openopcv 2.4.5 in debug mode with the flags -D WITH_CUDA=OFF -D WITH_OPENCL=OFF

affter compile the [ 83%] get this errors

In file included / debug/src/OpenCV-2.4.5/modules/nonfree/src/precomp.hpp: 57:0,                   from error: redefinition of 'class cv :: gpu :: SURF_GPU' / debug/include/opencv2/gpu/gpu.hpp: 1542:18: error: previous definition of 'class cv :: gpu :: SURF_GPU' / debug/src/OpenCV2.4.5/modules/nonfree/include/opencv2/nonfree/gpu.hpp: 134:18: error: redefinition of 'class cv :: gpu :: VIBE_GPU' / debug/include/opencv2/gpu/gpu.hpp: 2296:18: error: previous definition of 'class cv :: gpu :: VIBE_GPU' cc1plus: warning: unrecognized command line option "-WNO-unnamed-type-template-args" [enabled by default] cc1plus: warning: unrecognized command line option "-WNO-delete-non-virtual-dtor" [enabled by default] cc1plus: warning: unrecognized command line option "-WNO-narrowing" [enabled by default] make [3]: * [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / opencv_nonfree_pch_dephelp.cxx.o] Error 1 make [2]: * [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / all] Error 2

have some one any idea how fix it?

regards

opencv 2.4.5 compilation erros

Hi Alll

I try compile the last openopcv opencv 2.4.5 in debug mode with the flags -D WITH_CUDA=OFF -D WITH_OPENCL=OFF

affter compile the [ 83%] get this errors

In file included / debug/src/OpenCV-2.4.5/modules/nonfree/src/precomp.hpp: 57:0,                   from error: redefinition of 'class cv :: gpu :: SURF_GPU' / debug/include/opencv2/gpu/gpu.hpp: 1542:18: error: previous definition of 'class cv :: gpu :: SURF_GPU' / debug/src/OpenCV2.4.5/modules/nonfree/include/opencv2/nonfree/gpu.hpp: 134:18: error: redefinition of 'class cv :: gpu :: VIBE_GPU' / debug/include/opencv2/gpu/gpu.hpp: 2296:18: error: previous definition of 'class cv :: gpu :: VIBE_GPU' cc1plus: warning: unrecognized command line option "-WNO-unnamed-type-template-args" [enabled by default] cc1plus: warning: unrecognized command line option "-WNO-delete-non-virtual-dtor" [enabled by default] cc1plus: warning: unrecognized command line option "-WNO-narrowing" [enabled by default] make [3]: * [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / opencv_nonfree_pch_dephelp.cxx.o] Error 1 make [2]: * [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / all] Error 2

have some one any idea how fix it?

regards

opencv 2.4.5 compilation erros

Hi Alll

I try compile the last opencv 2.4.5 in debug mode with the flags -D WITH_CUDA=OFF -D WITH_OPENCL=OFF

affter compile the [ 83%] get this errors

In file included / debug/src/OpenCV-2.4.5/modules/nonfree/src/precomp.hpp: 57:0,
                  from error: redefinition of 'class cv :: gpu :: SURF_GPU'
/ debug/include/opencv2/gpu/gpu.hpp: 1542:18: error: previous definition of 'class cv :: gpu :: SURF_GPU'
/ debug/src/OpenCV2.4.5/modules/nonfree/include/opencv2/nonfree/gpu.hpp: 134:18: error: redefinition of 'class cv :: gpu :: VIBE_GPU'
/ debug/include/opencv2/gpu/gpu.hpp: 2296:18: error: previous definition of 'class cv :: gpu :: VIBE_GPU'
cc1plus: warning: unrecognized command line option "-WNO-unnamed-type-template-args" [enabled by default]
cc1plus: warning: unrecognized command line option "-WNO-delete-non-virtual-dtor" [enabled by default]
cc1plus: warning: unrecognized command line option "-WNO-narrowing" [enabled by default]
make [3]: * *** [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / opencv_nonfree_pch_dephelp.cxx.o] Error 1
make [2]: * *** [modules / nonfree / CMakeFiles / opencv_nonfree_pch_dephelp.dir / all] Error 2

2

have some one any idea how fix it?

regards