Can you compile opencv_world and opencv_contrib_world ?
Hi,
I can compile opencv_contrib in static or dynamic using VS 2015 and mingw64. I can compile opencv_world and opencv_contrib. Now I try to compile opencv_world and opencv_contrib_world mingw64. Can you compile opencv_world and opencv_contrib_world on windows platform?
In mingw64 error is :
$ make
[ 2%] Built target zlib
[ 6%] Built target libtiff
[ 11%] Built target libjpeg
[ 17%] Built target libwebp
[ 21%] Built target libjasper
[ 23%] Built target libpng
[ 30%] Built target IlmImf
[ 30%] Building CXX object modules/world/CMakeFiles/opencv_world.dir/__/stitching/src/autocalib.cpp.obj
In file included from G:/Lib/opencv/modules/stitching/include/opencv2/stitching.hpp:49:0,
from G:/Lib/opencv/modules/stitching/src/precomp.hpp:59,
from G:/Lib/opencv/modules/stitching/src/autocalib.cpp:43:
G:/Lib/opencv/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
# include "opencv2/xfeatures2d/cuda.hpp"
^
compilation terminated.
make[2]: *** [modules/world/CMakeFiles/opencv_world.dir/build.make:6305: modules/world/CMakeFiles/opencv_world.dir/__/stitching/src/autocalib.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:2050: modules/world/CMakeFiles/opencv_world.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
In vs 2015 I cannot build MSVC solution using cmake ( WITH_CUDA ON or OFF) (full cmake gui here):
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: Matlab not found or implicitly disabled
Tests and samples:
Tests: NO
Performance tests: NO
C/C++ Examples: NO
Install path: G:/Lib/opencv/world/install
cvconfig.h is in: G:/Lib/opencv/world
-----------------------------------------------------------------
Configuring done
CMake Error at G:/Lib/opencv/cmake/OpenCVUtils.cmake:911 (add_library):
Cannot find source file:
G:/Lib/opencv/world/modules/xfeatures2d/opencv_xfeatures2d_pch.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
Call Stack (most recent call first):
G:/Lib/opencv/cmake/OpenCVModule.cmake:784 (ocv_add_library)
G:/Lib/opencv/cmake/OpenCVModule.cmake:729 (_ocv_create_module)
G:/Lib/opencv/cmake/OpenCVModule.cmake:940 (ocv_create_module)
G:/Lib/opencv_contrib/modules/xfeatures2d/CMakeLists.txt:2 (ocv_define_module)
CMake Error at G:/Lib/opencv/cmake/OpenCVUtils.cmake:911 (add_library):
Cannot find source file:
G:/Lib/opencv/world/modules/ximgproc/opencv_ximgproc_pch.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
Call Stack (most recent call first):
G:/Lib/opencv/cmake/OpenCVModule.cmake:784 (ocv_add_library)
G:/Lib/opencv/cmake/OpenCVModule.cmake:729 (_ocv_create_module)
G:/Lib/opencv/cmake/OpenCVModule.cmake:940 (ocv_create_module)
G:/Lib/opencv_contrib/modules/ximgproc/CMakeLists.txt:3 (ocv_define_module)
iirc, - only without pre-compiled headers, and the opencv_contrib_world seems entirely broken.
I am facing the same issue i.e, can not compile opencv_world and opencv_contrib_world with CMake. I want to use OpenCV 3.2 version on Visual Studio 2012 Professional on 32 bit application. Pls. help if got some work around...
Don't use opencv_world. Try to build opencv and contrib without world. It should works with many dll..