UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
1,901 Views
Registered: ‎10-31-2017

petalinux opencv

 I'm using peitalinnux to create new project, I want to add opencv to the file system, how should I do, my petalinux version 2017.4.Thanks!

0 Kudos
7 Replies
Moderator
Moderator
1,884 Views
Registered: ‎02-07-2018

Re: petalinux opencv

Hi @zitengxiaxiang

 

Please follow below steps to add opencv as a part of your rootfs:

 

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = "opencv"

petalinux-config -c rootfs
user packages --> [*] opencv

petalinux-build

 

You can find the opencv recipe in this path :petalinux-v2017.4-final/components/yocto/source/aarch64/layers/./meta-oe/recipes-support/opencv/opencv_3.1.bb 

 

Thanks & regards

Aravind

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

0 Kudos
Contributor
Contributor
1,792 Views
Registered: ‎10-31-2017

Re: petalinux opencv

When I run command "petalinux-build",I got an error like picture.What can I do to solve the problem?Thanks!5505b9a8705e609bdc85e27afb5ab37.png

0 Kudos
Moderator
Moderator
1,762 Views
Registered: ‎04-24-2017

Re: petalinux opencv

Hi @zitengxiaxiang,

 

Looks like you are using sstate cache you need to unlock for your recipe.

 

$ vim project-spec/meta-user/conf/petalinuxbsp.conf

SIGGEN_UNLOCKED_RECIPES += "<recipe_name>"

 Can you post the content of your recipe?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
1,690 Views
Registered: ‎10-31-2017

Re: petalinux opencv

What is recipe_name?and opencv is added in the petalinux where should I find the manual?

Thanks!

0 Kudos
Moderator
Moderator
1,666 Views
Registered: ‎04-24-2017

Re: petalinux opencv

Hi @zitengxiaxiang,

 

Recipe name is nothing but your damageproto

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
1,653 Views
Registered: ‎10-31-2017

Re: petalinux opencv

When I run a "petalinux - build" command, I got the error as shown. How to solve the mistake ?

a5008f02edcfa51cbde26e3366ed48f.png

Thanks!

0 Kudos
Moderator
Moderator
1,640 Views
Registered: ‎04-24-2017

Re: petalinux opencv

Hi @zitengxiaxiang,

 

Sometimes if the network is not reachable for the mirrors sites defined in recipes you see do_fetch bitbake task will fail. In this situation you need to run the below commands.

 

$ cd <plnx-proj-root>/build/downloads
$ wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.3.0.tar.bz2
$ touch harfbuzz-1.3.0.tar.bz2.done

 

Note: Make sure you have the right network proxy and git proxy settings configured.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos