* [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies
@ 2016-04-18 20:17 Bernd Kuhls
2016-04-18 20:17 ` [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Bernd Kuhls @ 2016-04-18 20:17 UTC (permalink / raw)
To: buildroot
As stated by Samuel the opencv2 package lacks inter-module dependencies:
http://lists.busybox.net/pipermail/buildroot/2016-April/158902.html
This patch adds the necessary code for freeswitch's mod_cv to compile.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v3: add more dependencies
v2: initial release (Samuel)
package/opencv/Config.in | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/package/opencv/Config.in b/package/opencv/Config.in
index 8bc6c34..b563312 100644
--- a/package/opencv/Config.in
+++ b/package/opencv/Config.in
@@ -23,6 +23,13 @@ config BR2_PACKAGE_OPENCV_LIB_CALIB3D
config BR2_PACKAGE_OPENCV_LIB_CONTRIB
bool "contrib"
default y
+ # modules/contrib/CMakeLists.txt
+ select BR2_PACKAGE_OPENCV_LIB_CALIB3D
+ select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
+ select BR2_PACKAGE_OPENCV_LIB_IMGPROC
+ select BR2_PACKAGE_OPENCV_LIB_ML
+ select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
+ select BR2_PACKAGE_OPENCV_LIB_VIDEO
help
Include opencv_contrib module into the OpenCV build.
@@ -46,6 +53,8 @@ config BR2_PACKAGE_OPENCV_LIB_GPU
config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
bool "highgui"
default y
+ # modules/highgui/CMakeLists.txt
+ select BR2_PACKAGE_OPENCV_LIB_IMGPROC
help
Include opencv_highgui module into the OpenCV build.
@@ -58,6 +67,10 @@ config BR2_PACKAGE_OPENCV_LIB_IMGPROC
config BR2_PACKAGE_OPENCV_LIB_LEGACY
bool "legacy"
default y
+ # modules/legacy/CMakeLists.txt
+ select BR2_PACKAGE_OPENCV_LIB_CALIB3D
+ select BR2_PACKAGE_OPENCV_LIB_ML
+ select BR2_PACKAGE_OPENCV_LIB_VIDEO
help
Include opencv_legacy module into the OpenCV build.
@@ -75,6 +88,8 @@ config BR2_PACKAGE_OPENCV_LIB_NONFREE
config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
bool "objdetect"
default y
+ # modules/objdetect/CMakeLists.txt
+ select BR2_PACKAGE_OPENCV_LIB_IMGPROC
help
Include opencv_objdetect module into the OpenCV build.
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv
2016-04-18 20:17 [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Bernd Kuhls
@ 2016-04-18 20:17 ` Bernd Kuhls
2016-04-18 22:11 ` Samuel Martin
2016-04-18 21:28 ` [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Samuel Martin
2016-04-18 22:12 ` Thomas Petazzoni
2 siblings, 1 reply; 8+ messages in thread
From: Bernd Kuhls @ 2016-04-18 20:17 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/ffd/ffd572d7bb68d8ed46ce76b2af824503c587449f/
http://autobuild.buildroot.net/results/e53/e53e356451aa4541a76e26722fd71051896e774b/
http://autobuild.buildroot.net/results/564/5649ff1b50a1eaafbd0e1a329bff87a65ce18da0/
http://autobuild.buildroot.net/results/c60/c60f97c6aafb1a94cb4ce344953598eae8b4a912/
http://autobuild.buildroot.net/results/c1a/c1ac61f9a77635962babdb6bfb31dbecb7f4d439/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v3: add more suboptions
v2: select the required suboption instead of checking for its existance
in freeswitch.mk (Thomas)
package/freeswitch/Config.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
index 1350b2b..9b3f0fc 100644
--- a/package/freeswitch/Config.in
+++ b/package/freeswitch/Config.in
@@ -7,6 +7,11 @@ menuconfig BR2_PACKAGE_FREESWITCH
depends on BR2_USE_WCHAR # libuuid
select BR2_PACKAGE_LIBCURL
select BR2_PACKAGE_JPEG
+ # src/mod/applications/mod_cv/mod_cv.cpp includes cv.h
+ select BR2_PACKAGE_OPENCV_LIB_CONTRIB if BR2_PACKAGE_OPENCV
+ select BR2_PACKAGE_OPENCV_LIB_FLANN if BR2_PACKAGE_OPENCV
+ select BR2_PACKAGE_OPENCV_LIB_HIGHGUI if BR2_PACKAGE_OPENCV
+ select BR2_PACKAGE_OPENCV_LIB_LEGACY if BR2_PACKAGE_OPENCV
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_SPEEX
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies
2016-04-18 20:17 [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Bernd Kuhls
2016-04-18 20:17 ` [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv Bernd Kuhls
@ 2016-04-18 21:28 ` Samuel Martin
2016-04-18 21:41 ` Thomas Petazzoni
2016-04-18 22:12 ` Thomas Petazzoni
2 siblings, 1 reply; 8+ messages in thread
From: Samuel Martin @ 2016-04-18 21:28 UTC (permalink / raw)
To: buildroot
Bernd, all,
On Mon, Apr 18, 2016 at 10:17 PM, Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> As stated by Samuel the opencv2 package lacks inter-module dependencies:
> http://lists.busybox.net/pipermail/buildroot/2016-April/158902.html
>
> This patch adds the necessary code for freeswitch's mod_cv to compile.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v3: add more dependencies
> v2: initial release (Samuel)
>
> package/opencv/Config.in | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/package/opencv/Config.in b/package/opencv/Config.in
> index 8bc6c34..b563312 100644
> --- a/package/opencv/Config.in
> +++ b/package/opencv/Config.in
> @@ -23,6 +23,13 @@ config BR2_PACKAGE_OPENCV_LIB_CALIB3D
> config BR2_PACKAGE_OPENCV_LIB_CONTRIB
> bool "contrib"
> default y
> + # modules/contrib/CMakeLists.txt
> + select BR2_PACKAGE_OPENCV_LIB_CALIB3D
> + select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
> + select BR2_PACKAGE_OPENCV_LIB_IMGPROC
> + select BR2_PACKAGE_OPENCV_LIB_ML
> + select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
> + select BR2_PACKAGE_OPENCV_LIB_VIDEO
> help
> Include opencv_contrib module into the OpenCV build.
>
> @@ -46,6 +53,8 @@ config BR2_PACKAGE_OPENCV_LIB_GPU
> config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
> bool "highgui"
> default y
> + # modules/highgui/CMakeLists.txt
> + select BR2_PACKAGE_OPENCV_LIB_IMGPROC
> help
> Include opencv_highgui module into the OpenCV build.
>
> @@ -58,6 +67,10 @@ config BR2_PACKAGE_OPENCV_LIB_IMGPROC
> config BR2_PACKAGE_OPENCV_LIB_LEGACY
> bool "legacy"
> default y
> + # modules/legacy/CMakeLists.txt
> + select BR2_PACKAGE_OPENCV_LIB_CALIB3D
> + select BR2_PACKAGE_OPENCV_LIB_ML
> + select BR2_PACKAGE_OPENCV_LIB_VIDEO
> help
> Include opencv_legacy module into the OpenCV build.
>
> @@ -75,6 +88,8 @@ config BR2_PACKAGE_OPENCV_LIB_NONFREE
> config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
> bool "objdetect"
> default y
> + # modules/objdetect/CMakeLists.txt
> + select BR2_PACKAGE_OPENCV_LIB_IMGPROC
> help
> Include opencv_objdetect module into the OpenCV build.
>
Though this patch only fixes what is needed to meet the freeswitch's
deps, these deps. are correct.
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies
2016-04-18 21:28 ` [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Samuel Martin
@ 2016-04-18 21:41 ` Thomas Petazzoni
2016-04-18 22:07 ` Samuel Martin
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2016-04-18 21:41 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 18 Apr 2016 23:28:47 +0200, Samuel Martin wrote:
> Though this patch only fixes what is needed to meet the freeswitch's
> deps, these deps. are correct.
Shall I take this as a Reviewed-by ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies
2016-04-18 21:41 ` Thomas Petazzoni
@ 2016-04-18 22:07 ` Samuel Martin
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Martin @ 2016-04-18 22:07 UTC (permalink / raw)
To: buildroot
On Mon, Apr 18, 2016 at 11:41 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Mon, 18 Apr 2016 23:28:47 +0200, Samuel Martin wrote:
>
>> Though this patch only fixes what is needed to meet the freeswitch's
>> deps, these deps. are correct.
>
> Shall I take this as a Reviewed-by ?
Yes you can.
Adding the rest in a follow-up patch will be fairly trivial.
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
--
Samuel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv
2016-04-18 20:17 ` [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv Bernd Kuhls
@ 2016-04-18 22:11 ` Samuel Martin
2016-04-19 16:32 ` Bernd Kuhls
0 siblings, 1 reply; 8+ messages in thread
From: Samuel Martin @ 2016-04-18 22:11 UTC (permalink / raw)
To: buildroot
On Mon, Apr 18, 2016 at 10:17 PM, Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Fixes
> http://autobuild.buildroot.net/results/ffd/ffd572d7bb68d8ed46ce76b2af824503c587449f/
> http://autobuild.buildroot.net/results/e53/e53e356451aa4541a76e26722fd71051896e774b/
> http://autobuild.buildroot.net/results/564/5649ff1b50a1eaafbd0e1a329bff87a65ce18da0/
> http://autobuild.buildroot.net/results/c60/c60f97c6aafb1a94cb4ce344953598eae8b4a912/
> http://autobuild.buildroot.net/results/c1a/c1ac61f9a77635962babdb6bfb31dbecb7f4d439/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v3: add more suboptions
> v2: select the required suboption instead of checking for its existance
> in freeswitch.mk (Thomas)
>
> package/freeswitch/Config.in | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
> index 1350b2b..9b3f0fc 100644
> --- a/package/freeswitch/Config.in
> +++ b/package/freeswitch/Config.in
> @@ -7,6 +7,11 @@ menuconfig BR2_PACKAGE_FREESWITCH
> depends on BR2_USE_WCHAR # libuuid
> select BR2_PACKAGE_LIBCURL
> select BR2_PACKAGE_JPEG
> + # src/mod/applications/mod_cv/mod_cv.cpp includes cv.h
... which includes headers from: core, imgproc, video, feature2d,
flann, calib3d, objdetect and legacy [1]
So I would expect to see all these modules selected.
> + select BR2_PACKAGE_OPENCV_LIB_CONTRIB if BR2_PACKAGE_OPENCV
> + select BR2_PACKAGE_OPENCV_LIB_FLANN if BR2_PACKAGE_OPENCV
> + select BR2_PACKAGE_OPENCV_LIB_HIGHGUI if BR2_PACKAGE_OPENCV
Is highgui included as well in mod_cv?
To depend on highgui, a package has to explicitly include it, even
with the legacy headers.
> + select BR2_PACKAGE_OPENCV_LIB_LEGACY if BR2_PACKAGE_OPENCV
The selection is not complete WRT what is included in cv.h, but thanks
to the inter-dependencies defined in the previous patch, all should be
there at build-time for freeswitch at least.
> select BR2_PACKAGE_OPENSSL
> select BR2_PACKAGE_PCRE
> select BR2_PACKAGE_SPEEX
> --
> 2.8.0.rc3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
[1] https://github.com/Itseez/opencv/blob/2.4.12.3/include/opencv/cv.h#L63
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies
2016-04-18 20:17 [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Bernd Kuhls
2016-04-18 20:17 ` [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv Bernd Kuhls
2016-04-18 21:28 ` [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Samuel Martin
@ 2016-04-18 22:12 ` Thomas Petazzoni
2 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-04-18 22:12 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 18 Apr 2016 22:17:54 +0200, Bernd Kuhls wrote:
> As stated by Samuel the opencv2 package lacks inter-module dependencies:
> http://lists.busybox.net/pipermail/buildroot/2016-April/158902.html
>
> This patch adds the necessary code for freeswitch's mod_cv to compile.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v3: add more dependencies
> v2: initial release (Samuel)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv
2016-04-18 22:11 ` Samuel Martin
@ 2016-04-19 16:32 ` Bernd Kuhls
0 siblings, 0 replies; 8+ messages in thread
From: Bernd Kuhls @ 2016-04-19 16:32 UTC (permalink / raw)
To: buildroot
Hi Samuel,
Am Tue, 19 Apr 2016 00:11:04 +0200 schrieb Samuel Martin:
>> + # src/mod/applications/mod_cv/mod_cv.cpp includes cv.h
> ... which includes headers from: core, imgproc, video, feature2d,
> flann, calib3d, objdetect and legacy [1]
> So I would expect to see all these modules selected.
will be included in v4.
>> select BR2_PACKAGE_OPENCV_LIB_HIGHGUI if BR2_PACKAGE_OPENCV
> Is highgui included as well in mod_cv?
Yes: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/
mod/applications/mod_cv/mod_cv.cpp?at=refs%2Fheads%2Fv1.6#46
Regards, Bernd
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-04-19 16:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-18 20:17 [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Bernd Kuhls
2016-04-18 20:17 ` [Buildroot] [PATCH v3 2/2] package/freeswitch: select OpenCV modules for needed mod_cv Bernd Kuhls
2016-04-18 22:11 ` Samuel Martin
2016-04-19 16:32 ` Bernd Kuhls
2016-04-18 21:28 ` [Buildroot] [PATCH v3 1/2] package/opencv: add inter-module dependencies Samuel Martin
2016-04-18 21:41 ` Thomas Petazzoni
2016-04-18 22:07 ` Samuel Martin
2016-04-18 22:12 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox