All of lore.kernel.org
 help / color / mirror / Atom feed
* OpenCV with python3
@ 2018-03-15 12:52 Peter Balazovic
  2018-03-15 12:56 ` Robert P. J. Day
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Balazovic @ 2018-03-15 12:52 UTC (permalink / raw)
  To: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

Hello all,

I have python module of OpenCV for python 2.7 on my Yocto image adding via
local.conf

IMAGE_INSTALL_append += “ python-opencv”

Can you advice how to add opencv binding for python 3?

Thanks.

[-- Attachment #2: Type: text/html, Size: 332 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenCV with python3
  2018-03-15 12:52 OpenCV with python3 Peter Balazovic
@ 2018-03-15 12:56 ` Robert P. J. Day
  2018-03-16  5:29   ` Tim Orling
  0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2018-03-15 12:56 UTC (permalink / raw)
  To: Peter Balazovic; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

On Thu, 15 Mar 2018, Peter Balazovic wrote:

> Hello all,
> I have python module of OpenCV for python 2.7 on my Yocto image adding via local.conf
>
> IMAGE_INSTALL_append += “ python-opencv”

  i know i've harped on this before, but can people please stop
combining the constructs "_append" and "+=" in the same expression?

rday

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenCV with python3
  2018-03-15 12:56 ` Robert P. J. Day
@ 2018-03-16  5:29   ` Tim Orling
  2018-03-16  7:09     ` Peter Balazovic
  2018-03-17  3:15     ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Tim Orling @ 2018-03-16  5:29 UTC (permalink / raw)
  To: Peter Balazovic; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

Ditto for Robert’s comment. Please look at the bitbake manual and
understand what the syntax means [1].

Also,  “python-foo” means the python2 version. The default PACKAGECONFIG
[2] for opencv builds for python3. You need “python3-opencv”.

Finally, I would encourage you to use CORE_IMAGE_EXTRA_INSTALL [3] rather
than IMAGE_INSTALL in the local.conf context.

[1]
https://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#appending-and-prepending
[2]
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/opencv/opencv_3.3.bb?h=master#n90
[3]
https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-CORE_IMAGE_EXTRA_INSTALL

On Thu, Mar 15, 2018 at 5:57 AM Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

> On Thu, 15 Mar 2018, Peter Balazovic wrote:
>
> > Hello all,
> > I have python module of OpenCV for python 2.7 on my Yocto image adding
> via local.conf
> >
> > IMAGE_INSTALL_append += “ python-opencv”
>
>   i know i've harped on this before, but can people please stop
> combining the constructs "_append" and "+=" in the same expression?
>
> rday--
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 2320 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenCV with python3
  2018-03-16  5:29   ` Tim Orling
@ 2018-03-16  7:09     ` Peter Balazovic
  2018-03-16 12:13       ` Peter Balazovic
  2018-03-17  3:15     ` Khem Raj
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Balazovic @ 2018-03-16  7:09 UTC (permalink / raw)
  To: Tim Orling; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

That I was thinking to have “python3-opencv” but it's failing to build

I found opencv_3.1.bbappend with my sources where I see

PACKAGECONFIG_remove_imx = "eigen python3"

I guess that might causing a problem to build opencv for python3... I'll
remove and check again to build.

BTW what's the benefit of using CORE_IMAGE_EXTRA_INSTALL over
IMAGE_INSTALL_append ?


On Fri, Mar 16, 2018 at 6:29 AM, Tim Orling <ticotimo@gmail.com> wrote:

> Ditto for Robert’s comment. Please look at the bitbake manual and
> understand what the syntax means [1].
>
> Also,  “python-foo” means the python2 version. The default PACKAGECONFIG
> [2] for opencv builds for python3. You need “python3-opencv”.
>
> Finally, I would encourage you to use CORE_IMAGE_EXTRA_INSTALL [3] rather
> than IMAGE_INSTALL in the local.conf context.
>
> [1] https://www.yoctoproject.org/docs/current/bitbake-user-
> manual/bitbake-user-manual.html#appending-and-prepending
> [2] http://cgit.openembedded.org/meta-openembedded/tree/
> meta-oe/recipes-support/opencv/opencv_3.3.bb?h=master#n90
> [3] https://www.yoctoproject.org/docs/current/ref-manual/
> ref-manual.html#var-CORE_IMAGE_EXTRA_INSTALL
>
> On Thu, Mar 15, 2018 at 5:57 AM Robert P. J. Day <rpjday@crashcourse.ca>
> wrote:
>
>> On Thu, 15 Mar 2018, Peter Balazovic wrote:
>>
>> > Hello all,
>> > I have python module of OpenCV for python 2.7 on my Yocto image adding
>> via local.conf
>> >
>> > IMAGE_INSTALL_append += “ python-opencv”
>>
>>   i know i've harped on this before, but can people please stop
>> combining the constructs "_append" and "+=" in the same expression?
>>
>> rday--
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>

[-- Attachment #2: Type: text/html, Size: 3265 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenCV with python3
  2018-03-16  7:09     ` Peter Balazovic
@ 2018-03-16 12:13       ` Peter Balazovic
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Balazovic @ 2018-03-16 12:13 UTC (permalink / raw)
  To: Tim Orling, Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 2435 bytes --]

By allowing "python3-opencv" I end up with errors ....

ERROR: fsl-image-qt5-1.0-r0 do_rootfs: python3-opencv not found in the
feeds .
ERROR: fsl-image-qt5-1.0-r0 do_rootfs: This is often caused by an empty
package declared in a recipe's PACKAGES variable. (Empty packages are not
constructed unless ALLOW_EMPTY_<pkg> = '1' is used.)
ERROR: fsl-image-qt5-1.0-r0 do_rootfs: Function failed: do_rootfs

where to look at on problem?


On Fri, Mar 16, 2018 at 8:09 AM, Peter Balazovic <balazovic.peter@gmail.com>
wrote:

> That I was thinking to have “python3-opencv” but it's failing to build
>
> I found opencv_3.1.bbappend with my sources where I see
>
> PACKAGECONFIG_remove_imx = "eigen python3"
>
> I guess that might causing a problem to build opencv for python3... I'll
> remove and check again to build.
>
> BTW what's the benefit of using CORE_IMAGE_EXTRA_INSTALL over
> IMAGE_INSTALL_append ?
>
>
> On Fri, Mar 16, 2018 at 6:29 AM, Tim Orling <ticotimo@gmail.com> wrote:
>
>> Ditto for Robert’s comment. Please look at the bitbake manual and
>> understand what the syntax means [1].
>>
>> Also,  “python-foo” means the python2 version. The default PACKAGECONFIG
>> [2] for opencv builds for python3. You need “python3-opencv”.
>>
>> Finally, I would encourage you to use CORE_IMAGE_EXTRA_INSTALL [3] rather
>> than IMAGE_INSTALL in the local.conf context.
>>
>> [1] https://www.yoctoproject.org/docs/current/bitbake-user-m
>> anual/bitbake-user-manual.html#appending-and-prepending
>> [2] http://cgit.openembedded.org/meta-openembedded/tree/meta
>> -oe/recipes-support/opencv/opencv_3.3.bb?h=master#n90
>> [3] https://www.yoctoproject.org/docs/current/ref-manual/ref
>> -manual.html#var-CORE_IMAGE_EXTRA_INSTALL
>>
>> On Thu, Mar 15, 2018 at 5:57 AM Robert P. J. Day <rpjday@crashcourse.ca>
>> wrote:
>>
>>> On Thu, 15 Mar 2018, Peter Balazovic wrote:
>>>
>>> > Hello all,
>>> > I have python module of OpenCV for python 2.7 on my Yocto image adding
>>> via local.conf
>>> >
>>> > IMAGE_INSTALL_append += “ python-opencv”
>>>
>>>   i know i've harped on this before, but can people please stop
>>> combining the constructs "_append" and "+=" in the same expression?
>>>
>>> rday--
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 6551 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: OpenCV with python3
  2018-03-16  5:29   ` Tim Orling
  2018-03-16  7:09     ` Peter Balazovic
@ 2018-03-17  3:15     ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2018-03-17  3:15 UTC (permalink / raw)
  To: Tim Orling; +Cc: Yocto list discussion

On Thu, Mar 15, 2018 at 10:29 PM, Tim Orling <ticotimo@gmail.com> wrote:
> Ditto for Robert’s comment. Please look at the bitbake manual and understand
> what the syntax means [1].
>
> Also,  “python-foo” means the python2 version. The default PACKAGECONFIG [2]
> for opencv builds for python3. You need “python3-opencv”.
>
> Finally, I would encourage you to use CORE_IMAGE_EXTRA_INSTALL [3] rather
> than IMAGE_INSTALL in the local.conf context.
>

FYI This suggestion is fine, however it is not sufficient. There is an
inherent assumption that image
is inheriting core-image which is implied and not explicitly
mentioned. many users do not inherit
core-image hence this suggestion will be moot for them.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-17  3:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 12:52 OpenCV with python3 Peter Balazovic
2018-03-15 12:56 ` Robert P. J. Day
2018-03-16  5:29   ` Tim Orling
2018-03-16  7:09     ` Peter Balazovic
2018-03-16 12:13       ` Peter Balazovic
2018-03-17  3:15     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.