On downloading opencv 3.4.0 i got an error

asked 2019-07-24 00:41:17 -0600

Hongs gravatar image

updated 2019-07-24 06:33:25 -0600

supra56 gravatar image

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

Comments

which os / compiler is it ? (it all seems outdated)

can you please try with current 3.4.6 instead ? (almost a year difference !)

berak gravatar imageberak ( 2019-07-24 02:29:22 -0600 )edit

which module exactly failed to build ? (it's probably easier to find out with make -j1)

do you really need the sfm module ?

berak gravatar imageberak ( 2019-07-24 02:34:03 -0600 )edit

Replace this -D BUILD_NEW_PYTHON_SUPPORT=ON \ to -D BUILD_NEW_PYTHON_SUPPORT=ON ..

supra56 gravatar imagesupra56 ( 2019-07-24 06:35:14 -0600 )edit

@supra56 i tried to, but it didn't work. but it makes differece. it had stoped at 33%, after change it stoped 96%.

Hongs gravatar imageHongs ( 2019-07-25 23:25:52 -0600 )edit

@berak you mean opencv3.4.6? and my OS is ununtu 16.04 LTS & i don't know about complier

Hongs gravatar imageHongs ( 2019-07-25 23:27:31 -0600 )edit

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 gravatar imageHongs ( 2019-07-26 03:47:49 -0600 )edit

@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.

supra56 gravatar imagesupra56 ( 2019-07-26 06:46:55 -0600 )edit

@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 gravatar imagesupra56 ( 2019-07-26 06:54:36 -0600 )edit

@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

Hongs gravatar imageHongs ( 2019-07-28 23:48:37 -0600 )edit