opencv master branch build failed! (Bug #4433)


Added by An Tran over 9 years ago. Updated over 9 years ago.


Status:Done Start date:2015-06-24
Priority:High Due date:
Assignee:Maksim Shabunin % Done:

0%

Category:build/install
Target version:3.1
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty:Easy HW Platform:x64
Pull request:https://github.com/Itseez/opencv/pull/4152

Description

I pulled the newest version of opencv 3.0 master branch and tried to build opencv with contrib modules.

cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=~/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ -D BUILD_DOCS=ON -D BUILD_EXAMPLES=ON -D WITH_CUDA=ON -D WITH_OPENMP=ON -D MATLAB_ROOT_DIR=/usr/local/MATLAB/R2012a/ ..

Configuration with Cmake was fine, but the build was failed. The previous times, I built it with the same command and it worked fine. However, this update is not successful. This bug is critical, pls fix it soon.

[ 0%] [ 0%] Built target opencv_ts_pch_dephelp
Building CXX object modules/cudev/CMakeFiles/opencv_cudev.dir/src/stub.cpp.o
In file included from /home/beahacker/Downloads/opencv-new/opencv/modules/cudev/src/stub.cpp:1:0:
/home/beahacker/Downloads/opencv-new/opencv/modules/core/include/opencv2/core/cvdef.h:59:30: fatal error: opencv2/hal/defs.h: No such file or directory
#include "opencv2/hal/defs.h"
^
compilation terminated.
[ 1%] [ 3%] Built target opencv_hal_pch_dephelp
Built target libwebp
[ 6%] Built target IlmImf
[ 6%] make2: * [modules/cudev/CMakeFiles/opencv_cudev.dir/src/stub.cpp.o] Error 1
make1:
[modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2
make1: *
* Waiting for unfinished jobs....


History

Updated by Alexander Alekhin over 9 years ago

Does it work with WITH_CUDA=OFF?

Updated by Maksim Shabunin over 9 years ago

  • Target version set to 3.1
  • Assignee set to Maksim Shabunin
  • Category set to build/install
  • Pull request set to https://github.com/Itseez/opencv/pull/4152

Updated by Alexander Alekhin over 9 years ago

  • Status changed from New to Done

Updated by An Tran over 9 years ago

Alexander Alekhin wrote:

Does it work with WITH_CUDA=OFF?

Yeah, it worked! Why is it so?

Updated by An Tran over 9 years ago

Maksim Shabunin wrote:

The PR is ready: https://github.com/Itseez/opencv/pull/4152

Thank @Maksim, it works fine now.

Also available in: Atom PDF