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: 
Visitor nestorai
Visitor
988 Views
Registered: ‎11-23-2017

Error building xfOpencv using Zybo

Hi,

I am trying to build xfOpencv following this tutorial, and the section Using the xfOpenCV Library on a Custom Platform, but when I try to compile I get these errors:

 

09:58:24 **** Incremental Build of configuration Debug for project Test ****
make pre-build main-build 
sdsoc_make_clean Debug
 
Building target: Test.elf
Invoking: SDS++ Linker
sds++ -L/opt/Xilinx/SDK/2017.3/data/embeddedsw/ThirdParty/opencv/aarch32/lib -o "Test.elf"  ./src/xf_accumulate_image_accel.o ./src/xf_accumulate_image_tb.o   -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_features2d -lopencv_calib3d -lopencv_flann -llzma -ltiff -lpng16 -lz -ljpeg -ldl -lrt -lwebp -dmclkid 1  -sds-sys-config linux -sds-proc a9_0 -sds-pf "zybo"
Removing implementation files from previous run
Analyzing object files
... /home/user/workspace/Test/Debug/src/xf_accumulate_image_accel.o
... /home/user/workspace/Test/Debug/src/xf_accumulate_image_tb.o
Using prebuilt hardware
Skipping block diagram (BD), address map, port information and device registration for partition 0
Prepare hardware access API functions
Create accelerator stub functions
Compile hardware access API functions
Compile accelerator stub functions
Enable generation of boot files
Compile hardware access API functions
Link application ELF file
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -llzma
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -ltiff
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -lpng16
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -lz
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -ljpeg
/opt/Xilinx/SDx/2017.2/SDK/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: no se puede encontrar -lwebp
collect2: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'arm-linux-gnueabihf-g++     /home/user/workspace/Test/Debug/src/xf_accumulate_image_accel.o /home/user/workspace/Test/Debug/src/xf_accumulate_image_tb.o /home/user/workspace/Test/Debug/_sds/swstubs/portinfo.o -L/opt/Xilinx/SDK/2017.3/data/embeddedsw/ThirdParty/opencv/aarch32/lib -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_features2d -lopencv_calib3d -lopencv_flann -llzma -ltiff -lpng16 -lz -ljpeg -ldl -lrt -lwebp   -L /opt/Xilinx/SDx/2017.2/target/aarch32-linux/lib -L/home/user/workspace/Test/Debug/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o /home/user/workspace/Test/Debug/_sds/swstubs/Test.elf'
make: *** [Test.elf] Error 1
sds++ log file saved as /home/user/workspace/Test/Debug/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

makefile:45: fallo en las instrucciones para el objetivo 'Test.elf'

09:58:27 Build Finished (took 3s.171ms)

In the tutorial, step 21, I have to include several libraries that does not appear in my "<OpenCV_location>\lib" location, such as tiff, lzma,... I am using "/opt/Xilinx/SDK/2017.3/data/embeddedsw/ThirdParty/opencv/aarch32/lib" as my "<OpenCV_location>\lib", I am not sure if this path is the one needed by Zybo, but it is the only one that I have found. I do not know if I have to include another library path, or if I have to install these missing libraries manually.

 

I am using SDx 2017.2 in Ubuntu 16.04

 

Thanks so much.

 

Tags (2)
0 Kudos
1 Reply
Contributor
Contributor
821 Views
Registered: ‎04-19-2017

Re: Error building xfOpencv using Zybo

Hello,

 

I think that lzma, tiff, png16, z, jepg and webp can not be found. Can you share a screenshot with Include Paths and Libraries search path from C/C++ Build Settings?

 

Best regards,

Bogdan

0 Kudos