Jump to content
  • 0

sdsoc_opencv error


kotra sharmila

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

Link to comment
Share on other sites

Recommended Posts

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"?

Link to comment
Share on other sites

hi actuallly i dont have the below path in above pdf

2. Set the environment variable SYSROOT to the <path to sysroot folder>/sw/
aarch64-linux-gnu/sysroot folder.

i have sysroot in platform ->export SYSROOT=/home/roash-sw-linux/Desktop/zybo_z7_20/sw/sysroot

 

and

i have it in different folder in where sdx installed

/home/roash-sw-linux/opt/Xilinx/SDK/2017.4/gnu/microblaze/lin/microblaze-xilinx-elf/sysroot

and linux gnu was there but sysroot is not there

/home/roash-sw-linux/opt/Xilinx/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu

 

Link to comment
Share on other sites

On 2/22/2019 at 7:48 AM, kotra sharmila said:

Hi

this is my logfile

 

sds_filter2d_cv.log

The first error message is explicit:

unsupported pointer reinterpretation from type 'i32*' to type 'i8*' on variable 'frm_data_in'

frm_data_in argument is a pointer to uint32_t data but you have provided a pointer to 8-bit data when you called the filter2d_cv function.

Solve the error and try to build again.

Link to comment
Share on other sites

Try to use the following steps from Digilent SDSoC Platform README:

To install this platform and run the sample programs, do the following:

1. 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
 
   In Windows, go to Start->Control Panel->System->Advanced->Environment Variables
   and create a new environment variable called SYSROOT with the value:

   <extracted platform absolute path>\zybo_z7_20\sw\sysroot

   Then launch SDx 2017.4 as normal.

2. Point to an empty directory to use as a workspace.

*NOTE* If you are also using the platform source then make sure you use a new,
       empty workspace, not the workspace with the platform generator project.
       SDx currently has a bug that breaks the ability to hardware accelerate
       functions in a platform's include path when that platform's project is
       also in the workspace.

3. In the top menu bar, click "Xilinx->Add Custom Platform..."
4. In the new window, click "Add Custom Platform..." and select the folder with
   the extracted platform (the folder this document is found in).
5. Click OK.
6. Now, in the top menu bar, click "File->New->SDx Project...".
7. Select Application Project and then press Next.
8. Name the project and press Next.
9. Select zybo_z7_20 and click Next.
10. Select Linux from the System Configuration drop-down.
11. Click Next, no other options should need to be changed on this page.
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.

13. Click the hammer button to build the project. This can take between 5-30 min
    on typical host machines.

If the build process is successful, using a sample project, your system is set correctly. Let me know if you encounter any issues using the above mentioned steps.

From this point you can try to replace the sources from the sample project with your code and try to build again.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...