error while re-build opencv-3.1.0 with extra modules "opencv_contrib" ?

asked 2016-04-28 05:26:08 -0500

Mohammed Eliass gravatar image

updated 2016-04-28 12:56:10 -0500

I'm using Opencv 3.1.0 on Ubuntu 14.04

after downloading opencv_contrib then moving the folder to /home/MY_NAME/opencv-3.1.0/build then type in terminal cmake -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules opencv_source_directory

I had this error "bash: /modules: Permission denied"

then I've changed the permission to both opencv_contrib/modules & build/modules with chmod 777 FileName

then logout to know if anything changes

Unfortunately, I still have this error "bash: /modules: Permission denied"

solve this, but after typing the absolute path :

cmake -DOPENCV_EXTRA_MODULES_PATH=/home/mohammed-aboelias/opencv_contrib/modules ..

I had this on the terminal :

-- Detected version of GNU GCC: 48 (408)

-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")

-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.8")

-- Found OpenEXR: /usr/lib/i386-linux-gnu/libIlmImf.so

-- checking for module 'gtk+-3.0'

-- package 'gtk+-3.0' not found

-- checking for module 'gtkglext-1.0'

-- package 'gtkglext-1.0' not found

-- checking for module 'gstreamer-base-1.0'

-- package 'gstreamer-base-1.0' not found

-- checking for module 'gstreamer-video-1.0'

-- package 'gstreamer-video-1.0' not found

-- checking for module 'gstreamer-app-1.0'

-- package 'gstreamer-app-1.0' not found

-- checking for module 'gstreamer-riff-1.0'

-- package 'gstreamer-riff-1.0' not found

-- checking for module 'gstreamer-pbutils-1.0'

-- package 'gstreamer-pbutils-1.0' not found

-- Looking for linux/videodev.h

-- Looking for linux/videodev.h - not found

-- Looking for linux/videodev2.h

-- Looking for linux/videodev2.h - found

-- Looking for sys/videoio.h

-- Looking for sys/videoio.h - not found

-- checking for module 'libavresample'

-- package 'libavresample' not found

-- Looking for libavformat/avformat.h

-- Looking for libavformat/avformat.h - found

-- Looking for ffmpeg/avformat.h

-- Looking for ffmpeg/avformat.h - not found

-- checking for module 'libgphoto2'

-- package 'libgphoto2' not found

-- On 32-bit Linux IPP can not currently be used with dynamic libs because of linker errors. Set BUILD_SHARED_LIBS=OFF

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake

-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7")

-- Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (found suitable exact version "2.7.6")

-- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")

-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.4.3") Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'numpy'

-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)

-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)

-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

CMake Error at cmake/OpenCVModule.cmake:295 (message): No extra modules found in folder: /home/mohammed-aboelias/opencv_contrib/modules

Please provide path to 'opencv_contrib/modules' folder. Call Stack (most recent call first): modules/CMakeLists.txt:7 (ocv_glob_modules)

^[[1;2A-- -- General configuration for OpenCV 3.1.0 =====================================

-- Version control: unknown

-- Platform: -- Host: Linux 3 ... (more)

edit retag flag offensive close merge delete

Comments

can you try to put your opencv_contrib dir outside your build dir ? (it should not need any write/exec permissions in any src dir)

berak gravatar imageberak ( 2016-04-28 05:29:01 -0500 )edit
1

(due to a lot of spam, we're forced to moderate this forum, so there's some delay, until questions show up. please bear with us, patience, don't post duplicates)

berak gravatar imageberak ( 2016-04-28 05:31:37 -0500 )edit

I searched for a similar questions ,but I don't found anything. it's not duplicated,is it ?

Mohammed Eliass gravatar imageMohammed Eliass ( 2016-04-28 05:36:51 -0500 )edit

I tried to do by your advice, but "bash: opencv_contrib: No such file or directory"

Mohammed Eliass gravatar imageMohammed Eliass ( 2016-04-28 05:38:32 -0500 )edit

(you made 2 questions, i removed the other)

try to put the opencv_contrib folder in /home/MY_NAME/opencv_contrib, then, try with absolute path:

cmake -DOPENCV_EXTRA_MODULES_PATH=/home/MY_NAME/opencv_contrib/modules ..
berak gravatar imageberak ( 2016-04-28 05:44:38 -0500 )edit

it worked,but -- Configuring incomplete, errors occurred! @berak :(

Mohammed Eliass gravatar imageMohammed Eliass ( 2016-04-28 07:47:23 -0500 )edit

at least, that's one step further ..

now, then please append the cmake output to your question

berak gravatar imageberak ( 2016-04-28 08:26:04 -0500 )edit

@berak , is this okay ....? I'm very sorry to take all this time from you ..!

Mohammed Eliass gravatar imageMohammed Eliass ( 2016-04-28 13:01:52 -0500 )edit