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: 
Observer dat63
Observer
934 Views
Registered: ‎08-28-2018

Unable to build OpenCV samples on ZCU104

Jump to solution

Hello,

I have followed the indications given in OpenCV user guide but I am not able to build openCV samples on my ZCU104 board with SDSoC 2018.2 and Windows 10. The linking process always fails giving:

c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find crt1.o: No such file or directory
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find crti.o: No such file or directory
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lvideo
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_videoio
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lglib-2.0
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -ldrm
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lv4l2subdev
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lmediactl
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -llzma
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -ltiff
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lpng16
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lz
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -ljpeg
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -ldl
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lrt
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lwebp
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_features2d
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_flann
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_core
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_imgcodecs
c:/xilinx/sdk/2018.2/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.2.1/../../../../aarch64-linux-gnu/bin/ld.exe: cannot find -lopencv_imgproc

 

I also followed the suggestions provided in similar posts, i.e. manually giving the path to the library but without success 

Any hint?

 

Thanks a lot

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer dat63
Observer
897 Views
Registered: ‎08-28-2018

Re: Unable to build OpenCV samples on ZCU104

Jump to solution

Hi Steve,

yes , the SYSROOT was wrongly setup! Now it works. Thanks a lot

 

View solution in original post

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
912 Views
Registered: ‎10-28-2013

Re: Unable to build OpenCV samples on ZCU104

Jump to solution

Hi @dat63,

 

Is your SYSROOT environment variable setup? Generally, this is showing that it cannot find the appropriate ARM compiled libraries, which would be in the SYSROOT for the platform.

 

Thanks

Steve

0 Kudos
Highlighted
Observer dat63
Observer
898 Views
Registered: ‎08-28-2018

Re: Unable to build OpenCV samples on ZCU104

Jump to solution

Hi Steve,

yes , the SYSROOT was wrongly setup! Now it works. Thanks a lot

 

View solution in original post

0 Kudos