Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.54 KB | None | 0 0
  1. sudo apt-get install build-essential
  2.  
  3. sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
  4.  
  5. sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  6.  
  7. git clone https://github.com/Itseez/opencv.git
  8.  
  9. git clone https://github.com/Itseez/opencv_contrib.git
  10.  
  11. cd opencv
  12. git checkout 3.1.0
  13. cd /OpenCV-3.1.0/opencv_contrib
  14. git checkout 3.1.0
  15. cd /OpenCV-3.1.0/opencv
  16.  
  17.  
  18. mkdir release
  19. cd release
  20.  
  21. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules ..
  22.  
  23. ahmed@ahmed-Inspiron-N5110:~/OpenCV-3.1.0/opencv/release$
  24.  
  25. ahmed@ahmed-Inspiron-N5110:~/OpenCV-3.1.0/opencv/release$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opencv-3.1.0/opencv_contrib/modules ..
  26. -- Detected version of GNU GCC: 52 (502)
  27. -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
  28. -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
  29. -- checking for module 'gtk+-3.0'
  30. -- package 'gtk+-3.0' not found
  31. -- checking for module 'gstreamer-base-1.0'
  32. -- package 'gstreamer-base-1.0' not found
  33. -- checking for module 'gstreamer-video-1.0'
  34. -- package 'gstreamer-video-1.0' not found
  35. -- checking for module 'gstreamer-app-1.0'
  36. -- package 'gstreamer-app-1.0' not found
  37. -- checking for module 'gstreamer-riff-1.0'
  38. -- package 'gstreamer-riff-1.0' not found
  39. -- checking for module 'gstreamer-pbutils-1.0'
  40. -- package 'gstreamer-pbutils-1.0' not found
  41. -- checking for module 'gstreamer-base-0.10'
  42. -- package 'gstreamer-base-0.10' not found
  43. -- checking for module 'gstreamer-video-0.10'
  44. -- package 'gstreamer-video-0.10' not found
  45. -- checking for module 'gstreamer-app-0.10'
  46. -- package 'gstreamer-app-0.10' not found
  47. -- checking for module 'gstreamer-riff-0.10'
  48. -- package 'gstreamer-riff-0.10' not found
  49. -- checking for module 'gstreamer-pbutils-0.10'
  50. -- package 'gstreamer-pbutils-0.10' not found
  51. -- checking for module 'libv4l1'
  52. -- package 'libv4l1' not found
  53. -- checking for module 'libv4l2'
  54. -- package 'libv4l2' not found
  55. -- Looking for linux/videodev.h
  56. -- Looking for linux/videodev.h - not found
  57. -- Looking for linux/videodev2.h
  58. -- Looking for linux/videodev2.h - found
  59. -- Looking for sys/videoio.h
  60. -- Looking for sys/videoio.h - not found
  61. -- checking for module 'libavresample'
  62. -- package 'libavresample' not found
  63. -- Looking for libavformat/avformat.h
  64. -- Looking for libavformat/avformat.h - found
  65. -- Looking for ffmpeg/avformat.h
  66. -- Looking for ffmpeg/avformat.h - not found
  67. -- checking for module 'libgphoto2'
  68. -- package 'libgphoto2' not found
  69. -- found IPP (ICV version): 9.0.1 [9.0.1]
  70. -- at: /home/ahmed/OpenCV-3.1.0/opencv/3rdparty/ippicv/unpack/ippicv_lnx
  71. -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  72. -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
  73. -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.10", minimum required is "2.7")
  74. -- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")
  75. -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.4.3")
  76. Traceback (most recent call last):
  77. File "<string>", line 1, in <module>
  78. ImportError: No module named 'numpy'
  79. -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
  80. -- 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)
  81. -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
  82. CMake Error at cmake/OpenCVModule.cmake:295 (message):
  83. No extra modules found in folder: /opencv-3.1.0/opencv_contrib/modules
  84.  
  85. Please provide path to 'opencv_contrib/modules' folder.
  86. Call Stack (most recent call first):
  87. modules/CMakeLists.txt:7 (ocv_glob_modules)
  88.  
  89.  
  90. --
  91. -- General configuration for OpenCV 3.1.0 =====================================
  92. -- Version control: 3.1.0
  93. --
  94. -- Platform:
  95. -- Host: Linux 4.2.0-27-generic x86_64
  96. -- CMake: 3.2.2
  97. -- CMake generator: Unix Makefiles
  98. -- CMake build tool: /usr/bin/make
  99. -- Configuration: RELEASE
  100. --
  101. -- C/C++:
  102. -- Built as dynamic libs?: YES
  103. -- C++ Compiler: /usr/bin/c++ (ver 5.2.1)
  104. -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
  105. -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
  106. -- C Compiler: /usr/bin/cc
  107. -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
  108. -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
  109. -- Linker flags (Release):
  110. -- Linker flags (Debug):
  111. -- Precompiled headers: YES
  112. -- Extra dependencies: /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so gtk-x11-2.0 gdk-x11-2.0 pangocairo-1.0 atk-1.0 cairo gdk_pixbuf-2.0 gio-2.0 pangoft2-1.0 pango-1.0 gobject-2.0 fontconfig freetype gthread-2.0 glib-2.0 dc1394 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg dl m pthread rt
  113. -- 3rdparty dependencies: libwebp IlmImf
  114. --
  115. -- OpenCV modules:
  116. -- To be built: core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab python2
  117. -- Disabled: world
  118. -- Disabled by dependency: -
  119. -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python3 viz
  120. --
  121. -- GUI:
  122. -- QT: NO
  123. -- GTK+ 2.x: YES (ver 2.24.28)
  124. -- GThread : YES (ver 2.46.1)
  125. -- GtkGlExt: NO
  126. -- OpenGL support: NO
  127. -- VTK support: NO
  128. --
  129. -- Media I/O:
  130. -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
  131. -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
  132. -- WEBP: build (ver 0.3.1)
  133. -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.51)
  134. -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3)
  135. -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
  136. -- OpenEXR: build (ver 1.7.1)
  137. -- GDAL: NO
  138. --
  139. -- Video I/O:
  140. -- DC1394 1.x: NO
  141. -- DC1394 2.x: YES (ver 2.2.3)
  142. -- FFMPEG: YES
  143. -- codec: YES (ver 56.41.100)
  144. -- format: YES (ver 56.36.100)
  145. -- util: YES (ver 54.27.100)
  146. -- swscale: YES (ver 3.1.101)
  147. -- resample: NO
  148. -- gentoo-style: YES
  149. -- GStreamer: NO
  150. -- OpenNI: NO
  151. -- OpenNI PrimeSensor Modules: NO
  152. -- OpenNI2: NO
  153. -- PvAPI: NO
  154. -- GigEVisionSDK: NO
  155. -- UniCap: NO
  156. -- UniCap ucil: NO
  157. -- V4L/V4L2: NO/YES
  158. -- XIMEA: NO
  159. -- Xine: NO
  160. -- gPhoto2: NO
  161. --
  162. -- Parallel framework: pthreads
  163. --
  164. -- Other third-party libraries:
  165. -- Use IPP: 9.0.1 [9.0.1]
  166. -- at: /home/ahmed/OpenCV-3.1.0/opencv/3rdparty/ippicv/unpack/ippicv_lnx
  167. -- Use IPP Async: NO
  168. -- Use VA: NO
  169. -- Use Intel VA-API/OpenCL: NO
  170. -- Use Eigen: NO
  171. -- Use Cuda: NO
  172. -- Use OpenCL: YES
  173. -- Use custom HAL: NO
  174. --
  175. -- OpenCL:
  176. -- Version: dynamic
  177. -- Include path: /home/ahmed/OpenCV-3.1.0/opencv/3rdparty/include/opencl/1.2
  178. -- Use AMDFFT: NO
  179. -- Use AMDBLAS: NO
  180. --
  181. -- Python 2:
  182. -- Interpreter: /usr/bin/python2.7 (ver 2.7.10)
  183. -- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.10)
  184. -- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)
  185. -- packages path: lib/python2.7/dist-packages
  186. --
  187. -- Python 3:
  188. -- Interpreter: /usr/bin/python3.4 (ver 3.4.3)
  189. --
  190. -- Python (for build): /usr/bin/python2.7
  191. --
  192. -- Java:
  193. -- ant: NO
  194. -- JNI: NO
  195. -- Java wrappers: NO
  196. -- Java tests: NO
  197. --
  198. -- Matlab: Matlab not found or implicitly disabled
  199. --
  200. -- Documentation:
  201. -- Doxygen: NO
  202. -- PlantUML: NO
  203. --
  204. -- Tests and samples:
  205. -- Tests: YES
  206. -- Performance tests: YES
  207. -- C/C++ Examples: NO
  208. --
  209. -- Install path: /usr/local
  210. --
  211. -- cvconfig.h is in: /home/ahmed/OpenCV-3.1.0/opencv/release
  212. -- -----------------------------------------------------------------
  213. --
  214. -- Configuring incomplete, errors occurred!
  215. See also "/home/ahmed/OpenCV-3.1.0/opencv/release/CMakeFiles/CMakeOutput.log".
  216. See also "/home/ahmed/OpenCV-3.1.0/opencv/release/CMakeFiles/CMakeError.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement