Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/2] package/opencv: module objdetect depends on imgproc
Date: Mon, 18 Apr 2016 23:28:28 +0200	[thread overview]
Message-ID: <20160418232828.5c7f3e52@free-electrons.com> (raw)
In-Reply-To: <CAHXCMM+X7SAvaiw2p9oPrC7TVZM9V=V6ttoWZ-arOEKbXz8G7Q@mail.gmail.com>

Hello,

On Mon, 18 Apr 2016 23:18:26 +0200, Samuel Martin wrote:

> Err... it may fail because:
> - when an option is enabled in the .config, it will be force to ON in opencv.mk;
> - when an option is disabled in the .config, it will be force to OFF
> in opencv.mk;

And this takes precedence over what the CMake logic thinks the
dependencies should be?

If that is the case, then we should have tons of OpenCV build failures
in the autobuilders due to random configurations that end up making a
selection of BR2_PACKAGE_OPENCV_* options that don't match the build
time requirements of OpenCV, no?

> In the end, options set to OFF will take precedence, so some modules
> enabled in the .config won't be built.

Ah, okay that's how it works. If you force set something to OFF, and
that thing is needed for another thing that is set to ON, this last
thing will not be build.

I.e if featureA depends on featureB at build-time in the CMake logic,
but Buildroot does featureA=ON featureB=OFF, then featureA will in fact
not be built.

If that's the case, then indeed we need to replicate the inter-module
dependencies in Buildroot at the Config.in level.

> The main problem with this is when another package depends on several
> opencv modules, these modules can be enabled in  the .config, but not
> built, so the package build will fail.

Right, understood.

> > so why did you object to the previous iteration of Bernd's patch?
> You mean this one [1]?
> Because I think it was not the right way to fix this.

Yes, as per your explanation, I understand.

What about http://patchwork.ozlabs.org/patch/611881/ ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2016-04-18 21:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18 15:11 [Buildroot] [PATCH v2 1/2] package/freeswitch: mod_cv needs BR2_PACKAGE_OPENCV_LIB_OBJDETECT Bernd Kuhls
2016-04-18 15:11 ` [Buildroot] [PATCH v2 2/2] package/opencv: module objdetect depends on imgproc Bernd Kuhls
2016-04-18 19:20   ` Thomas Petazzoni
2016-04-18 19:57     ` Samuel Martin
2016-04-18 20:07       ` Bernd Kuhls
2016-04-18 20:21       ` Thomas Petazzoni
2016-04-18 21:18         ` Samuel Martin
2016-04-18 21:24           ` Samuel Martin
2016-04-18 21:28           ` Thomas Petazzoni [this message]
2016-04-18 21:38             ` Samuel Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160418232828.5c7f3e52@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox