* [ptxdist] [PATCH] opencv: add new package
@ 2014-03-29 18:41 Christoph Fritz
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Christoph Fritz @ 2014-03-29 18:41 UTC (permalink / raw)
To: ptxdist; +Cc: Jan Weitzel, Roman Dosek
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
rules/opencv.in | 168 ++++++++++++++++++++++++++++++++++++++++++++++
rules/opencv.make | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 361 insertions(+)
create mode 100644 rules/opencv.in
create mode 100644 rules/opencv.make
diff --git a/rules/opencv.in b/rules/opencv.in
new file mode 100644
index 0000000..1319232
--- /dev/null
+++ b/rules/opencv.in
@@ -0,0 +1,168 @@
+## SECTION=multimedia_libs
+
+menuconfig OPENCV
+ bool
+ prompt "opencv"
+ select HOST_CMAKE
+ select GCCLIBS_CXX
+ select ZLIB
+ select LIBPNG
+ select LIBJPEG
+ select V4L_UTILS
+ help
+ Open Source Computer Vision Library
+
+if OPENCV
+
+config OPENCV_CALIB3D
+ bool
+ prompt "calib3d"
+ select OPENCV_FEATURES2D
+ help
+ Camera Calibration and 3D Reconstruction
+
+config OPENCV_CONTRIB
+ bool
+ prompt "contrib"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_ML
+ select OPENCV_OBJDETECT
+ select OPENCV_VIDEO
+ help
+ Contributed/Experimental Stuff
+
+config OPENCV_FEATURES2D
+ bool
+ prompt "features2d"
+ select OPENCV_FLANN
+ select OPENCV_IMGPROC
+ help
+ 2D Features Framework
+
+config OPENCV_FLANN
+ bool
+ prompt "flann"
+ help
+ Clustering and Search in Multi-Dimensional Spaces
+
+config OPENCV_GPU
+ bool
+ prompt "gpu"
+ select OPENCV_LEGACY
+ select OPENCV_PHOTO
+ select OPENCV_OBJDETECT
+ help
+ GPU-accelerated Computer Vision
+
+config OPENCV_HIGHGUI
+ bool
+ prompt "highgui"
+ select OPENCV_IMGPROC
+ help
+ High-level GUI and Media I/O
+
+config OPENCV_IMGPROC
+ bool
+ prompt "imgproc"
+ help
+ Image Processing
+
+config OPENCV_LEGACY
+ bool
+ prompt "legacy"
+ select OPENCV_CALIB3D
+ select OPENCV_ML
+ select OPENCV_VIDEO
+ help
+ Deprecated stuff
+
+config OPENCV_ML
+ bool
+ prompt "ml"
+ help
+ Machine Learning
+
+config OPENCV_NONFREE
+ bool
+ prompt "nonfree"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_FEATURES2D
+ help
+ Non-free functionality
+
+config OPENCV_OBJDETECT
+ bool
+ prompt "objdetect"
+ select OPENCV_IMGPROC
+ help
+ Object Detection
+
+config OPENCV_PHOTO
+ bool
+ prompt "photo"
+ select OPENCV_IMGPROC
+ help
+ Computational Photography
+
+config OPENCV_STITCHING
+ bool
+ prompt "stitching"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_OBJDETECT
+ help
+ Images stitching
+
+config OPENCV_SUPERRES
+ bool
+ prompt "superres"
+ select OPENCV_IMGPROC
+ select OPENCV_VIDEO
+ help
+ Super Resolution
+
+config OPENCV_VIDEO
+ bool
+ prompt "video"
+ select OPENCV_IMGPROC
+ help
+ Video Analysis
+
+config OPENCV_VIDEOSTAB
+ bool
+ prompt "videostab"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_HIGHGUI
+ select OPENCV_OBJDETECT
+ select OPENCV_PHOTO
+ select OPENCV_VIDEO
+ help
+ Video Stabilization
+
+config OPENCV_GSTREAMER
+ bool
+ prompt "gstreamer"
+ select GSTREAMER
+ help
+ Gstreamer Support
+
+config OPENCV_V4L
+ bool
+ prompt "v4l"
+ select OPENCV_VIDEO
+ help
+ Video4Linux Support
+
+config OPENCV_QT
+ bool
+ prompt "qt"
+ select QT4
+ select QT4_BUILD_QTESTLIB
+ select QT4_BUILD_GUI
+ select QT4_STL
+ help
+ QT GUI Support
+endif
diff --git a/rules/opencv.make b/rules/opencv.make
new file mode 100644
index 0000000..e3c2186
--- /dev/null
+++ b/rules/opencv.make
@@ -0,0 +1,193 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
+# Copyright (C) 2013 by Jan Weitzel <j.weitze@phytec.de>
+# loosely based on work by Roman Dosek <formatsh@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENCV) += opencv
+
+#
+# Paths and names
+#
+
+OPENCV_VERSION := 2.4.8
+OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
+OPENCV := opencv-$(OPENCV_VERSION)
+OPENCV_SUFFIX := zip
+OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
+OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
+OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
+OPENCV_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPENCV_CONF_TOOL := cmake
+
+OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
+OPENCV_CONF_OPT += \
+ -DANT_EXECUTABLE:FILEPATH= \
+ -DPYTHON_EXECUTABLE= \
+ -DBUILD_DOCS:BOOL=OFF \
+ -DBUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_PACKAGE:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_PERF_TESTS=OFF \
+ -DBUILD_WITH_DEBUG_INFO=OFF \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_USE_RELATIVE_PATHS=OFF \
+ -DENABLE_FAST_MATH=ON \
+ -DENABLE_NOISY_WARNINGS=OFF \
+ -DENABLE_OMIT_FRAME_POINTER=ON \
+ -DENABLE_PRECOMPILED_HEADERS=OFF \
+ -DENABLE_PROFILING=OFF \
+ -DENABLE_SOLUTION_FOLDERS=OFF \
+ -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
+ -DWITH_GTK:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_TIFF:BOOL=OFF \
+ -DCMAKE_VERBOSE:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_EIGEN:BOOL=OFF \
+ -DENABLE_NEON:BOOL=OFF \
+ -DENABLE_VFPV3:BOOL=OFF \
+ -DWITH_GIGEAPI:BOOL=OFF \
+ -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
+ -DINSTALL_C_EXAMPLES:BOOL=OFF \
+ -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
+ -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
+ -DOPENCV_EXTRA_MODULES_PATH:PATH= \
+ -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_1394:BOOL=OFF \
+ -DWITH_CUBLAS:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_CUFFT:BOOL=OFF \
+ -DWITH_FFMPEG:BOOL=OFF \
+ -DWITH_JASPER:BOOL=OFF \
+ -DWITH_JPEG:BOOL=ON \
+ -DWITH_PNG:BOOL=ON \
+ -DWITH_NVCUVID:BOOL=OFF \
+ -DWITH_OPENCL:BOOL=OFF \
+ -DWITH_OPENCLAMDBLAS:BOOL=OFF \
+ -DWITH_OPENCLAMDFFT:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_OPENMP:BOOL=OFF \
+ -DWITH_OPENNI:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_UNICAP:BOOL=OFF \
+ -DWITH_XIMEA:BOOL=OFF \
+ -DWITH_XINE:BOOL=OFF \
+
+OPENCV_CONF_OPT += \
+ -DBUILD_opencv_apps:BOOL=OFF \
+ -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
+ -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
+ -DBUILD_opencv_core:BOOL=ON \
+ -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
+ -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
+ -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
+ -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
+ -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
+ -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
+ -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
+ -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
+ -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
+ -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
+ -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
+ -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
+ -DBUILD_opencv_ts:BOOL=OFF \
+ -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
+ -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
+ -DBUILD_opencv_world:BOOL=OFF \
+ -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
+ -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_OPENGL:BOOL=OFF \
+ -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,ON,OFF)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/opencv.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, opencv)
+ @$(call install_fixup, opencv, PRIORITY, optional)
+ @$(call install_fixup, opencv, SECTION, base)
+ @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
+ @$(call install_fixup, opencv, DESCRIPTION, missing)
+
+
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_core)
+
+ifdef PTXCONF_OPENCV_CALIB3D
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_calib3d)
+endif
+ifdef PTXCONF_OPENCV_CONTRIB
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_contrib)
+endif
+ifdef PTXCONF_OPENCV_FEATURES2D
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_features2d)
+endif
+ifdef PTXCONF_OPENCV_FLANN
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_flann)
+endif
+ifdef PTXCONF_OPENCV_GPU
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_gpu)
+endif
+ifdef PTXCONF_OPENCV_HIGHGUI
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_highgui)
+endif
+ifdef PTXCONF_OPENCV_IMGPROC
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_imgproc)
+endif
+ifdef PTXCONF_OPENCV_LEGACY
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_legacy)
+endif
+ifdef PTXCONF_OPENCV_ML
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_ml)
+endif
+ifdef PTXCONF_OPENCV_NONFREE
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_nonfree)
+endif
+ifdef PTXCONF_OPENCV_OBJDETECT
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_objdetect)
+endif
+ifdef PTXCONF_OPENCV_PHOTO
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_photo)
+endif
+ifdef PTXCONF_OPENCV_STITCHING
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_stitching)
+endif
+ifdef PTXCONF_OPENCV_SUPERRES
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_superres)
+endif
+ifdef PTXCONF_OPENCV_VIDEO
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_video)
+endif
+ifdef PTXCONF_OPENCV_VIDEOSTAB
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_videostab)
+endif
+
+ @$(call install_finish, opencv)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [ptxdist] [PATCH v2] opencv: add new package
2014-03-29 18:41 [ptxdist] [PATCH] opencv: add new package Christoph Fritz
@ 2014-03-29 18:49 ` Christoph Fritz
2014-03-31 6:11 ` Alexander Aring
2014-03-31 7:45 ` Michael Olbrich
2014-03-31 6:02 ` [ptxdist] [PATCH] " Alexander Aring
2014-03-31 6:09 ` Alexander Aring
2 siblings, 2 replies; 14+ messages in thread
From: Christoph Fritz @ 2014-03-29 18:49 UTC (permalink / raw)
To: ptxdist; +Cc: Roman Dosek
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
v2: use correct email of J.Weitzel
rules/opencv.in | 168 ++++++++++++++++++++++++++++++++++++++++++++++
rules/opencv.make | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 361 insertions(+)
create mode 100644 rules/opencv.in
create mode 100644 rules/opencv.make
diff --git a/rules/opencv.in b/rules/opencv.in
new file mode 100644
index 0000000..1319232
--- /dev/null
+++ b/rules/opencv.in
@@ -0,0 +1,168 @@
+## SECTION=multimedia_libs
+
+menuconfig OPENCV
+ bool
+ prompt "opencv"
+ select HOST_CMAKE
+ select GCCLIBS_CXX
+ select ZLIB
+ select LIBPNG
+ select LIBJPEG
+ select V4L_UTILS
+ help
+ Open Source Computer Vision Library
+
+if OPENCV
+
+config OPENCV_CALIB3D
+ bool
+ prompt "calib3d"
+ select OPENCV_FEATURES2D
+ help
+ Camera Calibration and 3D Reconstruction
+
+config OPENCV_CONTRIB
+ bool
+ prompt "contrib"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_ML
+ select OPENCV_OBJDETECT
+ select OPENCV_VIDEO
+ help
+ Contributed/Experimental Stuff
+
+config OPENCV_FEATURES2D
+ bool
+ prompt "features2d"
+ select OPENCV_FLANN
+ select OPENCV_IMGPROC
+ help
+ 2D Features Framework
+
+config OPENCV_FLANN
+ bool
+ prompt "flann"
+ help
+ Clustering and Search in Multi-Dimensional Spaces
+
+config OPENCV_GPU
+ bool
+ prompt "gpu"
+ select OPENCV_LEGACY
+ select OPENCV_PHOTO
+ select OPENCV_OBJDETECT
+ help
+ GPU-accelerated Computer Vision
+
+config OPENCV_HIGHGUI
+ bool
+ prompt "highgui"
+ select OPENCV_IMGPROC
+ help
+ High-level GUI and Media I/O
+
+config OPENCV_IMGPROC
+ bool
+ prompt "imgproc"
+ help
+ Image Processing
+
+config OPENCV_LEGACY
+ bool
+ prompt "legacy"
+ select OPENCV_CALIB3D
+ select OPENCV_ML
+ select OPENCV_VIDEO
+ help
+ Deprecated stuff
+
+config OPENCV_ML
+ bool
+ prompt "ml"
+ help
+ Machine Learning
+
+config OPENCV_NONFREE
+ bool
+ prompt "nonfree"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_FEATURES2D
+ help
+ Non-free functionality
+
+config OPENCV_OBJDETECT
+ bool
+ prompt "objdetect"
+ select OPENCV_IMGPROC
+ help
+ Object Detection
+
+config OPENCV_PHOTO
+ bool
+ prompt "photo"
+ select OPENCV_IMGPROC
+ help
+ Computational Photography
+
+config OPENCV_STITCHING
+ bool
+ prompt "stitching"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_OBJDETECT
+ help
+ Images stitching
+
+config OPENCV_SUPERRES
+ bool
+ prompt "superres"
+ select OPENCV_IMGPROC
+ select OPENCV_VIDEO
+ help
+ Super Resolution
+
+config OPENCV_VIDEO
+ bool
+ prompt "video"
+ select OPENCV_IMGPROC
+ help
+ Video Analysis
+
+config OPENCV_VIDEOSTAB
+ bool
+ prompt "videostab"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_HIGHGUI
+ select OPENCV_OBJDETECT
+ select OPENCV_PHOTO
+ select OPENCV_VIDEO
+ help
+ Video Stabilization
+
+config OPENCV_GSTREAMER
+ bool
+ prompt "gstreamer"
+ select GSTREAMER
+ help
+ Gstreamer Support
+
+config OPENCV_V4L
+ bool
+ prompt "v4l"
+ select OPENCV_VIDEO
+ help
+ Video4Linux Support
+
+config OPENCV_QT
+ bool
+ prompt "qt"
+ select QT4
+ select QT4_BUILD_QTESTLIB
+ select QT4_BUILD_GUI
+ select QT4_STL
+ help
+ QT GUI Support
+endif
diff --git a/rules/opencv.make b/rules/opencv.make
new file mode 100644
index 0000000..ce72f16
--- /dev/null
+++ b/rules/opencv.make
@@ -0,0 +1,193 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
+# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
+# loosely based on work by Roman Dosek <formatsh@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENCV) += opencv
+
+#
+# Paths and names
+#
+
+OPENCV_VERSION := 2.4.8
+OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
+OPENCV := opencv-$(OPENCV_VERSION)
+OPENCV_SUFFIX := zip
+OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
+OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
+OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
+OPENCV_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPENCV_CONF_TOOL := cmake
+
+OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
+OPENCV_CONF_OPT += \
+ -DANT_EXECUTABLE:FILEPATH= \
+ -DPYTHON_EXECUTABLE= \
+ -DBUILD_DOCS:BOOL=OFF \
+ -DBUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_PACKAGE:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_PERF_TESTS=OFF \
+ -DBUILD_WITH_DEBUG_INFO=OFF \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_USE_RELATIVE_PATHS=OFF \
+ -DENABLE_FAST_MATH=ON \
+ -DENABLE_NOISY_WARNINGS=OFF \
+ -DENABLE_OMIT_FRAME_POINTER=ON \
+ -DENABLE_PRECOMPILED_HEADERS=OFF \
+ -DENABLE_PROFILING=OFF \
+ -DENABLE_SOLUTION_FOLDERS=OFF \
+ -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
+ -DWITH_GTK:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_TIFF:BOOL=OFF \
+ -DCMAKE_VERBOSE:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_EIGEN:BOOL=OFF \
+ -DENABLE_NEON:BOOL=OFF \
+ -DENABLE_VFPV3:BOOL=OFF \
+ -DWITH_GIGEAPI:BOOL=OFF \
+ -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
+ -DINSTALL_C_EXAMPLES:BOOL=OFF \
+ -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
+ -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
+ -DOPENCV_EXTRA_MODULES_PATH:PATH= \
+ -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_1394:BOOL=OFF \
+ -DWITH_CUBLAS:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_CUFFT:BOOL=OFF \
+ -DWITH_FFMPEG:BOOL=OFF \
+ -DWITH_JASPER:BOOL=OFF \
+ -DWITH_JPEG:BOOL=ON \
+ -DWITH_PNG:BOOL=ON \
+ -DWITH_NVCUVID:BOOL=OFF \
+ -DWITH_OPENCL:BOOL=OFF \
+ -DWITH_OPENCLAMDBLAS:BOOL=OFF \
+ -DWITH_OPENCLAMDFFT:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_OPENMP:BOOL=OFF \
+ -DWITH_OPENNI:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_UNICAP:BOOL=OFF \
+ -DWITH_XIMEA:BOOL=OFF \
+ -DWITH_XINE:BOOL=OFF \
+
+OPENCV_CONF_OPT += \
+ -DBUILD_opencv_apps:BOOL=OFF \
+ -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
+ -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
+ -DBUILD_opencv_core:BOOL=ON \
+ -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
+ -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
+ -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
+ -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
+ -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
+ -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
+ -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
+ -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
+ -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
+ -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
+ -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
+ -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
+ -DBUILD_opencv_ts:BOOL=OFF \
+ -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
+ -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
+ -DBUILD_opencv_world:BOOL=OFF \
+ -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
+ -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_OPENGL:BOOL=OFF \
+ -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,ON,OFF)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/opencv.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, opencv)
+ @$(call install_fixup, opencv, PRIORITY, optional)
+ @$(call install_fixup, opencv, SECTION, base)
+ @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
+ @$(call install_fixup, opencv, DESCRIPTION, missing)
+
+
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_core)
+
+ifdef PTXCONF_OPENCV_CALIB3D
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_calib3d)
+endif
+ifdef PTXCONF_OPENCV_CONTRIB
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_contrib)
+endif
+ifdef PTXCONF_OPENCV_FEATURES2D
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_features2d)
+endif
+ifdef PTXCONF_OPENCV_FLANN
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_flann)
+endif
+ifdef PTXCONF_OPENCV_GPU
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_gpu)
+endif
+ifdef PTXCONF_OPENCV_HIGHGUI
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_highgui)
+endif
+ifdef PTXCONF_OPENCV_IMGPROC
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_imgproc)
+endif
+ifdef PTXCONF_OPENCV_LEGACY
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_legacy)
+endif
+ifdef PTXCONF_OPENCV_ML
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_ml)
+endif
+ifdef PTXCONF_OPENCV_NONFREE
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_nonfree)
+endif
+ifdef PTXCONF_OPENCV_OBJDETECT
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_objdetect)
+endif
+ifdef PTXCONF_OPENCV_PHOTO
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_photo)
+endif
+ifdef PTXCONF_OPENCV_STITCHING
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_stitching)
+endif
+ifdef PTXCONF_OPENCV_SUPERRES
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_superres)
+endif
+ifdef PTXCONF_OPENCV_VIDEO
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_video)
+endif
+ifdef PTXCONF_OPENCV_VIDEOSTAB
+ @$(call install_lib, opencv, 0, 0, 0644, libopencv_videostab)
+endif
+
+ @$(call install_finish, opencv)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH] opencv: add new package
2014-03-29 18:41 [ptxdist] [PATCH] opencv: add new package Christoph Fritz
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
@ 2014-03-31 6:02 ` Alexander Aring
2014-03-31 6:09 ` Alexander Aring
2 siblings, 0 replies; 14+ messages in thread
From: Alexander Aring @ 2014-03-31 6:02 UTC (permalink / raw)
To: ptxdist; +Cc: Jan Weitzel, Roman Dosek
On Sat, Mar 29, 2014 at 07:41:43PM +0100, Christoph Fritz wrote:
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> rules/opencv.in | 168 ++++++++++++++++++++++++++++++++++++++++++++++
> rules/opencv.make | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 361 insertions(+)
> create mode 100644 rules/opencv.in
> create mode 100644 rules/opencv.make
>
> diff --git a/rules/opencv.in b/rules/opencv.in
> new file mode 100644
> index 0000000..1319232
> --- /dev/null
> +++ b/rules/opencv.in
> @@ -0,0 +1,168 @@
> +## SECTION=multimedia_libs
> +
> +menuconfig OPENCV
> + bool
> + prompt "opencv"
> + select HOST_CMAKE
> + select GCCLIBS_CXX
> + select ZLIB
> + select LIBPNG
> + select LIBJPEG
> + select V4L_UTILS
> + help
> + Open Source Computer Vision Library
first thing which I see is there is a off by one error in help you need
to insert one whitespace there....
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH] opencv: add new package
2014-03-29 18:41 [ptxdist] [PATCH] opencv: add new package Christoph Fritz
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
2014-03-31 6:02 ` [ptxdist] [PATCH] " Alexander Aring
@ 2014-03-31 6:09 ` Alexander Aring
2014-03-31 8:33 ` Juergen Beisert
2 siblings, 1 reply; 14+ messages in thread
From: Alexander Aring @ 2014-03-31 6:09 UTC (permalink / raw)
To: ptxdist; +Cc: Jan Weitzel, Roman Dosek
On Sat, Mar 29, 2014 at 07:41:43PM +0100, Christoph Fritz wrote:
> +
> +OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
> +OPENCV_CONF_OPT += \
> + -DANT_EXECUTABLE:FILEPATH= \
> + -DPYTHON_EXECUTABLE= \
> + -DBUILD_DOCS:BOOL=OFF \
> + -DBUILD_EXAMPLES:BOOL=OFF \
> + -DBUILD_PACKAGE:BOOL=OFF \
> + -DCMAKE_BUILD_TYPE=Release \
> + -DBUILD_SHARED_LIBS:BOOL=ON \
> + -DBUILD_TESTS=OFF \
> + -DBUILD_PERF_TESTS=OFF \
> + -DBUILD_WITH_DEBUG_INFO=OFF \
> + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
> + -DCMAKE_SKIP_RPATH=OFF \
> + -DCMAKE_USE_RELATIVE_PATHS=OFF \
> + -DENABLE_FAST_MATH=ON \
> + -DENABLE_NOISY_WARNINGS=OFF \
> + -DENABLE_OMIT_FRAME_POINTER=ON \
> + -DENABLE_PRECOMPILED_HEADERS=OFF \
> + -DENABLE_PROFILING=OFF \
> + -DENABLE_SOLUTION_FOLDERS=OFF \
> + -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
> + -DWITH_GTK:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_TIFF:BOOL=OFF \
> + -DCMAKE_VERBOSE:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_EIGEN:BOOL=OFF \
> + -DENABLE_NEON:BOOL=OFF \
> + -DENABLE_VFPV3:BOOL=OFF \
> + -DWITH_GIGEAPI:BOOL=OFF \
> + -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
> + -DINSTALL_C_EXAMPLES:BOOL=OFF \
> + -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
> + -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
> + -DOPENCV_EXTRA_MODULES_PATH:PATH= \
> + -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_1394:BOOL=OFF \
> + -DWITH_CUBLAS:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_CUFFT:BOOL=OFF \
> + -DWITH_FFMPEG:BOOL=OFF \
> + -DWITH_JASPER:BOOL=OFF \
> + -DWITH_JPEG:BOOL=ON \
> + -DWITH_PNG:BOOL=ON \
> + -DWITH_NVCUVID:BOOL=OFF \
> + -DWITH_OPENCL:BOOL=OFF \
> + -DWITH_OPENCLAMDBLAS:BOOL=OFF \
> + -DWITH_OPENCLAMDFFT:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_OPENMP:BOOL=OFF \
> + -DWITH_OPENNI:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_UNICAP:BOOL=OFF \
> + -DWITH_XIMEA:BOOL=OFF \
> + -DWITH_XINE:BOOL=OFF \
> +
> +OPENCV_CONF_OPT += \
> + -DBUILD_opencv_apps:BOOL=OFF \
> + -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
> + -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
> + -DBUILD_opencv_core:BOOL=ON \
> + -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
> + -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
> + -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
> + -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
> + -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
> + -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
> + -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
> + -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
> + -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
> + -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
> + -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
> + -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
> + -DBUILD_opencv_ts:BOOL=OFF \
> + -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
> + -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
> + -DBUILD_opencv_world:BOOL=OFF \
> + -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
> + -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_OPENGL:BOOL=OFF \
> + -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,ON,OFF)
Make only one:
OPENCV_CONF_OPT := \
$(CROSS_CMAKE_USR) \
...
> +
> +
> + @$(call install_init, opencv)
> + @$(call install_fixup, opencv, PRIORITY, optional)
> + @$(call install_fixup, opencv, SECTION, base)
> + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> + @$(call install_fixup, opencv, DESCRIPTION, missing)
There is normally no whitespace in the lasts arguments:
"opencv, PRIORITY, optional"
should be:
"opencv,PRIORITY,optional"
Did you use 'ptxdist newpackage'? I don't think so...
> +
> +
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_core)
> +
> +ifdef PTXCONF_OPENCV_CALIB3D
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_calib3d)
> +endif
> +ifdef PTXCONF_OPENCV_CONTRIB
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_contrib)
> +endif
> +ifdef PTXCONF_OPENCV_FEATURES2D
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_features2d)
> +endif
> +ifdef PTXCONF_OPENCV_FLANN
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_flann)
> +endif
> +ifdef PTXCONF_OPENCV_GPU
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_gpu)
> +endif
> +ifdef PTXCONF_OPENCV_HIGHGUI
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_highgui)
> +endif
> +ifdef PTXCONF_OPENCV_IMGPROC
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_imgproc)
> +endif
> +ifdef PTXCONF_OPENCV_LEGACY
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_legacy)
> +endif
> +ifdef PTXCONF_OPENCV_ML
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_ml)
> +endif
> +ifdef PTXCONF_OPENCV_NONFREE
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_nonfree)
> +endif
> +ifdef PTXCONF_OPENCV_OBJDETECT
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_objdetect)
> +endif
> +ifdef PTXCONF_OPENCV_PHOTO
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_photo)
> +endif
> +ifdef PTXCONF_OPENCV_STITCHING
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_stitching)
> +endif
> +ifdef PTXCONF_OPENCV_SUPERRES
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_superres)
> +endif
> +ifdef PTXCONF_OPENCV_VIDEO
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_video)
> +endif
> +ifdef PTXCONF_OPENCV_VIDEOSTAB
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_videostab)
> +endif
We should provide a list here. Check rules/lowpan-tools.make and
LOWPAN_TOOLS_INSTALL_FILES. Then we can use a for-each loop.
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH v2] opencv: add new package
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
@ 2014-03-31 6:11 ` Alexander Aring
2014-03-31 7:45 ` Michael Olbrich
1 sibling, 0 replies; 14+ messages in thread
From: Alexander Aring @ 2014-03-31 6:11 UTC (permalink / raw)
To: ptxdist; +Cc: Roman Dosek
On Sat, Mar 29, 2014 at 07:49:04PM +0100, Christoph Fritz wrote:
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> v2: use correct email of J.Weitzel
>
oh yes I notice that right now, too. But now you don't have set any mail
address of J.Weitzel...
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH v2] opencv: add new package
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
2014-03-31 6:11 ` Alexander Aring
@ 2014-03-31 7:45 ` Michael Olbrich
2014-04-03 20:38 ` [ptxdist] [PATCH v3] " Christoph Fritz
1 sibling, 1 reply; 14+ messages in thread
From: Michael Olbrich @ 2014-03-31 7:45 UTC (permalink / raw)
To: ptxdist
On Sat, Mar 29, 2014 at 07:49:04PM +0100, Christoph Fritz wrote:
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> v2: use correct email of J.Weitzel
>
> rules/opencv.in | 168 ++++++++++++++++++++++++++++++++++++++++++++++
> rules/opencv.make | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 361 insertions(+)
> create mode 100644 rules/opencv.in
> create mode 100644 rules/opencv.make
>
> diff --git a/rules/opencv.in b/rules/opencv.in
> new file mode 100644
> index 0000000..1319232
> --- /dev/null
> +++ b/rules/opencv.in
> @@ -0,0 +1,168 @@
> +## SECTION=multimedia_libs
> +
> +menuconfig OPENCV
> + bool
> + prompt "opencv"
> + select HOST_CMAKE
> + select GCCLIBS_CXX
> + select ZLIB
> + select LIBPNG
> + select LIBJPEG
> + select V4L_UTILS
Are you sure this is always needed and not just for v4l2 support?
And probably only with WITH_LIBV4L. And in that case you also need to
select V4L_UTILS_LIBV4L2.
For embedded use cases it often makes sense to explicitly not use libv4l,
because the colorspace conversions in software add unexpected overhead, so
this should be a separate option (see GST_PLUGINS_GOOD1_GST_V4L2_LIBV4L2).
> + help
> + Open Source Computer Vision Library
> +
> +if OPENCV
> +
> +config OPENCV_CALIB3D
> + bool
> + prompt "calib3d"
> + select OPENCV_FEATURES2D
> + help
> + Camera Calibration and 3D Reconstruction
> +
> +config OPENCV_CONTRIB
> + bool
> + prompt "contrib"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_ML
> + select OPENCV_OBJDETECT
> + select OPENCV_VIDEO
> + help
> + Contributed/Experimental Stuff
> +
> +config OPENCV_FEATURES2D
> + bool
> + prompt "features2d"
> + select OPENCV_FLANN
> + select OPENCV_IMGPROC
> + help
> + 2D Features Framework
> +
> +config OPENCV_FLANN
> + bool
> + prompt "flann"
> + help
> + Clustering and Search in Multi-Dimensional Spaces
> +
> +config OPENCV_GPU
> + bool
> + prompt "gpu"
> + select OPENCV_LEGACY
> + select OPENCV_PHOTO
> + select OPENCV_OBJDETECT
> + help
> + GPU-accelerated Computer Vision
> +
> +config OPENCV_HIGHGUI
> + bool
> + prompt "highgui"
> + select OPENCV_IMGPROC
> + help
> + High-level GUI and Media I/O
> +
> +config OPENCV_IMGPROC
> + bool
> + prompt "imgproc"
> + help
> + Image Processing
> +
> +config OPENCV_LEGACY
> + bool
> + prompt "legacy"
> + select OPENCV_CALIB3D
> + select OPENCV_ML
> + select OPENCV_VIDEO
> + help
> + Deprecated stuff
> +
> +config OPENCV_ML
> + bool
> + prompt "ml"
> + help
> + Machine Learning
> +
> +config OPENCV_NONFREE
> + bool
> + prompt "nonfree"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_FEATURES2D
> + help
> + Non-free functionality
> +
> +config OPENCV_OBJDETECT
> + bool
> + prompt "objdetect"
> + select OPENCV_IMGPROC
> + help
> + Object Detection
> +
> +config OPENCV_PHOTO
> + bool
> + prompt "photo"
> + select OPENCV_IMGPROC
> + help
> + Computational Photography
> +
> +config OPENCV_STITCHING
> + bool
> + prompt "stitching"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_OBJDETECT
> + help
> + Images stitching
> +
> +config OPENCV_SUPERRES
> + bool
> + prompt "superres"
> + select OPENCV_IMGPROC
> + select OPENCV_VIDEO
> + help
> + Super Resolution
> +
> +config OPENCV_VIDEO
> + bool
> + prompt "video"
> + select OPENCV_IMGPROC
> + help
> + Video Analysis
> +
> +config OPENCV_VIDEOSTAB
> + bool
> + prompt "videostab"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_HIGHGUI
> + select OPENCV_OBJDETECT
> + select OPENCV_PHOTO
> + select OPENCV_VIDEO
> + help
> + Video Stabilization
> +
> +config OPENCV_GSTREAMER
> + bool
> + prompt "gstreamer"
> + select GSTREAMER
This must be
select GSTREAMER if OPENCV_GSTREAMER
in the main option. Otherwise it wont work.
> + help
> + Gstreamer Support
> +
> +config OPENCV_V4L
> + bool
> + prompt "v4l"
> + select OPENCV_VIDEO
> + help
> + Video4Linux Support
> +
> +config OPENCV_QT
> + bool
> + prompt "qt"
> + select QT4
> + select QT4_BUILD_QTESTLIB
> + select QT4_BUILD_GUI
> + select QT4_STL
Here as well
> + help
> + QT GUI Support
> +endif
> diff --git a/rules/opencv.make b/rules/opencv.make
> new file mode 100644
> index 0000000..ce72f16
> --- /dev/null
> +++ b/rules/opencv.make
> @@ -0,0 +1,193 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
> +# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
> +# loosely based on work by Roman Dosek <formatsh@gmail.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_OPENCV) += opencv
> +
> +#
> +# Paths and names
> +#
> +
> +OPENCV_VERSION := 2.4.8
> +OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
> +OPENCV := opencv-$(OPENCV_VERSION)
> +OPENCV_SUFFIX := zip
> +OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
> +OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
> +OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
> +OPENCV_LICENSE := BSD
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +OPENCV_CONF_TOOL := cmake
> +
> +OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
> +OPENCV_CONF_OPT += \
> + -DANT_EXECUTABLE:FILEPATH= \
> + -DPYTHON_EXECUTABLE= \
> + -DBUILD_DOCS:BOOL=OFF \
> + -DBUILD_EXAMPLES:BOOL=OFF \
> + -DBUILD_PACKAGE:BOOL=OFF \
> + -DCMAKE_BUILD_TYPE=Release \
> + -DBUILD_SHARED_LIBS:BOOL=ON \
> + -DBUILD_TESTS=OFF \
> + -DBUILD_PERF_TESTS=OFF \
> + -DBUILD_WITH_DEBUG_INFO=OFF \
> + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
> + -DCMAKE_SKIP_RPATH=OFF \
> + -DCMAKE_USE_RELATIVE_PATHS=OFF \
> + -DENABLE_FAST_MATH=ON \
> + -DENABLE_NOISY_WARNINGS=OFF \
> + -DENABLE_OMIT_FRAME_POINTER=ON \
> + -DENABLE_PRECOMPILED_HEADERS=OFF \
> + -DENABLE_PROFILING=OFF \
> + -DENABLE_SOLUTION_FOLDERS=OFF \
> + -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
> + -DWITH_GTK:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_TIFF:BOOL=OFF \
> + -DCMAKE_VERBOSE:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_EIGEN:BOOL=OFF \
> + -DENABLE_NEON:BOOL=OFF \
We have ARCH_ARM_NEON for that.
> + -DENABLE_VFPV3:BOOL=OFF \
> + -DWITH_GIGEAPI:BOOL=OFF \
> + -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
> + -DINSTALL_C_EXAMPLES:BOOL=OFF \
> + -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
> + -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
> + -DOPENCV_EXTRA_MODULES_PATH:PATH= \
> + -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_1394:BOOL=OFF \
> + -DWITH_CUBLAS:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_CUFFT:BOOL=OFF \
> + -DWITH_FFMPEG:BOOL=OFF \
> + -DWITH_JASPER:BOOL=OFF \
> + -DWITH_JPEG:BOOL=ON \
> + -DWITH_PNG:BOOL=ON \
> + -DWITH_NVCUVID:BOOL=OFF \
> + -DWITH_OPENCL:BOOL=OFF \
> + -DWITH_OPENCLAMDBLAS:BOOL=OFF \
> + -DWITH_OPENCLAMDFFT:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_OPENMP:BOOL=OFF \
> + -DWITH_OPENNI:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_UNICAP:BOOL=OFF \
> + -DWITH_XIMEA:BOOL=OFF \
> + -DWITH_XINE:BOOL=OFF \
> +
> +OPENCV_CONF_OPT += \
one option works just fine.
> + -DBUILD_opencv_apps:BOOL=OFF \
> + -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
> + -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
> + -DBUILD_opencv_core:BOOL=ON \
> + -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
> + -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
> + -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
> + -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
> + -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
> + -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
> + -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
> + -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
> + -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
> + -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
> + -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
> + -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
> + -DBUILD_opencv_ts:BOOL=OFF \
> + -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
> + -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
> + -DBUILD_opencv_world:BOOL=OFF \
> + -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
> + -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_OPENGL:BOOL=OFF \
> + -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,ON,OFF)
This should be "... ,4,OFF)". We don't have Qt5 right now, but this way it
is clear what to use.
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/opencv.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, opencv)
> + @$(call install_fixup, opencv, PRIORITY, optional)
> + @$(call install_fixup, opencv, SECTION, base)
> + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> + @$(call install_fixup, opencv, DESCRIPTION, missing)
> +
> +
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_core)
> +
Like Alex said, make this a list and install with foreach. The gst-plugins*
packages are also a good reference to see how it's done.
Michael
> +ifdef PTXCONF_OPENCV_CALIB3D
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_calib3d)
> +endif
> +ifdef PTXCONF_OPENCV_CONTRIB
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_contrib)
> +endif
> +ifdef PTXCONF_OPENCV_FEATURES2D
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_features2d)
> +endif
> +ifdef PTXCONF_OPENCV_FLANN
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_flann)
> +endif
> +ifdef PTXCONF_OPENCV_GPU
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_gpu)
> +endif
> +ifdef PTXCONF_OPENCV_HIGHGUI
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_highgui)
> +endif
> +ifdef PTXCONF_OPENCV_IMGPROC
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_imgproc)
> +endif
> +ifdef PTXCONF_OPENCV_LEGACY
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_legacy)
> +endif
> +ifdef PTXCONF_OPENCV_ML
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_ml)
> +endif
> +ifdef PTXCONF_OPENCV_NONFREE
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_nonfree)
> +endif
> +ifdef PTXCONF_OPENCV_OBJDETECT
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_objdetect)
> +endif
> +ifdef PTXCONF_OPENCV_PHOTO
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_photo)
> +endif
> +ifdef PTXCONF_OPENCV_STITCHING
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_stitching)
> +endif
> +ifdef PTXCONF_OPENCV_SUPERRES
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_superres)
> +endif
> +ifdef PTXCONF_OPENCV_VIDEO
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_video)
> +endif
> +ifdef PTXCONF_OPENCV_VIDEOSTAB
> + @$(call install_lib, opencv, 0, 0, 0644, libopencv_videostab)
> +endif
> +
> + @$(call install_finish, opencv)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 1.7.10.4
>
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH] opencv: add new package
2014-03-31 6:09 ` Alexander Aring
@ 2014-03-31 8:33 ` Juergen Beisert
2014-03-31 8:44 ` Alexander Aring
2014-03-31 9:00 ` Alexander Aring
0 siblings, 2 replies; 14+ messages in thread
From: Juergen Beisert @ 2014-03-31 8:33 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Aring, Jan Weitzel, Roman Dosek
On Monday 31 March 2014 08:09:23 Alexander Aring wrote:
> [...]
> > + @$(call install_init, opencv)
> > + @$(call install_fixup, opencv, PRIORITY, optional)
> > + @$(call install_fixup, opencv, SECTION, base)
> > + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> > + @$(call install_fixup, opencv, DESCRIPTION, missing)
>
> There is normally no whitespace in the lasts arguments:
> "opencv, PRIORITY, optional"
>
> should be:
>
> "opencv,PRIORITY,optional"
> [...]
Aarggh, please don't discuss about whitespace count.
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH] opencv: add new package
2014-03-31 8:33 ` Juergen Beisert
@ 2014-03-31 8:44 ` Alexander Aring
2014-03-31 9:00 ` Alexander Aring
1 sibling, 0 replies; 14+ messages in thread
From: Alexander Aring @ 2014-03-31 8:44 UTC (permalink / raw)
To: Juergen Beisert; +Cc: Jan Weitzel, ptxdist, Roman Dosek
On Mon, Mar 31, 2014 at 10:33:17AM +0200, Juergen Beisert wrote:
> On Monday 31 March 2014 08:09:23 Alexander Aring wrote:
> > [...]
> > > + @$(call install_init, opencv)
> > > + @$(call install_fixup, opencv, PRIORITY, optional)
> > > + @$(call install_fixup, opencv, SECTION, base)
> > > + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> > > + @$(call install_fixup, opencv, DESCRIPTION, missing)
> >
> > There is normally no whitespace in the lasts arguments:
> > "opencv, PRIORITY, optional"
> >
> > should be:
> >
> > "opencv,PRIORITY,optional"
> > [...]
>
> Aarggh, please don't discuss about whitespace count.
>
ok. :-)
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH] opencv: add new package
2014-03-31 8:33 ` Juergen Beisert
2014-03-31 8:44 ` Alexander Aring
@ 2014-03-31 9:00 ` Alexander Aring
1 sibling, 0 replies; 14+ messages in thread
From: Alexander Aring @ 2014-03-31 9:00 UTC (permalink / raw)
To: Juergen Beisert; +Cc: ptxdist, Roman Dosek
On Mon, Mar 31, 2014 at 10:33:17AM +0200, Juergen Beisert wrote:
> On Monday 31 March 2014 08:09:23 Alexander Aring wrote:
> > [...]
> > > + @$(call install_init, opencv)
> > > + @$(call install_fixup, opencv, PRIORITY, optional)
> > > + @$(call install_fixup, opencv, SECTION, base)
> > > + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> > > + @$(call install_fixup, opencv, DESCRIPTION, missing)
> >
> > There is normally no whitespace in the lasts arguments:
> > "opencv, PRIORITY, optional"
> >
> > should be:
> >
> > "opencv,PRIORITY,optional"
> > [...]
>
> Aarggh, please don't discuss about whitespace count.
>
I just realize there are some templates which have a whitespace and some
others which don't have a whitespace... I will not discuss now about why.
So then the rule was generated with "ptxdist newpackage", of course.
Sorry about that... :-)
but the whitespace issue in Kconfig should be fixed?
help
FIXME
to
help
FIXME
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [ptxdist] [PATCH v3] opencv: add new package
2014-03-31 7:45 ` Michael Olbrich
@ 2014-04-03 20:38 ` Christoph Fritz
2014-04-04 7:57 ` Alexander Aring
0 siblings, 1 reply; 14+ messages in thread
From: Christoph Fritz @ 2014-04-03 20:38 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
v2: use correct email of J.Weitzel
v3: - rework v4l usage
- fix gstreamer and qt4 dependency
- use foreach at install stage
---
rules/opencv.in | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++++
rules/opencv.make | 160 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 338 insertions(+)
create mode 100644 rules/opencv.in
create mode 100644 rules/opencv.make
diff --git a/rules/opencv.in b/rules/opencv.in
new file mode 100644
index 0000000..e424cd7
--- /dev/null
+++ b/rules/opencv.in
@@ -0,0 +1,178 @@
+## SECTION=multimedia_libs
+
+menuconfig OPENCV
+ tristate
+ prompt "opencv"
+ select HOST_CMAKE
+ select GCCLIBS_CXX
+ select ZLIB
+ select LIBPNG
+ select LIBJPEG
+ select QT4 if OPENCV_QT
+ select QT4_BUILD_QTESTLIB if OPENCV_QT
+ select QT4_BUILD_GUI if OPENCV_QT
+ select QT4_STL if OPENCV_QT
+ select GSTREAMER if OPENCV_GSTREAMER
+ select V4L_UTILS if OPENCV_V4L_LIBV4L2
+ select V4L_UTILS_LIBV4L2 if OPENCV_V4L_LIBV4L2
+ help
+ Open Source Computer Vision Library
+
+if OPENCV
+
+config OPENCV_CALIB3D
+ bool
+ prompt "calib3d"
+ select OPENCV_FEATURES2D
+ help
+ Camera Calibration and 3D Reconstruction
+
+config OPENCV_CONTRIB
+ bool
+ prompt "contrib"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_ML
+ select OPENCV_OBJDETECT
+ select OPENCV_VIDEO
+ help
+ Contributed/Experimental Stuff
+
+config OPENCV_FEATURES2D
+ bool
+ prompt "features2d"
+ select OPENCV_FLANN
+ select OPENCV_IMGPROC
+ help
+ 2D Features Framework
+
+config OPENCV_FLANN
+ bool
+ prompt "flann"
+ help
+ Clustering and Search in Multi-Dimensional Spaces
+
+config OPENCV_GPU
+ bool
+ prompt "gpu"
+ select OPENCV_LEGACY
+ select OPENCV_PHOTO
+ select OPENCV_OBJDETECT
+ help
+ GPU-accelerated Computer Vision
+
+config OPENCV_HIGHGUI
+ bool
+ prompt "highgui"
+ select OPENCV_IMGPROC
+ help
+ High-level GUI and Media I/O
+
+config OPENCV_IMGPROC
+ bool
+ prompt "imgproc"
+ help
+ Image Processing
+
+config OPENCV_LEGACY
+ bool
+ prompt "legacy"
+ select OPENCV_CALIB3D
+ select OPENCV_ML
+ select OPENCV_VIDEO
+ help
+ Deprecated stuff
+
+config OPENCV_ML
+ bool
+ prompt "ml"
+ help
+ Machine Learning
+
+config OPENCV_NONFREE
+ bool
+ prompt "nonfree"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_FEATURES2D
+ help
+ Non-free functionality
+
+config OPENCV_OBJDETECT
+ bool
+ prompt "objdetect"
+ select OPENCV_IMGPROC
+ help
+ Object Detection
+
+config OPENCV_PHOTO
+ bool
+ prompt "photo"
+ select OPENCV_IMGPROC
+ help
+ Computational Photography
+
+config OPENCV_STITCHING
+ bool
+ prompt "stitching"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_OBJDETECT
+ help
+ Images stitching
+
+config OPENCV_SUPERRES
+ bool
+ prompt "superres"
+ select OPENCV_IMGPROC
+ select OPENCV_VIDEO
+ help
+ Super Resolution
+
+config OPENCV_VIDEO
+ bool
+ prompt "video"
+ select OPENCV_IMGPROC
+ help
+ Video Analysis
+
+config OPENCV_VIDEOSTAB
+ bool
+ prompt "videostab"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_HIGHGUI
+ select OPENCV_OBJDETECT
+ select OPENCV_PHOTO
+ select OPENCV_VIDEO
+ help
+ Video Stabilization
+
+config OPENCV_GSTREAMER
+ bool
+ prompt "gstreamer"
+ help
+ Gstreamer Support
+
+config OPENCV_V4L
+ bool
+ prompt "v4l"
+ select OPENCV_VIDEO
+ help
+ Video4Linux Support
+
+config OPENCV_V4L_LIBV4L2
+ bool
+ prompt "libv4l2"
+ depends on OPENCV_V4L
+ help
+ For embedded use cases it often makes sense to explicitly not
+ use libv4l, because the colorspace conversions in software adds
+ unexpected overhead.
+
+config OPENCV_QT
+ bool
+ prompt "qt"
+ help
+ QT GUI Support
+endif
diff --git a/rules/opencv.make b/rules/opencv.make
new file mode 100644
index 0000000..a55b6f2
--- /dev/null
+++ b/rules/opencv.make
@@ -0,0 +1,160 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
+# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
+# loosely based on work by Roman Dosek <formatsh@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENCV) += opencv
+
+#
+# Paths and names
+#
+
+OPENCV_VERSION := 2.4.8
+OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
+OPENCV := opencv-$(OPENCV_VERSION)
+OPENCV_SUFFIX := zip
+OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
+OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
+OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
+OPENCV_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPENCV_CONF_TOOL := cmake
+
+OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
+OPENCV_CONF_OPT += \
+ -DANT_EXECUTABLE:FILEPATH= \
+ -DPYTHON_EXECUTABLE= \
+ -DBUILD_DOCS:BOOL=OFF \
+ -DBUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_PACKAGE:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_PERF_TESTS=OFF \
+ -DBUILD_WITH_DEBUG_INFO=OFF \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_USE_RELATIVE_PATHS=OFF \
+ -DENABLE_FAST_MATH=ON \
+ -DENABLE_NOISY_WARNINGS=OFF \
+ -DENABLE_OMIT_FRAME_POINTER=ON \
+ -DENABLE_PRECOMPILED_HEADERS=OFF \
+ -DENABLE_PROFILING=OFF \
+ -DENABLE_SOLUTION_FOLDERS=OFF \
+ -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
+ -DWITH_GTK:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_TIFF:BOOL=OFF \
+ -DCMAKE_VERBOSE:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_EIGEN:BOOL=OFF \
+ -DENABLE_NEON:BOOL=$(call ptx/ifdef,PTXCONF_ARCH_ARM_NEON,ON,OFF) \
+ -DENABLE_VFPV3:BOOL=OFF \
+ -DWITH_GIGEAPI:BOOL=OFF \
+ -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
+ -DINSTALL_C_EXAMPLES:BOOL=OFF \
+ -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
+ -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
+ -DOPENCV_EXTRA_MODULES_PATH:PATH= \
+ -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_1394:BOOL=OFF \
+ -DWITH_CUBLAS:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_CUFFT:BOOL=OFF \
+ -DWITH_FFMPEG:BOOL=OFF \
+ -DWITH_JASPER:BOOL=OFF \
+ -DWITH_JPEG:BOOL=ON \
+ -DWITH_PNG:BOOL=ON \
+ -DWITH_NVCUVID:BOOL=OFF \
+ -DWITH_OPENCL:BOOL=OFF \
+ -DWITH_OPENCLAMDBLAS:BOOL=OFF \
+ -DWITH_OPENCLAMDFFT:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_OPENMP:BOOL=OFF \
+ -DWITH_OPENNI:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_UNICAP:BOOL=OFF \
+ -DWITH_XIMEA:BOOL=OFF \
+ -DWITH_XINE:BOOL=OFF \
+ -DBUILD_opencv_apps:BOOL=OFF \
+ -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
+ -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
+ -DBUILD_opencv_core:BOOL=ON \
+ -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
+ -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
+ -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
+ -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
+ -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
+ -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
+ -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
+ -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
+ -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
+ -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
+ -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
+ -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
+ -DBUILD_opencv_ts:BOOL=OFF \
+ -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
+ -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
+ -DBUILD_opencv_world:BOOL=OFF \
+ -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
+ -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L_LIBV4L2,ON,OFF) \
+ -DWITH_OPENGL:BOOL=OFF \
+ -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,4,OFF)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+OPENCV_LIBS-$(PTXCONF_OPENCV) += libopencv_core
+OPENCV_LIBS-$(PTXCONF_OPENCV_CALIB3D) += libopencv_calib3d
+OPENCV_LIBS-$(PTXCONF_OPENCV_CONTRIB) += libopencv_contrib
+OPENCV_LIBS-$(PTXCONF_OPENCV_FEATURES2D) += libopencv_features2d
+OPENCV_LIBS-$(PTXCONF_OPENCV_FLANN) += libopencv_flann
+OPENCV_LIBS-$(PTXCONF_OPENCV_GPU) += libopencv_gpu
+OPENCV_LIBS-$(PTXCONF_OPENCV_HIGHGUI) += libopencv_highgui
+OPENCV_LIBS-$(PTXCONF_OPENCV_IMGPROC) += libopencv_imgproc
+OPENCV_LIBS-$(PTXCONF_OPENCV_LEGACY) += libopencv_legacy
+OPENCV_LIBS-$(PTXCONF_OPENCV_ML) += libopencv_ml
+OPENCV_LIBS-$(PTXCONF_OPENCV_NONFREE) += libopencv_nonfree
+OPENCV_LIBS-$(PTXCONF_OPENCV_OBJDETECT) += libopencv_objdetect
+OPENCV_LIBS-$(PTXCONF_OPENCV_PHOTO) += libopencv_photo
+OPENCV_LIBS-$(PTXCONF_OPENCV_STITCHING) += libopencv_stitching
+OPENCV_LIBS-$(PTXCONF_OPENCV_SUPERRES) += libopencv_superres
+OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEO) += libopencv_video
+OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEOSTAB) += libopencv_videostab
+
+$(STATEDIR)/opencv.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, opencv)
+ @$(call install_fixup, opencv, PRIORITY, optional)
+ @$(call install_fixup, opencv, SECTION, base)
+ @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
+ @$(call install_fixup, opencv, DESCRIPTION, missing)
+
+ @$(foreach lib, $(OPENCV_LIBS-y), \
+ $(call install_lib, opencv, 0, 0, 0644, $(lib));)
+
+ @$(call install_finish, opencv)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH v3] opencv: add new package
2014-04-03 20:38 ` [ptxdist] [PATCH v3] " Christoph Fritz
@ 2014-04-04 7:57 ` Alexander Aring
2014-04-04 9:19 ` Juergen Beisert
2014-04-04 9:21 ` [ptxdist] [PATCH v4] " Christoph Fritz
0 siblings, 2 replies; 14+ messages in thread
From: Alexander Aring @ 2014-04-04 7:57 UTC (permalink / raw)
To: ptxdist
Hi,
On Thu, Apr 03, 2014 at 10:38:05PM +0200, Christoph Fritz wrote:
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> v2: use correct email of J.Weitzel
> v3: - rework v4l usage
> - fix gstreamer and qt4 dependency
> - use foreach at install stage
> ---
> rules/opencv.in | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> rules/opencv.make | 160 +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 338 insertions(+)
> create mode 100644 rules/opencv.in
> create mode 100644 rules/opencv.make
>
> diff --git a/rules/opencv.in b/rules/opencv.in
> new file mode 100644
> index 0000000..e424cd7
> --- /dev/null
> +++ b/rules/opencv.in
> @@ -0,0 +1,178 @@
> +## SECTION=multimedia_libs
> +
> +menuconfig OPENCV
> + tristate
> + prompt "opencv"
> + select HOST_CMAKE
> + select GCCLIBS_CXX
> + select ZLIB
> + select LIBPNG
> + select LIBJPEG
> + select QT4 if OPENCV_QT
> + select QT4_BUILD_QTESTLIB if OPENCV_QT
> + select QT4_BUILD_GUI if OPENCV_QT
> + select QT4_STL if OPENCV_QT
> + select GSTREAMER if OPENCV_GSTREAMER
> + select V4L_UTILS if OPENCV_V4L_LIBV4L2
> + select V4L_UTILS_LIBV4L2 if OPENCV_V4L_LIBV4L2
> + help
> + Open Source Computer Vision Library
> +
> +if OPENCV
> +
> +config OPENCV_CALIB3D
> + bool
> + prompt "calib3d"
> + select OPENCV_FEATURES2D
> + help
> + Camera Calibration and 3D Reconstruction
> +
> +config OPENCV_CONTRIB
> + bool
> + prompt "contrib"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_ML
> + select OPENCV_OBJDETECT
> + select OPENCV_VIDEO
> + help
> + Contributed/Experimental Stuff
> +
> +config OPENCV_FEATURES2D
> + bool
> + prompt "features2d"
> + select OPENCV_FLANN
> + select OPENCV_IMGPROC
> + help
> + 2D Features Framework
> +
> +config OPENCV_FLANN
> + bool
> + prompt "flann"
> + help
> + Clustering and Search in Multi-Dimensional Spaces
> +
> +config OPENCV_GPU
> + bool
> + prompt "gpu"
> + select OPENCV_LEGACY
> + select OPENCV_PHOTO
> + select OPENCV_OBJDETECT
> + help
> + GPU-accelerated Computer Vision
> +
> +config OPENCV_HIGHGUI
> + bool
> + prompt "highgui"
> + select OPENCV_IMGPROC
> + help
> + High-level GUI and Media I/O
> +
> +config OPENCV_IMGPROC
> + bool
> + prompt "imgproc"
> + help
> + Image Processing
> +
> +config OPENCV_LEGACY
> + bool
> + prompt "legacy"
> + select OPENCV_CALIB3D
> + select OPENCV_ML
> + select OPENCV_VIDEO
> + help
> + Deprecated stuff
> +
> +config OPENCV_ML
> + bool
> + prompt "ml"
> + help
> + Machine Learning
> +
> +config OPENCV_NONFREE
> + bool
> + prompt "nonfree"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_FEATURES2D
> + help
> + Non-free functionality
> +
> +config OPENCV_OBJDETECT
> + bool
> + prompt "objdetect"
> + select OPENCV_IMGPROC
> + help
> + Object Detection
> +
> +config OPENCV_PHOTO
> + bool
> + prompt "photo"
> + select OPENCV_IMGPROC
> + help
> + Computational Photography
> +
> +config OPENCV_STITCHING
> + bool
> + prompt "stitching"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_OBJDETECT
> + help
> + Images stitching
> +
> +config OPENCV_SUPERRES
> + bool
> + prompt "superres"
> + select OPENCV_IMGPROC
> + select OPENCV_VIDEO
> + help
> + Super Resolution
> +
> +config OPENCV_VIDEO
> + bool
> + prompt "video"
> + select OPENCV_IMGPROC
> + help
> + Video Analysis
> +
> +config OPENCV_VIDEOSTAB
> + bool
> + prompt "videostab"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_HIGHGUI
> + select OPENCV_OBJDETECT
> + select OPENCV_PHOTO
> + select OPENCV_VIDEO
> + help
> + Video Stabilization
> +
> +config OPENCV_GSTREAMER
> + bool
> + prompt "gstreamer"
> + help
> + Gstreamer Support
> +
> +config OPENCV_V4L
> + bool
> + prompt "v4l"
> + select OPENCV_VIDEO
> + help
> + Video4Linux Support
> +
> +config OPENCV_V4L_LIBV4L2
> + bool
> + prompt "libv4l2"
> + depends on OPENCV_V4L
> + help
> + For embedded use cases it often makes sense to explicitly not
> + use libv4l, because the colorspace conversions in software adds
> + unexpected overhead.
> +
> +config OPENCV_QT
> + bool
> + prompt "qt"
> + help
> + QT GUI Support
"we usually have an empty line here." \cite{mol}
> +endif
> diff --git a/rules/opencv.make b/rules/opencv.make
> new file mode 100644
> index 0000000..a55b6f2
> --- /dev/null
> +++ b/rules/opencv.make
> @@ -0,0 +1,160 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
> +# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
> +# loosely based on work by Roman Dosek <formatsh@gmail.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_OPENCV) += opencv
> +
> +#
> +# Paths and names
> +#
> +
> +OPENCV_VERSION := 2.4.8
> +OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
> +OPENCV := opencv-$(OPENCV_VERSION)
> +OPENCV_SUFFIX := zip
> +OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
> +OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
> +OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
> +OPENCV_LICENSE := BSD
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +OPENCV_CONF_TOOL := cmake
> +
> +OPENCV_CONF_OPT := $(CROSS_CMAKE_USR)
> +OPENCV_CONF_OPT += \
why not
PENCV_CONF_OPT := \
$(CROSS_CMAKE_USR) \
...
?
> + -DANT_EXECUTABLE:FILEPATH= \
> + -DPYTHON_EXECUTABLE= \
> + -DBUILD_DOCS:BOOL=OFF \
> + -DBUILD_EXAMPLES:BOOL=OFF \
> + -DBUILD_PACKAGE:BOOL=OFF \
> + -DCMAKE_BUILD_TYPE=Release \
> + -DBUILD_SHARED_LIBS:BOOL=ON \
> + -DBUILD_TESTS=OFF \
> + -DBUILD_PERF_TESTS=OFF \
> + -DBUILD_WITH_DEBUG_INFO=OFF \
> + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
> + -DCMAKE_SKIP_RPATH=OFF \
> + -DCMAKE_USE_RELATIVE_PATHS=OFF \
> + -DENABLE_FAST_MATH=ON \
> + -DENABLE_NOISY_WARNINGS=OFF \
> + -DENABLE_OMIT_FRAME_POINTER=ON \
> + -DENABLE_PRECOMPILED_HEADERS=OFF \
> + -DENABLE_PROFILING=OFF \
> + -DENABLE_SOLUTION_FOLDERS=OFF \
> + -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
> + -DWITH_GTK:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_TIFF:BOOL=OFF \
> + -DCMAKE_VERBOSE:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_EIGEN:BOOL=OFF \
> + -DENABLE_NEON:BOOL=$(call ptx/ifdef,PTXCONF_ARCH_ARM_NEON,ON,OFF) \
> + -DENABLE_VFPV3:BOOL=OFF \
> + -DWITH_GIGEAPI:BOOL=OFF \
> + -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
> + -DINSTALL_C_EXAMPLES:BOOL=OFF \
> + -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
> + -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
> + -DOPENCV_EXTRA_MODULES_PATH:PATH= \
> + -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_1394:BOOL=OFF \
> + -DWITH_CUBLAS:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_CUFFT:BOOL=OFF \
> + -DWITH_FFMPEG:BOOL=OFF \
> + -DWITH_JASPER:BOOL=OFF \
> + -DWITH_JPEG:BOOL=ON \
> + -DWITH_PNG:BOOL=ON \
> + -DWITH_NVCUVID:BOOL=OFF \
> + -DWITH_OPENCL:BOOL=OFF \
> + -DWITH_OPENCLAMDBLAS:BOOL=OFF \
> + -DWITH_OPENCLAMDFFT:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_OPENMP:BOOL=OFF \
> + -DWITH_OPENNI:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_UNICAP:BOOL=OFF \
> + -DWITH_XIMEA:BOOL=OFF \
> + -DWITH_XINE:BOOL=OFF \
> + -DBUILD_opencv_apps:BOOL=OFF \
> + -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
> + -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
> + -DBUILD_opencv_core:BOOL=ON \
> + -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
> + -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
> + -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
> + -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
> + -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
> + -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
> + -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
> + -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
> + -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
> + -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
> + -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
> + -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
> + -DBUILD_opencv_ts:BOOL=OFF \
> + -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
> + -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
> + -DBUILD_opencv_world:BOOL=OFF \
> + -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
> + -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L_LIBV4L2,ON,OFF) \
> + -DWITH_OPENGL:BOOL=OFF \
> + -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,4,OFF)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +OPENCV_LIBS-$(PTXCONF_OPENCV) += libopencv_core
I am not sure about this but I think it can be some trouble if you don't
init OPENCV_LIBS to zero at begin.
You need to have something like:
OPENCV_LIBS-y =
OPENCV_LIBS-$(PTXCONF_OPENCV) += libopencv_core
... += ...
...
or
OPENCV_LIBS-$(PTXCONF_OPENCV) = libopencv_core
... += ...
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH v3] opencv: add new package
2014-04-04 7:57 ` Alexander Aring
@ 2014-04-04 9:19 ` Juergen Beisert
2014-04-04 9:21 ` [ptxdist] [PATCH v4] " Christoph Fritz
1 sibling, 0 replies; 14+ messages in thread
From: Juergen Beisert @ 2014-04-04 9:19 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Aring
On Friday 04 April 2014 09:57:57 Alexander Aring wrote:
> [...]
> > +config OPENCV_QT
> > + bool
> > + prompt "qt"
> > + help
> > + QT GUI Support
>
> "we usually have an empty line here." \cite{mol}
m( !
;) !!
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* [ptxdist] [PATCH v4] opencv: add new package
2014-04-04 7:57 ` Alexander Aring
2014-04-04 9:19 ` Juergen Beisert
@ 2014-04-04 9:21 ` Christoph Fritz
2014-04-04 9:57 ` Michael Olbrich
1 sibling, 1 reply; 14+ messages in thread
From: Christoph Fritz @ 2014-04-04 9:21 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
v2: use correct email of J.Weitzel
v3: - rework v4l usage
- fix gstreamer and qt4 dependency
- use foreach at install stage
v4: - add empty line after OPENCV_QT-help
- concatenate OPENCV_CONF_OPT
- tigthen init of OPENCV_LIBS-y
---
rules/opencv.in | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++
rules/opencv.make | 160 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 339 insertions(+)
create mode 100644 rules/opencv.in
create mode 100644 rules/opencv.make
diff --git a/rules/opencv.in b/rules/opencv.in
new file mode 100644
index 0000000..0084006
--- /dev/null
+++ b/rules/opencv.in
@@ -0,0 +1,179 @@
+## SECTION=multimedia_libs
+
+menuconfig OPENCV
+ tristate
+ prompt "opencv"
+ select HOST_CMAKE
+ select GCCLIBS_CXX
+ select ZLIB
+ select LIBPNG
+ select LIBJPEG
+ select QT4 if OPENCV_QT
+ select QT4_BUILD_QTESTLIB if OPENCV_QT
+ select QT4_BUILD_GUI if OPENCV_QT
+ select QT4_STL if OPENCV_QT
+ select GSTREAMER if OPENCV_GSTREAMER
+ select V4L_UTILS if OPENCV_V4L_LIBV4L2
+ select V4L_UTILS_LIBV4L2 if OPENCV_V4L_LIBV4L2
+ help
+ Open Source Computer Vision Library
+
+if OPENCV
+
+config OPENCV_CALIB3D
+ bool
+ prompt "calib3d"
+ select OPENCV_FEATURES2D
+ help
+ Camera Calibration and 3D Reconstruction
+
+config OPENCV_CONTRIB
+ bool
+ prompt "contrib"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_ML
+ select OPENCV_OBJDETECT
+ select OPENCV_VIDEO
+ help
+ Contributed/Experimental Stuff
+
+config OPENCV_FEATURES2D
+ bool
+ prompt "features2d"
+ select OPENCV_FLANN
+ select OPENCV_IMGPROC
+ help
+ 2D Features Framework
+
+config OPENCV_FLANN
+ bool
+ prompt "flann"
+ help
+ Clustering and Search in Multi-Dimensional Spaces
+
+config OPENCV_GPU
+ bool
+ prompt "gpu"
+ select OPENCV_LEGACY
+ select OPENCV_PHOTO
+ select OPENCV_OBJDETECT
+ help
+ GPU-accelerated Computer Vision
+
+config OPENCV_HIGHGUI
+ bool
+ prompt "highgui"
+ select OPENCV_IMGPROC
+ help
+ High-level GUI and Media I/O
+
+config OPENCV_IMGPROC
+ bool
+ prompt "imgproc"
+ help
+ Image Processing
+
+config OPENCV_LEGACY
+ bool
+ prompt "legacy"
+ select OPENCV_CALIB3D
+ select OPENCV_ML
+ select OPENCV_VIDEO
+ help
+ Deprecated stuff
+
+config OPENCV_ML
+ bool
+ prompt "ml"
+ help
+ Machine Learning
+
+config OPENCV_NONFREE
+ bool
+ prompt "nonfree"
+ select OPENCV_CALIB3D
+ select OPENCV_IMGPROC
+ select OPENCV_FEATURES2D
+ help
+ Non-free functionality
+
+config OPENCV_OBJDETECT
+ bool
+ prompt "objdetect"
+ select OPENCV_IMGPROC
+ help
+ Object Detection
+
+config OPENCV_PHOTO
+ bool
+ prompt "photo"
+ select OPENCV_IMGPROC
+ help
+ Computational Photography
+
+config OPENCV_STITCHING
+ bool
+ prompt "stitching"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_OBJDETECT
+ help
+ Images stitching
+
+config OPENCV_SUPERRES
+ bool
+ prompt "superres"
+ select OPENCV_IMGPROC
+ select OPENCV_VIDEO
+ help
+ Super Resolution
+
+config OPENCV_VIDEO
+ bool
+ prompt "video"
+ select OPENCV_IMGPROC
+ help
+ Video Analysis
+
+config OPENCV_VIDEOSTAB
+ bool
+ prompt "videostab"
+ select OPENCV_CALIB3D
+ select OPENCV_FEATURES2D
+ select OPENCV_HIGHGUI
+ select OPENCV_OBJDETECT
+ select OPENCV_PHOTO
+ select OPENCV_VIDEO
+ help
+ Video Stabilization
+
+config OPENCV_GSTREAMER
+ bool
+ prompt "gstreamer"
+ help
+ Gstreamer Support
+
+config OPENCV_V4L
+ bool
+ prompt "v4l"
+ select OPENCV_VIDEO
+ help
+ Video4Linux Support
+
+config OPENCV_V4L_LIBV4L2
+ bool
+ prompt "libv4l2"
+ depends on OPENCV_V4L
+ help
+ For embedded use cases it often makes sense to explicitly not
+ use libv4l, because the colorspace conversions in software adds
+ unexpected overhead.
+
+config OPENCV_QT
+ bool
+ prompt "qt"
+ help
+ QT GUI Support
+
+endif
diff --git a/rules/opencv.make b/rules/opencv.make
new file mode 100644
index 0000000..8136a08
--- /dev/null
+++ b/rules/opencv.make
@@ -0,0 +1,160 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
+# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
+# loosely based on work by Roman Dosek <formatsh@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENCV) += opencv
+
+#
+# Paths and names
+#
+
+OPENCV_VERSION := 2.4.8
+OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
+OPENCV := opencv-$(OPENCV_VERSION)
+OPENCV_SUFFIX := zip
+OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
+OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
+OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
+OPENCV_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPENCV_CONF_TOOL := cmake
+
+OPENCV_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -DANT_EXECUTABLE:FILEPATH= \
+ -DPYTHON_EXECUTABLE= \
+ -DBUILD_DOCS:BOOL=OFF \
+ -DBUILD_EXAMPLES:BOOL=OFF \
+ -DBUILD_PACKAGE:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_PERF_TESTS=OFF \
+ -DBUILD_WITH_DEBUG_INFO=OFF \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_USE_RELATIVE_PATHS=OFF \
+ -DENABLE_FAST_MATH=ON \
+ -DENABLE_NOISY_WARNINGS=OFF \
+ -DENABLE_OMIT_FRAME_POINTER=ON \
+ -DENABLE_PRECOMPILED_HEADERS=OFF \
+ -DENABLE_PROFILING=OFF \
+ -DENABLE_SOLUTION_FOLDERS=OFF \
+ -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
+ -DWITH_GTK:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_TIFF:BOOL=OFF \
+ -DCMAKE_VERBOSE:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_EIGEN:BOOL=OFF \
+ -DENABLE_NEON:BOOL=$(call ptx/ifdef,PTXCONF_ARCH_ARM_NEON,ON,OFF) \
+ -DENABLE_VFPV3:BOOL=OFF \
+ -DWITH_GIGEAPI:BOOL=OFF \
+ -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
+ -DINSTALL_C_EXAMPLES:BOOL=OFF \
+ -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
+ -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
+ -DOPENCV_EXTRA_MODULES_PATH:PATH= \
+ -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_1394:BOOL=OFF \
+ -DWITH_CUBLAS:BOOL=OFF \
+ -DWITH_CUDA:BOOL=OFF \
+ -DWITH_CUFFT:BOOL=OFF \
+ -DWITH_FFMPEG:BOOL=OFF \
+ -DWITH_JASPER:BOOL=OFF \
+ -DWITH_JPEG:BOOL=ON \
+ -DWITH_PNG:BOOL=ON \
+ -DWITH_NVCUVID:BOOL=OFF \
+ -DWITH_OPENCL:BOOL=OFF \
+ -DWITH_OPENCLAMDBLAS:BOOL=OFF \
+ -DWITH_OPENCLAMDFFT:BOOL=OFF \
+ -DWITH_OPENEXR:BOOL=OFF \
+ -DWITH_OPENMP:BOOL=OFF \
+ -DWITH_OPENNI:BOOL=OFF \
+ -DWITH_PVAPI:BOOL=OFF \
+ -DWITH_TBB:BOOL=OFF \
+ -DWITH_UNICAP:BOOL=OFF \
+ -DWITH_XIMEA:BOOL=OFF \
+ -DWITH_XINE:BOOL=OFF \
+ -DBUILD_opencv_apps:BOOL=OFF \
+ -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
+ -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
+ -DBUILD_opencv_core:BOOL=ON \
+ -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
+ -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
+ -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
+ -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
+ -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
+ -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
+ -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
+ -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
+ -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
+ -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
+ -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
+ -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
+ -DBUILD_opencv_ts:BOOL=OFF \
+ -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
+ -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
+ -DBUILD_opencv_world:BOOL=OFF \
+ -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
+ -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
+ -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L_LIBV4L2,ON,OFF) \
+ -DWITH_OPENGL:BOOL=OFF \
+ -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,4,OFF)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+OPENCV_LIBS-$(PTXCONF_OPENCV) = libopencv_core
+OPENCV_LIBS-$(PTXCONF_OPENCV_CALIB3D) += libopencv_calib3d
+OPENCV_LIBS-$(PTXCONF_OPENCV_CONTRIB) += libopencv_contrib
+OPENCV_LIBS-$(PTXCONF_OPENCV_FEATURES2D) += libopencv_features2d
+OPENCV_LIBS-$(PTXCONF_OPENCV_FLANN) += libopencv_flann
+OPENCV_LIBS-$(PTXCONF_OPENCV_GPU) += libopencv_gpu
+OPENCV_LIBS-$(PTXCONF_OPENCV_HIGHGUI) += libopencv_highgui
+OPENCV_LIBS-$(PTXCONF_OPENCV_IMGPROC) += libopencv_imgproc
+OPENCV_LIBS-$(PTXCONF_OPENCV_LEGACY) += libopencv_legacy
+OPENCV_LIBS-$(PTXCONF_OPENCV_ML) += libopencv_ml
+OPENCV_LIBS-$(PTXCONF_OPENCV_NONFREE) += libopencv_nonfree
+OPENCV_LIBS-$(PTXCONF_OPENCV_OBJDETECT) += libopencv_objdetect
+OPENCV_LIBS-$(PTXCONF_OPENCV_PHOTO) += libopencv_photo
+OPENCV_LIBS-$(PTXCONF_OPENCV_STITCHING) += libopencv_stitching
+OPENCV_LIBS-$(PTXCONF_OPENCV_SUPERRES) += libopencv_superres
+OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEO) += libopencv_video
+OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEOSTAB) += libopencv_videostab
+
+$(STATEDIR)/opencv.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, opencv)
+ @$(call install_fixup, opencv, PRIORITY, optional)
+ @$(call install_fixup, opencv, SECTION, base)
+ @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
+ @$(call install_fixup, opencv, DESCRIPTION, missing)
+
+ @$(foreach lib, $(OPENCV_LIBS-y), \
+ $(call install_lib, opencv, 0, 0, 0644, $(lib));)
+
+ @$(call install_finish, opencv)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ptxdist] [PATCH v4] opencv: add new package
2014-04-04 9:21 ` [ptxdist] [PATCH v4] " Christoph Fritz
@ 2014-04-04 9:57 ` Michael Olbrich
0 siblings, 0 replies; 14+ messages in thread
From: Michael Olbrich @ 2014-04-04 9:57 UTC (permalink / raw)
To: ptxdist
On Fri, Apr 04, 2014 at 11:21:13AM +0200, Christoph Fritz wrote:
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Thanks, applied.
Michael
> ---
> v2: use correct email of J.Weitzel
> v3: - rework v4l usage
> - fix gstreamer and qt4 dependency
> - use foreach at install stage
> v4: - add empty line after OPENCV_QT-help
> - concatenate OPENCV_CONF_OPT
> - tigthen init of OPENCV_LIBS-y
> ---
> rules/opencv.in | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> rules/opencv.make | 160 +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 339 insertions(+)
> create mode 100644 rules/opencv.in
> create mode 100644 rules/opencv.make
>
> diff --git a/rules/opencv.in b/rules/opencv.in
> new file mode 100644
> index 0000000..0084006
> --- /dev/null
> +++ b/rules/opencv.in
> @@ -0,0 +1,179 @@
> +## SECTION=multimedia_libs
> +
> +menuconfig OPENCV
> + tristate
> + prompt "opencv"
> + select HOST_CMAKE
> + select GCCLIBS_CXX
> + select ZLIB
> + select LIBPNG
> + select LIBJPEG
> + select QT4 if OPENCV_QT
> + select QT4_BUILD_QTESTLIB if OPENCV_QT
> + select QT4_BUILD_GUI if OPENCV_QT
> + select QT4_STL if OPENCV_QT
> + select GSTREAMER if OPENCV_GSTREAMER
> + select V4L_UTILS if OPENCV_V4L_LIBV4L2
> + select V4L_UTILS_LIBV4L2 if OPENCV_V4L_LIBV4L2
> + help
> + Open Source Computer Vision Library
> +
> +if OPENCV
> +
> +config OPENCV_CALIB3D
> + bool
> + prompt "calib3d"
> + select OPENCV_FEATURES2D
> + help
> + Camera Calibration and 3D Reconstruction
> +
> +config OPENCV_CONTRIB
> + bool
> + prompt "contrib"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_ML
> + select OPENCV_OBJDETECT
> + select OPENCV_VIDEO
> + help
> + Contributed/Experimental Stuff
> +
> +config OPENCV_FEATURES2D
> + bool
> + prompt "features2d"
> + select OPENCV_FLANN
> + select OPENCV_IMGPROC
> + help
> + 2D Features Framework
> +
> +config OPENCV_FLANN
> + bool
> + prompt "flann"
> + help
> + Clustering and Search in Multi-Dimensional Spaces
> +
> +config OPENCV_GPU
> + bool
> + prompt "gpu"
> + select OPENCV_LEGACY
> + select OPENCV_PHOTO
> + select OPENCV_OBJDETECT
> + help
> + GPU-accelerated Computer Vision
> +
> +config OPENCV_HIGHGUI
> + bool
> + prompt "highgui"
> + select OPENCV_IMGPROC
> + help
> + High-level GUI and Media I/O
> +
> +config OPENCV_IMGPROC
> + bool
> + prompt "imgproc"
> + help
> + Image Processing
> +
> +config OPENCV_LEGACY
> + bool
> + prompt "legacy"
> + select OPENCV_CALIB3D
> + select OPENCV_ML
> + select OPENCV_VIDEO
> + help
> + Deprecated stuff
> +
> +config OPENCV_ML
> + bool
> + prompt "ml"
> + help
> + Machine Learning
> +
> +config OPENCV_NONFREE
> + bool
> + prompt "nonfree"
> + select OPENCV_CALIB3D
> + select OPENCV_IMGPROC
> + select OPENCV_FEATURES2D
> + help
> + Non-free functionality
> +
> +config OPENCV_OBJDETECT
> + bool
> + prompt "objdetect"
> + select OPENCV_IMGPROC
> + help
> + Object Detection
> +
> +config OPENCV_PHOTO
> + bool
> + prompt "photo"
> + select OPENCV_IMGPROC
> + help
> + Computational Photography
> +
> +config OPENCV_STITCHING
> + bool
> + prompt "stitching"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_OBJDETECT
> + help
> + Images stitching
> +
> +config OPENCV_SUPERRES
> + bool
> + prompt "superres"
> + select OPENCV_IMGPROC
> + select OPENCV_VIDEO
> + help
> + Super Resolution
> +
> +config OPENCV_VIDEO
> + bool
> + prompt "video"
> + select OPENCV_IMGPROC
> + help
> + Video Analysis
> +
> +config OPENCV_VIDEOSTAB
> + bool
> + prompt "videostab"
> + select OPENCV_CALIB3D
> + select OPENCV_FEATURES2D
> + select OPENCV_HIGHGUI
> + select OPENCV_OBJDETECT
> + select OPENCV_PHOTO
> + select OPENCV_VIDEO
> + help
> + Video Stabilization
> +
> +config OPENCV_GSTREAMER
> + bool
> + prompt "gstreamer"
> + help
> + Gstreamer Support
> +
> +config OPENCV_V4L
> + bool
> + prompt "v4l"
> + select OPENCV_VIDEO
> + help
> + Video4Linux Support
> +
> +config OPENCV_V4L_LIBV4L2
> + bool
> + prompt "libv4l2"
> + depends on OPENCV_V4L
> + help
> + For embedded use cases it often makes sense to explicitly not
> + use libv4l, because the colorspace conversions in software adds
> + unexpected overhead.
> +
> +config OPENCV_QT
> + bool
> + prompt "qt"
> + help
> + QT GUI Support
> +
> +endif
> diff --git a/rules/opencv.make b/rules/opencv.make
> new file mode 100644
> index 0000000..8136a08
> --- /dev/null
> +++ b/rules/opencv.make
> @@ -0,0 +1,160 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Christoph Fritz <chf.fritz@googlemail.com>
> +# Copyright (C) 2013 by Jan Weitzel <J.Weitzel@phytec.de>
> +# loosely based on work by Roman Dosek <formatsh@gmail.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_OPENCV) += opencv
> +
> +#
> +# Paths and names
> +#
> +
> +OPENCV_VERSION := 2.4.8
> +OPENCV_MD5 := 50cc1433b3654074206f5b3dbfd49848
> +OPENCV := opencv-$(OPENCV_VERSION)
> +OPENCV_SUFFIX := zip
> +OPENCV_URL := $(call ptx/mirror, SF, opencvlibrary/opencv-unix/$(OPENCV_VERSION)/$(OPENCV).$(OPENCV_SUFFIX))
> +OPENCV_SOURCE := $(SRCDIR)/$(OPENCV).$(OPENCV_SUFFIX)
> +OPENCV_DIR := $(BUILDDIR)/$(OPENCV)
> +OPENCV_LICENSE := BSD
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +OPENCV_CONF_TOOL := cmake
> +
> +OPENCV_CONF_OPT := \
> + $(CROSS_CMAKE_USR) \
> + -DANT_EXECUTABLE:FILEPATH= \
> + -DPYTHON_EXECUTABLE= \
> + -DBUILD_DOCS:BOOL=OFF \
> + -DBUILD_EXAMPLES:BOOL=OFF \
> + -DBUILD_PACKAGE:BOOL=OFF \
> + -DCMAKE_BUILD_TYPE=Release \
> + -DBUILD_SHARED_LIBS:BOOL=ON \
> + -DBUILD_TESTS=OFF \
> + -DBUILD_PERF_TESTS=OFF \
> + -DBUILD_WITH_DEBUG_INFO=OFF \
> + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
> + -DCMAKE_SKIP_RPATH=OFF \
> + -DCMAKE_USE_RELATIVE_PATHS=OFF \
> + -DENABLE_FAST_MATH=ON \
> + -DENABLE_NOISY_WARNINGS=OFF \
> + -DENABLE_OMIT_FRAME_POINTER=ON \
> + -DENABLE_PRECOMPILED_HEADERS=OFF \
> + -DENABLE_PROFILING=OFF \
> + -DENABLE_SOLUTION_FOLDERS=OFF \
> + -DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY=ON \
> + -DWITH_GTK:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_TIFF:BOOL=OFF \
> + -DCMAKE_VERBOSE:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_EIGEN:BOOL=OFF \
> + -DENABLE_NEON:BOOL=$(call ptx/ifdef,PTXCONF_ARCH_ARM_NEON,ON,OFF) \
> + -DENABLE_VFPV3:BOOL=OFF \
> + -DWITH_GIGEAPI:BOOL=OFF \
> + -DINSTALL_CREATE_DISTRIB:BOOL=OFF \
> + -DINSTALL_C_EXAMPLES:BOOL=OFF \
> + -DINSTALL_PYTHON_EXAMPLES:BOOL=OFF \
> + -DINSTALL_TO_MANGLED_PATHS:BOOL=OFF \
> + -DOPENCV_EXTRA_MODULES_PATH:PATH= \
> + -DOPENCV_WARNINGS_ARE_ERRORS:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_1394:BOOL=OFF \
> + -DWITH_CUBLAS:BOOL=OFF \
> + -DWITH_CUDA:BOOL=OFF \
> + -DWITH_CUFFT:BOOL=OFF \
> + -DWITH_FFMPEG:BOOL=OFF \
> + -DWITH_JASPER:BOOL=OFF \
> + -DWITH_JPEG:BOOL=ON \
> + -DWITH_PNG:BOOL=ON \
> + -DWITH_NVCUVID:BOOL=OFF \
> + -DWITH_OPENCL:BOOL=OFF \
> + -DWITH_OPENCLAMDBLAS:BOOL=OFF \
> + -DWITH_OPENCLAMDFFT:BOOL=OFF \
> + -DWITH_OPENEXR:BOOL=OFF \
> + -DWITH_OPENMP:BOOL=OFF \
> + -DWITH_OPENNI:BOOL=OFF \
> + -DWITH_PVAPI:BOOL=OFF \
> + -DWITH_TBB:BOOL=OFF \
> + -DWITH_UNICAP:BOOL=OFF \
> + -DWITH_XIMEA:BOOL=OFF \
> + -DWITH_XINE:BOOL=OFF \
> + -DBUILD_opencv_apps:BOOL=OFF \
> + -DBUILD_opencv_calib3d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CALIB3D,ON,OFF) \
> + -DBUILD_opencv_contrib:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_CONTRIB,ON,OFF) \
> + -DBUILD_opencv_core:BOOL=ON \
> + -DBUILD_opencv_features2d:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FEATURES2D,ON,OFF) \
> + -DBUILD_opencv_flann:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_FLANN,ON,OFF) \
> + -DBUILD_opencv_gpu:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GPU,ON,OFF) \
> + -DBUILD_opencv_highgui:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_HIGHGUI,ON,OFF) \
> + -DBUILD_opencv_imgproc:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_IMGPROC,ON,OFF) \
> + -DBUILD_opencv_legacy:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_LEGACY,ON,OFF) \
> + -DBUILD_opencv_ml:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_ML,ON,OFF) \
> + -DBUILD_opencv_nonfree:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_NONFREE,ON,OFF) \
> + -DBUILD_opencv_objdetect:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_OBJDETECT,ON,OFF) \
> + -DBUILD_opencv_photo:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_PHOTO,ON,OFF) \
> + -DBUILD_opencv_stitching:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_STITCHING,ON,OFF) \
> + -DBUILD_opencv_superres:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_SUPERRES,ON,OFF) \
> + -DBUILD_opencv_ts:BOOL=OFF \
> + -DBUILD_opencv_video:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEO,ON,OFF) \
> + -DBUILD_opencv_videostab:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_VIDEOSTAB,ON,OFF) \
> + -DBUILD_opencv_world:BOOL=OFF \
> + -DWITH_GSTREAMER:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_GSTREAMER,ON,OFF) \
> + -DWITH_V4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L,ON,OFF) \
> + -DWITH_LIBV4L:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_V4L_LIBV4L2,ON,OFF) \
> + -DWITH_OPENGL:BOOL=OFF \
> + -DWITH_QT:BOOL=$(call ptx/ifdef,PTXCONF_OPENCV_QT,4,OFF)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +OPENCV_LIBS-$(PTXCONF_OPENCV) = libopencv_core
> +OPENCV_LIBS-$(PTXCONF_OPENCV_CALIB3D) += libopencv_calib3d
> +OPENCV_LIBS-$(PTXCONF_OPENCV_CONTRIB) += libopencv_contrib
> +OPENCV_LIBS-$(PTXCONF_OPENCV_FEATURES2D) += libopencv_features2d
> +OPENCV_LIBS-$(PTXCONF_OPENCV_FLANN) += libopencv_flann
> +OPENCV_LIBS-$(PTXCONF_OPENCV_GPU) += libopencv_gpu
> +OPENCV_LIBS-$(PTXCONF_OPENCV_HIGHGUI) += libopencv_highgui
> +OPENCV_LIBS-$(PTXCONF_OPENCV_IMGPROC) += libopencv_imgproc
> +OPENCV_LIBS-$(PTXCONF_OPENCV_LEGACY) += libopencv_legacy
> +OPENCV_LIBS-$(PTXCONF_OPENCV_ML) += libopencv_ml
> +OPENCV_LIBS-$(PTXCONF_OPENCV_NONFREE) += libopencv_nonfree
> +OPENCV_LIBS-$(PTXCONF_OPENCV_OBJDETECT) += libopencv_objdetect
> +OPENCV_LIBS-$(PTXCONF_OPENCV_PHOTO) += libopencv_photo
> +OPENCV_LIBS-$(PTXCONF_OPENCV_STITCHING) += libopencv_stitching
> +OPENCV_LIBS-$(PTXCONF_OPENCV_SUPERRES) += libopencv_superres
> +OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEO) += libopencv_video
> +OPENCV_LIBS-$(PTXCONF_OPENCV_VIDEOSTAB) += libopencv_videostab
> +
> +$(STATEDIR)/opencv.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, opencv)
> + @$(call install_fixup, opencv, PRIORITY, optional)
> + @$(call install_fixup, opencv, SECTION, base)
> + @$(call install_fixup, opencv, AUTHOR, "Christoph Fritz <chf.fritz@googlemail.com>")
> + @$(call install_fixup, opencv, DESCRIPTION, missing)
> +
> + @$(foreach lib, $(OPENCV_LIBS-y), \
> + $(call install_lib, opencv, 0, 0, 0644, $(lib));)
> +
> + @$(call install_finish, opencv)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 1.7.10.4
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-04-04 9:57 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-29 18:41 [ptxdist] [PATCH] opencv: add new package Christoph Fritz
2014-03-29 18:49 ` [ptxdist] [PATCH v2] " Christoph Fritz
2014-03-31 6:11 ` Alexander Aring
2014-03-31 7:45 ` Michael Olbrich
2014-04-03 20:38 ` [ptxdist] [PATCH v3] " Christoph Fritz
2014-04-04 7:57 ` Alexander Aring
2014-04-04 9:19 ` Juergen Beisert
2014-04-04 9:21 ` [ptxdist] [PATCH v4] " Christoph Fritz
2014-04-04 9:57 ` Michael Olbrich
2014-03-31 6:02 ` [ptxdist] [PATCH] " Alexander Aring
2014-03-31 6:09 ` Alexander Aring
2014-03-31 8:33 ` Juergen Beisert
2014-03-31 8:44 ` Alexander Aring
2014-03-31 9:00 ` Alexander Aring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox