• 0
kotra sharmila

sdsoc_opencv error

Question

hi ,

this is sharmila i installed SDx tools i am new to this.

->first time creating the project application project we need to add platform zybo is not there in platform list.

->I am tried so many methods to add custom platform for sdx 2017.4 and petalinux also 2017.4.

->and also any one share how to generate platform and creation of project in SDx guidelines in step by step.

any answer will help to me.

Thanks in advance,

K sharmila

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Hi @kotra sharmila,

Please follow the steps provided in this read me to modify/create your project.

Please kkep in mind the following NOTE at step 12

Quote

12. Select a sample application to run and click finish to create the project.

*NOTE* When creating a project that uses xfopencv, it is best to always use a sample project as a starting point. The source files can be replaced with the new project's source. This is because the sample project sets up a lot of build settings like include paths, libraries, and symbols that are required for the libraries to build.

- Ciprian

Share this post


Link to post
Share on other sites
  • 0

For the "sample application" mentioned in step 12, make sure it is an application that depends on xfopencv, such as the Simple Filter2d Live I/O.

Let us know if you get stuck in any of the steps.

Share this post


Link to post
Share on other sites
  • 0

Hi ,

am doing upto that custom platform adding but and also runned the example project partition ,vec add(there is no filter2d Live I/0 )bu default in those examples

-->we have to copy the source files from there to project then i got error

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, kotra sharmila said:

am doing upto that custom platform adding

Are you referring to step 4? Are you getting an error at that step?

Quote

but and also runned the example project partition

 We don't know what you are referring to here.

Quote

vec add(there is no filter2d Live I/0 )bu default in those examples

There are two reasons why you might not see filter2d Live I/O:

  1. You didn't download the right revision platform. Make sure you download this platform. If you have some other platform already downloaded for Zybo-Z7 you need to first remove it from the IDE.
  2. There is a small chance there is some IDE error. In this case, you need to contact Xilinx for support.

Share this post


Link to post
Share on other sites
  • 0

Hi,

am doing this platform(revision )but i got stucked in

 

ii cd into the vivado/zybo_z7_20/ folder

iii Run "./cleanup.sh" at the terminal if you have pulled remote changes since the last time you have built the project. If you have not pulled any changes to the vivado project from git or it is your first time building the project then you do not need to run the script.

 

can you please help me

 

Share this post


Link to post
Share on other sites
  • 0

You don't have to follow the steps that are listed in the reVision README.md document. In README.md is specified:

Quote

Please click on the releases tab in github to download the latest release for your version of SDx.

That steps are used only if you want to modify an existing platform or to create a new one, and are not recommended for beginner users because one need to poses knowledge about digital design, Petalinux configuration and building and deep SDSoC understanding. So do not try to build the platform by your own. Instead, use a released version of reVision platform.

Follow the next steps:
1. Make sure that you have installed SDx 2017.4.
2. Open SDx -> Xilinx -> Add Custom Platform...
3. From Manage(Custom) tab, remove any platform related to zybo_z7, using the Remove button. Close SDx.
4. Download the released reVision platform.
5. Extract the archive.
6. Set the SYSROOT environment variable and launch SDx. This is done in Linux by
   opening a new terminal and running:

   source /opt/Xilinx/SDx/2017.4/settings64.sh
   export SYSROOT=<extracted platform absolute path>/zybo_z7_20/sw/sysroot
   sdx

7. Point to an empty directory to use as a workspace.
8. In the top menu bar, click "Xilinx->Add Custom Platform..."
9. In the new window, click "Add Custom Platform..." and select the folder with
   the extracted platform.
10. Click OK
11. Now, in the top menu bar, click "File->New->SDx Project...".
12. Select Application Project and then press Next.
13. Name the project and press Next.
14. Select zybo_z7_20 and click Next.
15. Select Linux from the System Configuration drop-down.
16. Click Next, no other options should need to be changed on this page.
17. Select the Simple Filter2d Live I/O demo sample application to run and click finish to create the project.
18. Click the hammer button to build the project. This can take between 5-30 min
    on typical host machines.

Let us know if you get stuck in any of the steps.

Share this post


Link to post
Share on other sites
  • 0

hi,

i wanted to execute simple opencv face detection through webcam of my own .but opencv headers showing error how to download and link opencv library.

can you please tell me stepwise.

Regards,

K Sharmila

Share this post


Link to post
Share on other sites
  • 0

HI,

i got stucked in my own project face detection with same error,and i was include opencv library link path and sds++ comapiler include path from revision platform which i was downloaded from your link.

path : /home/roash-sw-linux/Desktop/zybo_z7_20/sw/sysroot/usr/include

/home/roash-sw-linux/Desktop/zybo_z7_20/sw/sysroot/usr/lib

Workspace 1_074.png

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, kotra sharmila said:

hi,

i wanted to execute simple opencv face detection through webcam of my own .but opencv headers showing error how to download and link opencv library.

can you please tell me stepwise.

Regards,

K Sharmila

How is the webcam connected to the board? USB, HDMI or MIPI port?

What errors are the opencv headers showing?

Please attach full log.

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, kotra sharmila said:

HI,

i got stucked in my own project face detection with same error,and i was include opencv library link path and sds++ comapiler include path from revision platform which i was downloaded from your link.

path : /home/roash-sw-linux/Desktop/zybo_z7_20/sw/sysroot/usr/include

/home/roash-sw-linux/Desktop/zybo_z7_20/sw/sysroot/usr/lib

Workspace 1_074.png

You don't need to re-include the opencv library if you follow the steps above.

What is this "same error" you are referring to?

Share this post


Link to post
Share on other sites
  • 0

Hi i followed above steps only but when i try to create the opencv project it shows the headers not defined error and when i link thirdparty or through sysroot it showing th above error

 

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, kotra sharmila said:

hi i am not yet connected in build only not seucesfull

sds.log

What kind of interface does your camera have? USB, HDMI or MIPI?

Please attach an archive of the sdx project also.

Have you tried compiling your project for your host machine?

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, kotra sharmila said:

Hi i followed above steps only but when i try to create the opencv project it shows the headers not defined error and when i link thirdparty or through sysroot it showing th above error

 

Which step are you referring to when you say "create the opencv project"?

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, kotra sharmila said:

Referencing steps means this steps (revision platform ) what you mentioned

In this post, there are 18 steps.

In which step number are you getting errors?

Share this post


Link to post
Share on other sites
  • 0

Hi that 18 steps are succesfully did and worked video i/o demo example default build

but when i am trying to create my own opencv face detection etc. that i got the errors (above)

Share this post


Link to post
Share on other sites
  • 0
5 minutes ago, kotra sharmila said:

hi,

actually i dont install sdsoc i have that SDx 2017.4 i have doubt on that from starting sdsoc and sdx are diferent or same

SDx contains SDSoC as described here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now