On downloading opencv 3.4.0 i got an error
this is my Cmake Build.
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=OFF \
-D WITH_IPP=OFF \
-D WITH_1394=OFF \
-D BUILD_WITH_DEBUG_INFO=OFF \
-D BUILD_DOCS=OFF \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.0/modules \
-D WITH_V4L=ON \
-D WITH_FFMPEG=ON \
-D WITH_XINE=ON \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
and i tried to "make j" but' it gave me so many error'. like under words.
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
CMakeFiles/Makefile2:8222: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all' failed
make[1]: *** [modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
which os / compiler is it ? (it all seems outdated)
can you please try with current 3.4.6 instead ? (almost a year difference !)
which module exactly failed to build ? (it's probably easier to find out with
make -j1
)do you really need the sfm module ?
Replace this
-D BUILD_NEW_PYTHON_SUPPORT=ON \
to-D BUILD_NEW_PYTHON_SUPPORT=ON ..
@supra56 i tried to, but it didn't work. but it makes differece. it had stoped at 33%, after change it stoped 96%.
@berak you mean opencv3.4.6? and my OS is ununtu 16.04 LTS & i don't know about complier
and this is my error
modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/build.make:110: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/fundamental.cc.o' failed make[2]: * [modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/fundamental.cc.o] Error 1 CMakeFiles/Makefile2:8222: recipe for target 'modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all' failed make[1]: [modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2
and also so mant error like this
/usr/local/include/ceres/autodiff_cost_function.h:159:18: error: no matching function for call to ‘ceres::AutoDiffCostFunction<libmv::{anonymous}::fundamentalsymmetricepipol< p="">
@Hongs. When it stopped @96%. It is not freezing. You will have to wait at leat 45 miniutes or later. Even, if your mouse is not moving or digital clock is stopping. But please, upgrading to OpenCV 4.1.0.
@Hongs. Your cmake is working now. You will have 3 delays @33%, @51 to 55% and 96% to 98%. You will have to wait at least 30 minutes or more.
@supra56 ah, it just not stopped it was cancled like this
make[1]: * [modules/sfm/src/libmv/libmv/multiview/CMakeFiles/multiview.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: * [all] Error 2
hongseok@hongseok-500R5K-501R5K
and i tried to 4.1.0 but it was same