Config.in 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. menuconfig BR2_PACKAGE_OPENCV3
  2. bool "opencv3"
  3. depends on BR2_TOOLCHAIN_HAS_ATOMIC
  4. depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
  5. depends on BR2_INSTALL_LIBSTDCPP
  6. depends on BR2_USE_WCHAR
  7. depends on !BR2_STATIC_LIBS # include dlfcn.h
  8. select BR2_PACKAGE_ZLIB
  9. help
  10. OpenCV (Open Source Computer Vision) is a library of
  11. programming functions for real time computer vision.
  12. Note that the opencv_core module and the opencv_hal library
  13. are always built and installed, not matter which other
  14. modules are enabled below.
  15. http://opencv.org/
  16. if BR2_PACKAGE_OPENCV3
  17. comment "OpenCV modules"
  18. config BR2_PACKAGE_OPENCV3_LIB_CALIB3D
  19. bool "calib3d"
  20. select BR2_PACKAGE_OPENCV3_LIB_FEATURES2D
  21. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  22. help
  23. Include opencv_calib3d (camera calibration and 3d
  24. reconstruction) module into the OpenCV build.
  25. config BR2_PACKAGE_OPENCV3_LIB_FEATURES2D
  26. bool "features2d"
  27. select BR2_PACKAGE_OPENCV3_LIB_FLANN
  28. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  29. select BR2_PACKAGE_OPENCV3_LIB_ML
  30. help
  31. Include opencv_features2d (2d features framework) module
  32. into the OpenCV build.
  33. config BR2_PACKAGE_OPENCV3_LIB_FLANN
  34. bool "flann"
  35. # opencv_core dependency is already enabled
  36. help
  37. Include opencv_flann (clustering and search in
  38. multi-dimensional spaces) module into the OpenCV build.
  39. config BR2_PACKAGE_OPENCV3_LIB_HIGHGUI
  40. bool "highgui"
  41. select BR2_PACKAGE_OPENCV3_LIB_IMGCODECS
  42. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  43. select BR2_PACKAGE_OPENCV3_LIB_VIDEOIO
  44. help
  45. Include opencv_highgui (high-level gui and media i/o) module
  46. into the OpenCV build.
  47. if BR2_PACKAGE_OPENCV3_LIB_HIGHGUI
  48. choice
  49. prompt "gui toolkit"
  50. help
  51. GUI toolkit to be used by the opencv_highgui module.
  52. config BR2_PACKAGE_OPENCV3_GUI_NONE
  53. bool "none"
  54. config BR2_PACKAGE_OPENCV3_WITH_GTK
  55. bool "gtk2"
  56. depends on BR2_PACKAGE_LIBGTK2
  57. comment "gtk2 support needs libgtk2"
  58. depends on BR2_USE_MMU # libgtk2 -> glib2
  59. depends on BR2_TOOLCHAIN_HAS_SYNC_4
  60. depends on !BR2_PACKAGE_LIBGTK2
  61. config BR2_PACKAGE_OPENCV3_WITH_GTK3
  62. bool "gtk3"
  63. depends on BR2_PACKAGE_LIBGTK3
  64. comment "gtk3 support needs libgtk3"
  65. depends on BR2_USE_MMU # libgtk3 -> glib2
  66. depends on BR2_TOOLCHAIN_HAS_SYNC_4
  67. depends on !BR2_PACKAGE_LIBGTK3
  68. config BR2_PACKAGE_OPENCV3_WITH_QT5
  69. bool "qt5"
  70. depends on BR2_PACKAGE_QT5
  71. select BR2_PACKAGE_QT5BASE_CONCURRENT
  72. select BR2_PACKAGE_QT5BASE_GUI
  73. select BR2_PACKAGE_QT5BASE_WIDGETS
  74. help
  75. Use Qt5 with base, concurrent, test, gui and widgets
  76. components, as GUI toolkit.
  77. comment "qt5 support needs qt5"
  78. depends on !BR2_PACKAGE_QT5
  79. endchoice
  80. config BR2_PACKAGE_OPENCV3_WITH_OPENGL
  81. bool "opengl support"
  82. # OpenGL support done using Qt5OpenGL, so depends on WITH_QT5
  83. depends on BR2_PACKAGE_OPENCV3_WITH_QT5
  84. # OpenGL support requires Qt5OpenGL with GL support, not GLES
  85. depends on BR2_PACKAGE_QT5_GL_AVAILABLE
  86. depends on BR2_PACKAGE_HAS_LIBGL
  87. select BR2_PACKAGE_QT5BASE_OPENGL
  88. help
  89. Enable OpenGL for UI.
  90. comment "opengl support needs an OpenGL provider"
  91. depends on BR2_PACKAGE_OPENCV3_WITH_QT5
  92. depends on !BR2_PACKAGE_QT5_GL_AVAILABLE || \
  93. !BR2_PACKAGE_HAS_LIBGL
  94. endif # BR2_PACKAGE_OPENCV3_LIB_HIGHGUI
  95. config BR2_PACKAGE_OPENCV3_LIB_IMGCODECS
  96. bool "imgcodecs"
  97. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  98. help
  99. Include opencv_imgcodecs (image codecs) module into the
  100. OpenCV build.
  101. config BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  102. bool "imgproc"
  103. # opencv_core dependency is already enabled
  104. help
  105. Include opencv_imgproc (image processing) module into the
  106. OpenCV build.
  107. config BR2_PACKAGE_OPENCV3_LIB_ML
  108. bool "ml"
  109. # opencv_core dependency is already enabled
  110. help
  111. Include opencv_ml (machine learning) module into the OpenCV
  112. build.
  113. config BR2_PACKAGE_OPENCV3_LIB_OBJDETECT
  114. bool "objdetect"
  115. # opencv_core dependency is already enabled
  116. select BR2_PACKAGE_OPENCV3_LIB_CALIB3D
  117. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  118. select BR2_PACKAGE_OPENCV3_LIB_ML
  119. help
  120. Include opencv_objdetect (object detection) module into the
  121. OpenCV build.
  122. config BR2_PACKAGE_OPENCV3_LIB_PHOTO
  123. bool "photo"
  124. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  125. help
  126. Include opencv_photo (computational photography) module into
  127. the OpenCV build.
  128. config BR2_PACKAGE_OPENCV3_LIB_PYTHON
  129. bool "python"
  130. depends on BR2_PACKAGE_PYTHON3
  131. depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
  132. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
  133. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
  134. select BR2_PACKAGE_PYTHON_NUMPY
  135. help
  136. Include opencv_python module into the OpenCV build. No
  137. python example is installed.
  138. comment "python support needs a glibc or musl toolchain w/ gcc >= 9"
  139. depends on BR2_PACKAGE_PYTHON3
  140. depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
  141. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
  142. !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
  143. config BR2_PACKAGE_OPENCV3_LIB_SHAPE
  144. bool "shape"
  145. # opencv_core dependency is already enabled
  146. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  147. select BR2_PACKAGE_OPENCV3_LIB_VIDEO
  148. help
  149. Include opencv_shape (shape descriptors and matchers) module
  150. into the OpenCV build.
  151. config BR2_PACKAGE_OPENCV3_LIB_STITCHING
  152. bool "stitching"
  153. select BR2_PACKAGE_OPENCV3_LIB_CALIB3D
  154. select BR2_PACKAGE_OPENCV3_LIB_FEATURES2D
  155. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  156. select BR2_PACKAGE_OPENCV3_LIB_OBJDETECT
  157. help
  158. Include opencv_stitching (images stitching) module into the
  159. OpenCV build.
  160. config BR2_PACKAGE_OPENCV3_LIB_SUPERRES
  161. bool "superres"
  162. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  163. select BR2_PACKAGE_OPENCV3_LIB_VIDEO
  164. help
  165. Include opencv_superres (super resolution) module into the
  166. OpenCV build.
  167. config BR2_PACKAGE_OPENCV3_LIB_TS
  168. bool "ts"
  169. # opencv_core dependency is already enabled
  170. select BR2_PACKAGE_OPENCV3_LIB_HIGHGUI
  171. select BR2_PACKAGE_OPENCV3_LIB_IMGCODECS
  172. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  173. select BR2_PACKAGE_OPENCV3_LIB_VIDEOIO
  174. help
  175. Include opencv_ts (test) module into the OpenCV build.
  176. config BR2_PACKAGE_OPENCV3_LIB_VIDEOIO
  177. bool "videoio"
  178. select BR2_PACKAGE_OPENCV3_LIB_IMGCODECS
  179. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  180. help
  181. Include opencv_videoio (media i/o) module into the OpenCV
  182. build.
  183. config BR2_PACKAGE_OPENCV3_LIB_VIDEO
  184. bool "video"
  185. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  186. help
  187. Include opencv_video (video analysis) module into the OpenCV
  188. build.
  189. config BR2_PACKAGE_OPENCV3_LIB_VIDEOSTAB
  190. bool "videostab"
  191. select BR2_PACKAGE_OPENCV3_LIB_CALIB3D
  192. select BR2_PACKAGE_OPENCV3_LIB_FEATURES2D
  193. select BR2_PACKAGE_OPENCV3_LIB_IMGPROC
  194. select BR2_PACKAGE_OPENCV3_LIB_PHOTO
  195. select BR2_PACKAGE_OPENCV3_LIB_VIDEO
  196. help
  197. Include opencv_videostab (video stabilization) module into
  198. the OpenCV build.
  199. comment "Test sets"
  200. config BR2_PACKAGE_OPENCV3_BUILD_TESTS
  201. bool "build tests"
  202. config BR2_PACKAGE_OPENCV3_BUILD_PERF_TESTS
  203. bool "build performance tests"
  204. comment "3rd party support"
  205. config BR2_PACKAGE_OPENCV3_WITH_FFMPEG
  206. bool "ffmpeg support"
  207. depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
  208. select BR2_PACKAGE_BZIP2
  209. select BR2_PACKAGE_FFMPEG
  210. select BR2_PACKAGE_FFMPEG_AVRESAMPLE
  211. select BR2_PACKAGE_FFMPEG_SWSCALE
  212. help
  213. Use ffmpeg from the target system.
  214. config BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1
  215. bool "gstreamer-1.x"
  216. depends on BR2_USE_MMU # gstreamer1 -> libglib2
  217. depends on BR2_USE_WCHAR # gstreamer1 -> libglib2
  218. depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer1 -> libglib2
  219. select BR2_PACKAGE_GSTREAMER1
  220. select BR2_PACKAGE_GST1_PLUGINS_BASE
  221. select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
  222. help
  223. Enable gstreamer support.
  224. comment "gstreamer support needs a toolchain w/ wchar, threads"
  225. depends on BR2_USE_MMU
  226. depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
  227. config BR2_PACKAGE_OPENCV3_WITH_JASPER
  228. bool "jpeg2000 support"
  229. select BR2_PACKAGE_JASPER
  230. help
  231. Enable jpeg2000 support.
  232. Note: this does not use the libjasper bundled with opencv,
  233. but uses the libjasper package installed system-wide by
  234. Buildroot.
  235. config BR2_PACKAGE_OPENCV3_WITH_JPEG
  236. bool "jpeg support"
  237. select BR2_PACKAGE_JPEG
  238. help
  239. Use shared libjpeg from the target system.
  240. config BR2_PACKAGE_OPENCV3_WITH_PNG
  241. bool "png support"
  242. select BR2_PACKAGE_LIBPNG
  243. help
  244. Use shared libpng from the target system.
  245. config BR2_PACKAGE_OPENCV3_WITH_PROTOBUF
  246. bool "protobuf support"
  247. depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # protobuf
  248. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # protobuf
  249. select BR2_PACKAGE_PROTOBUF
  250. help
  251. Use shared protobuf from the target system.
  252. comment "protobuf support needs a toolchain w/ gcc >= 4.8"
  253. depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
  254. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  255. config BR2_PACKAGE_OPENCV3_WITH_TIFF
  256. bool "tiff support"
  257. select BR2_PACKAGE_TIFF
  258. help
  259. Use shared libtiff from the target system.
  260. config BR2_PACKAGE_OPENCV3_WITH_V4L
  261. bool "v4l support"
  262. help
  263. Enable Video 4 Linux support.
  264. If the package libv4l is enabled, its support is
  265. automatically enabled.
  266. config BR2_PACKAGE_OPENCV3_WITH_WEBP
  267. bool "webp support"
  268. select BR2_PACKAGE_WEBP
  269. help
  270. Enable WebP support.
  271. Use shared libwebp from the target system.
  272. comment "Install options"
  273. config BR2_PACKAGE_OPENCV3_INSTALL_DATA
  274. bool "install extra data"
  275. help
  276. Install various data that is used by cv libraries and/or
  277. demo applications, specifically for haarcascades and
  278. lbpcascades features.
  279. For further information: see OpenCV documentation.
  280. endif # BR2_PACKAGE_OPENCV3
  281. comment "opencv3 needs a toolchain w/ C++, NPTL, wchar, dynamic library"
  282. depends on BR2_TOOLCHAIN_HAS_ATOMIC
  283. depends on !BR2_INSTALL_LIBSTDCPP || \
  284. !BR2_USE_WCHAR || \
  285. !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
  286. BR2_STATIC_LIBS