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: 
Participant sharmilakotra123
Participant
542 Views
Registered: ‎11-27-2018

sdsoc _opencv error

hi,

this is sharmila am adding custom platform zybo_z7_20 successfully.

->and tri

 

regards ,

sharmila.

0 Kudos
32 Replies
Xilinx Employee
Xilinx Employee
501 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Please have a look at the xfopencv

https://github.com/Xilinx/xfopencv

Document : https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1233-xilinx-opencv-user-guide.pdf

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Xilinx Employee
Xilinx Employee
408 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

@sharmilakotra123

Are you trying to build canny example in this project?

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
404 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

hi yes but o got the same error for every project i.e;

 

16:37:38 **** Incremental Build of configuration Debug for project canny ****
make pre-build main-build
sdsoc_make_clean Debug
rm: cannot remove 'src/xf_canny_accel.o': No such file or directory
 
Building file: ../src/xf_canny_accel.cpp
Invoking: SDS++ Compiler
sds++ -Wall -O0 -g -I"../src" -c -fmessage-length=0 -MT"src/xf_canny_accel.o" -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -mstrict-align -hls-target 1 -MMD -MP -MF"src/xf_canny_accel.d" -MT"src/xf_canny_accel.o" -o "src/xf_canny_accel.o" "../src/xf_canny_accel.cpp" -sds-hw canny_accel xf_canny_accel.cpp  -clkid 0 -sds-end -sds-sys-config linux -sds-proc linux -sds-pf "/home/roash-sw-linux/Desktop/SdSoC-Zybo-z7-20/SDSoC-Zybo-Z7-20-master/sdsoc/zybo_z7_20/export/zybo_z7_20"
Processing -sds-hw block for canny_accel
Create data motion intermediate representation
clang: error: unknown argument: '-hls-target'
clang: error: no such file or directory: '/home/roash-sw-linux/Desktop/projects_web/canny/Debug/1'
ERROR: [SdsCompiler 83-5005] clang exited with non-zero code processing /home/roash-sw-linux/Desktop/projects_web/canny/Debug/1 /home/roash-sw-linux/Desktop/projects_web/canny/src/xf_canny_accel.cpp
sds++ log file saved as /home/roash-sw-linux/Desktop/projects_web/canny/Debug/_sds/reports/sds_xf_canny_accel.log
ERROR: [SdsCompiler 83-5004] Build failed
make: *** [src/xf_canny_accel.o] Error 1

src/subdir.mk:21: recipe for target 'src/xf_canny_accel.o' failed

16:37:41 Build Finished (took 3s.226ms)

can you please help me

regards

k sharmila

Workspace 1_055.png
0 Kudos
Xilinx Employee
Xilinx Employee
382 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

I suggest you to start a new fresh project by following below steps,

Important note : Export $SYSROOT before launching SDx

export SYSROOT=<platform>/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/

Launch SDx

You can download xfOpenCV directly from SDx GUI. To build a project using the example makefiles on the Linux platform.

 

1. From SDx IDE, click Xilinx and select SDx Libraries.

2. Click Download next to the Xilinx xfOpenCV Library.

xfopencv_lib_download.PNGThe library is downloaded into /Xilinx/SDx/<version>/xfopencv. After the library is downloaded, the entire  set of examples in the library are available in the list of templates while creating a new project. 

3. To add a library to a project, from SDx IDE, click Xilinx and select SDx Libraries.

4. Select Xilinx xfOpenCV Library and click Add to project. The dropdown menu consists of options of which project the libraries need to be included to.

All the headers as part of the include/ folder in xfOpenCV library would be copied into the local project directory as /libs/xfopencv/include. All the settings required for the libraries to be run are also set when this action is completed.

5. Start creating a new SDx application project as per standard procedure, when you go to template window, you can see all example projects of xfopencv. Select Canny and click on Finish.

6. Navigate to C/C++ build settings->C/C++ Build-> Settings->SDS++ Linker-> Libraries

    Add ${SYSROOT}/usr/lib and ${SYSROOT}/lib

7. Navigate to C/C++ build settings->C/C++ Build-> Settings->SDS++ Linker->Miscellaneous->Linker Flags

Add below line before -sdcard ..src/data

--sysroot=${SYSROOT} -L=/lib -L=/usr/lib -Wl,-rpath-link=${SYSROOT}/lib,-rpath-link=${SYSROOT}/usr/lib

 8. Please navigate to C/C++ build settings -> C/C++ General->Paths and Symbols

In Includes tab, Under GNU C++, Add below include path,

<revision platform folder path>/zcu104-rv-ss-2018-2/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/include

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
374 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

hi,

am following above processor also i got the same error again , that canny example downloded but not showing in sdx libraries so i copied from my local xilink directory and runed .

-- but i have a doubt on i dont have aarch64-linux(petalinux path u mentionstioned but i have rootfs in where i can build the petalinux projects

i share my path just verify once...

->/home/roash-sw-linux/Desktop/SdSoC-Zybo-z7-20/SDSoC-Zybo-Z7-20-master/linux/zybo_z7_20/build/tmp/sysroots/plnx_arm/usr/include

but here i have all the libraries

 

Workspace 1_058.png
0 Kudos
Xilinx Employee
Xilinx Employee
366 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Sorry, I did not get your below statement,

canny example downloded but not showing in sdx libraries

Also, please share screenshot of your SDS++ compiler options.

 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
364 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

this is my compiler statemet

Workspace 1_059.png
0 Kudos
Xilinx Employee
Xilinx Employee
343 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

hi @sharmilakotra123

please remove "-hls-target 1" option and try

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
337 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

I tried with that also but when we build it automatically takes the target..here

Workspace 1_060.png
0 Kudos
Xilinx Employee
Xilinx Employee
314 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Yes, just copy the whole content, paste it in some editor, remove -hls-target 1

and paste the content again at above location

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
308 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

yes i was doing that only when i remove hls_target 1 it showing the another below error.

--> am trying to clear the below error by adding xfopencv libraries to that same project it again comes with the hls_target 1 error like a loop

Workspace 1_063.png
0 Kudos
Participant sharmilakotra123
Participant
301 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

hi,

now i got the new error . i was clearing the above xf_common.h and target_hls 1

by removing hls and adding include path for xfopencv.

but now i got the new error,

Regards,

K Sharmila

Workspace 1_064.png
0 Kudos
Xilinx Employee
Xilinx Employee
289 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Okay, Actually the xfopencv is tested for zcu102/zcu104 revision platforms, zc706 platform.

It is not tested for zybo, so these errors are new for us too.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Xilinx Employee
Xilinx Employee
288 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

I will try to recreate the issue on my end, can you please try with SDSoC 2018.3?

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
282 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

ok i will try i want the installation guide and environment set up steps from starting to end like platform creation to project creation and build.

Regards,

K Sharmila

0 Kudos
Participant sharmilakotra123
Participant
263 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

->i was trying with Zc702,Zc701,Zc706 default platforms but i get the same below error.

->Actually we want to trying with zybo board we alredy have zybo board can you please check once with the zybo platform and tel to me

->if it works we want to plan all the project with zybo,i am trying to install 2018.3 can you please share the process to installation and environmental set up (with screecshots more benifited to me).

Regards,

K Sharmila

Workspace 1_065.png
Workspace 1_067.png
0 Kudos
Participant sharmilakotra123
Participant
249 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi ,

actually in 2017.4 i was trying with zybo live i./o video i cleared all errors

but this time i dont know what error it is it simply says compiler termimated like this.

 

10:28:56 **** Incremental Build of configuration Debug for project sample_video ****
make pre-build main-build
sdsoc_make_clean Debug
 
Building file: ../src/filter2d/filter2d_cv.cpp
Invoking: SDS++ Compiler
sds++ -Wall -O0 -g -I"../src" -I"/home/roash-sw-linux/opt/Xilinx/SDx/xfopencv/include" -c -fmessage-length=0 -MT"src/filter2d/filter2d_cv.o" -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -MMD -MP -MF"src/filter2d/filter2d_cv.d" -MT"src/filter2d/filter2d_cv.o" -o "src/filter2d/filter2d_cv.o" "../src/filter2d/filter2d_cv.cpp" -sds-sys-config linux -sds-proc linux -sds-pf "/home/roash-sw-linux/Desktop/SdSoC-Zybo-z7-20/SDSoC-Zybo-Z7-20-master/sdsoc/zybo_z7_20/export/zybo_z7_20"
Create data motion intermediate representation
Compiling /home/roash-sw-linux/Desktop/new1/sample_video/src/filter2d/filter2d_cv.cpp
sds++ log file saved as /home/roash-sw-linux/Desktop/new1/sample_video/Debug/_sds/reports/sds_filter2d_cv.log

Finished building: ../src/filter2d/filter2d_cv.cpp
 
Building file: ../src/filter2d/filter2d_xf.cpp
Invoking: SDS++ Compiler
sds++ -Wall -O0 -g -I"../src" -I"/home/roash-sw-linux/opt/Xilinx/SDx/xfopencv/include" -c -fmessage-length=0 -MT"src/filter2d/filter2d_xf.o" -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -MMD -MP -MF"src/filter2d/filter2d_xf.d" -MT"src/filter2d/filter2d_xf.o" -o "src/filter2d/filter2d_xf.o" "../src/filter2d/filter2d_xf.cpp" -sds-sys-config linux -sds-proc linux -sds-pf "/home/roash-sw-linux/Desktop/SdSoC-Zybo-z7-20/SDSoC-Zybo-Z7-20-master/sdsoc/zybo_z7_20/export/zybo_z7_20"
Create data motion intermediate representation
Compiling /home/roash-sw-linux/Desktop/new1/sample_video/src/filter2d/filter2d_xf.cpp
                 from /home/roash-sw-linux/Desktop/new1/sample_video/src/filter2d/filter2d_xf.h:13,
                 from /home/roash-sw-linux/Desktop/new1/sample_video/src/filter2d/filter2d_xf.cpp:42:
compilation terminated.
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'arm-linux-gnueabihf-g++ -c -I../src -I/home/roash-sw-linux/opt/Xilinx/SDx/xfopencv/include -Wall -O0 -g -fmessage-length=0 -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -MMD -MP -D __SDSCC__ -MT/home/roash-sw-linux/Desktop/new1/sample_video/Debug/src/filter2d/filter2d_xf.o -MF/home/roash-sw-linux/Desktop/new1/sample_video/Debug/src/filter2d/filter2d_xf.d -MT/home/roash-sw-linux/Desktop/new1/sample_video/Debug/src/filter2d/filter2d_xf.o     -I /home/roash-sw-linux/opt/Xilinx/SDx/2017.4/target/aarch32-linux/include  -D HLS_NO_XIL_FPO_LIB  -I /home/roash-sw-linux/opt/Xilinx/Vivado/2017.4/include /home/roash-sw-linux/Desktop/new1/sample_video/src/filter2d/filter2d_xf.cpp -o src/filter2d/filter2d_xf.o'
make: *** [src/filter2d/filter2d_xf.o] Error 1
sds++ log file saved as /home/roash-sw-linux/Desktop/new1/sample_video/Debug/_sds/reports/sds_filter2d_xf.log
ERROR: [SdsCompiler 83-5004] Build failed

src/filter2d/subdir.mk:21: recipe for target 'src/filter2d/filter2d_xf.o' failed

10:29:08 Build Finished (took 11s.685ms)

this was by build.can you please help me out

 

Regards,

K Sharmila

0 Kudos
Participant sharmilakotra123
Participant
243 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

am encouter with new error previous errors was gone like i changed to test platform for same project there only like zc702,701,zed,701 agin i came to zubo .

->previous errors was gone but these errors related to program ??

Workspace 1_070.png
0 Kudos
Xilinx Employee
Xilinx Employee
231 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Can you please verify your SYSROOT.

Also, the error says redefinition with different types: you can also verify your include paths 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
225 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

this is my linker paths and i didt fing that sysroot where it is in gui.

Workspace 1_071.png
0 Kudos
Xilinx Employee
Xilinx Employee
212 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Yes, then not setting SYSROOT is leading to all errors.

This is how we set for revision platform

  • Linux: export SYSROOT=<platform>/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/

https://github.com/Xilinx/reVISION-Getting-Started-Guide/blob/master/Docs/tool-flow-tutorials.md

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
210 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi ,

i was doing that also and tried but it won't work .

 

0 Kudos
Xilinx Employee
Xilinx Employee
203 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Okay.

Try building canny example on command line.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
200 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

can you please share the commands how to execute from starting i was trying with that also but i did't got the proper commands

0 Kudos
Xilinx Employee
Xilinx Employee
158 Views
Registered: ‎08-20-2018

Re: sdsoc _opencv error

Hi @sharmilakotra123

Please have a look at the below docu,

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1233-xilinx-opencv-user-guide.pdf

Go to Page no.24 you can see commands for building a project using example makefiles on linux. 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Participant sharmilakotra123
Participant
106 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

hi ,

i have stuck in a problem like ubuntu i was mounting the opartitions after that it automatically copy in Desktio (Document,Downloads, music etc.)

after if i deleted in desktop it will automaticcaly deleted in original location and showing below error.

Regards,

K sharmila

Workspace 1_073.png
0 Kudos
Participant sharmilakotra123
Participant
81 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

hi i got the errors in this sdsoc revision platform haar face deduction can any one help me out.

0 Kudos
Participant sharmilakotra123
Participant
68 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi,

presently i was able to build the opencv simple web dedution sdx using revision platorm.

but am getting error in cascade classifier showing error,

 

0 Kudos
Participant sharmilakotra123
Participant
46 Views
Registered: ‎11-27-2018

Re: sdsoc _opencv error

Hi am getting the below error for face detection cascade cassifier how to rectify it

Workspace 1_002.png
0 Kudos