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: 
1,542 Views
Registered: ‎08-28-2018

Problems with linking OpenCV with SDSoC 18.2

Jump to solution

Hello there

 

My problem is the following:
I am trying to link OpenCV with SDSoC 18.2. I have followed the steps from the Xilinx OpenCV User Guide, but it doesn't want to work for some reason.

I use Windows 10 and I would like to run this project on a ZedBoard.

Steps I have done so far:

 

1) Include path step

I used C:/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/include

 

2) Link the library step

I used Librarys(-l) with opencv_core, opencv_features2d, opencv_highgui, opencv_imgproc,

and search path(-L)with C:/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib

 

The program I would like to compile is very simple:

 

 

#include <opencv2\opencv.hpp>

using namespace cv;

int main()
{
	Mat testColour = imread("kep.png", CV_LOAD_IMAGE_UNCHANGED);
	imshow("pine_colour", testColour);
	imwrite("output.jpg", testColour);
	waitKey();
}

 

And this is what I receive, while trying to build the project:

 

(c) Copyright 2012-2018 Xilinx, Inc. All Rights Reserved.
#-----------------------------------------------------------
# Tool version  : sds++ 2018.2 SW Build 2258646 on Thu Jun 14 20:04:27 MDT 2018
# Start time    : Tue Aug 28 10:11:38 +0200 2018
# Command line  : sds++ {-LC:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib} --remote_ip_cache C:/Users/rrb12/Desktop/test/ip_cache -o test1.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 -dmclkid 1 -sds-sys-config linux -sds-proc linux -sds-pf zed
# Log file      : C:/Users/rrb12/Desktop/test/test1/Debug/_sds/reports/sds.log
# Journal file  : C:/Users/rrb12/Desktop/test/test1/Debug/_sds/reports/sds.jou
# Report file   : C:/Users/rrb12/Desktop/test/test1/Debug/_sds/reports/sds.rpt
#-----------------------------------------------------------

Removing implementation files from previous run
Libraries: opencv_core opencv_imgproc opencv_imgcodecs opencv_features2d opencv_calib3d opencv_flann
Library Paths {C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib} {}
Searching for static library libopencv_core.a
Searching for static library libopencv_imgproc.a
Searching for static library libopencv_imgcodecs.a
Searching for static library libopencv_features2d.a
Searching for static library libopencv_calib3d.a
Searching for static library libopencv_flann.a
Analyzing object files
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xdinfo=alloc --only-section=.xdinfo C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_accel.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xdinfo.xml
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xddata=alloc --only-section=.xddata C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_accel.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xddata.xml
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xdsdata=alloc --only-section=.xdsdata C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_accel.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xf_accumulate_image_accel.o.xml
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xdinfo=alloc --only-section=.xdinfo C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_tb.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xdinfo.xml
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xddata=alloc --only-section=.xddata C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_tb.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xddata.xml
arm-linux-gnueabihf-objcopy -O binary --set-section-flags .xdsdata=alloc --only-section=.xdsdata C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_tb.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.data/xf_accumulate_image_tb.o.xml
C:/Xilinx/SDx/2018.2/bin/build_xd_ip_db -ip_search 0  -sds-pf C:/Users/rrb12/Desktop/test/test1/Debug/.Xil/zed.hpfm    -o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/.cdb/xd_ip_db.xml  
INFO: Using user-defined path for XILINX_XD environment variable C:/Xilinx/SDx/2018.2
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
arm-linux-gnueabihf-gcc       -I C:/Xilinx/SDx/2018.2/target/aarch32-linux/include  -D HLS_NO_XIL_FPO_LIB  -I C:/Xilinx/Vivado/2018.2/include -c  C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c: In function '_p0_cf_framework_open':
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
     exit(-1);
     ^~~~
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: warning: incompatible implicit declaration of built-in function 'exit'
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
arm-linux-gnueabihf-g++      -I C:/Xilinx/SDx/2018.2/target/aarch32-linux/include  -D HLS_NO_XIL_FPO_LIB  -I C:/Xilinx/Vivado/2018.2/include -c  C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.c
arm-linux-gnueabihf-ar crs C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/libxlnk_stub.a C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.o
Compile accelerator stub functions
arm-linux-gnueabihf-ar crs C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/libtest1.a C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.o 
Enable generation of boot files
Compile hardware access API functions
arm-linux-gnueabihf-gcc       -I C:/Xilinx/SDx/2018.2/target/aarch32-linux/include  -D HLS_NO_XIL_FPO_LIB  -I C:/Xilinx/Vivado/2018.2/include -c  C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c: In function '_p0_cf_framework_open':
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
     exit(-1);
     ^~~~
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: warning: incompatible implicit declaration of built-in function 'exit'
C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.c:24:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
arm-linux-gnueabihf-g++      -I C:/Xilinx/SDx/2018.2/target/aarch32-linux/include  -D HLS_NO_XIL_FPO_LIB  -I C:/Xilinx/Vivado/2018.2/include -c  C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.c
arm-linux-gnueabihf-ar crs C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/libxlnk_stub.a C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.o
arm-linux-gnueabihf-ar crs C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/libtest1.a C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/cf_stub.o 
Link application ELF file
arm-linux-gnueabihf-g++     C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_accel.o C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_tb.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o {-LC:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib} -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_features2d -lopencv_calib3d -lopencv_flann   -L C:/Xilinx/SDx/2018.2/target/aarch32-linux/lib -LC:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/test1.elf
c:/xilinx/sdk/2018.2/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libjpeg.so.62, needed by C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2018.2/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libwebp.so.6, needed by C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2018.2/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libpng16.so.16, needed by C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2018.2/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libtiff.so.5, needed by C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_filter@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_get_IHDR@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_create_read_struct@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_simple_progression@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_finish_compress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_write_scanlines@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFReadRGBATile'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPEncodeBGRA'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFSetWarningHandler'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_write_image@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPEncodeLosslessBGRA'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_std_error@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFSetField'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPDecodeBGRAInto'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_set_quality@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_finish_decompress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFClose'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_compression_strategy@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFReadRGBAStrip'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_stdio_src@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFGetField'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_gray_to_rgb@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_create_write_struct@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_alloc_huff_table@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_error@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_get_io_ptr@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_set_defaults@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_read_scanlines@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_CreateCompress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_interlace_handling@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_write_info@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_palette_to_rgb@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_destroy_read_struct@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFReadEncodedTile'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_read_update_info@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFWriteScanline'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_start_compress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFReadDirectory'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFReadEncodedStrip'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_CreateDecompress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_bgr@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_start_decompress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_destroy_decompress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFIsTiled'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFWriteEncodedStrip'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_IHDR@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFOpen'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_destroy_write_struct@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_expand_gray_1_2_4_to_8@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFSetErrorHandler'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPEncodeBGR'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_resync_to_restart@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_rgb_to_gray@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_longjmp_fn@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_create_info_struct@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_destroy_compress@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_calc_output_dimensions@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPEncodeLosslessBGR'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_strip_16@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFRGBAImageOK'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPDecodeBGRInto'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFScanlineSize'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_read_header@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `TIFFNumberOfStrips'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_write_fn@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_write_end@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_packing@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_read_info@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_read_image@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `jpeg_stdio_dest@LIBJPEG_6.2'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_read_end@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `WebPGetFeaturesInternal'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_read_fn@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_get_tRNS@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_compression_level@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_swap@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_init_io@PNG16_0'
C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_strip_alpha@PNG16_0'
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'arm-linux-gnueabihf-g++     C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_accel.o C:/Users/rrb12/Desktop/test/test1/Debug/src/xf_accumulate_image_tb.o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/portinfo.o {-LC:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib} -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_features2d -lopencv_calib3d -lopencv_flann   -L C:/Xilinx/SDx/2018.2/target/aarch32-linux/lib -LC:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o C:/Users/rrb12/Desktop/test/test1/Debug/_sds/swstubs/test1.elf'
sds++ log file saved as C:/Users/rrb12/Desktop/test/test1/Debug/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed
sds++ completed at Tue Aug 28 10:11:58 +0200 2018

 

Any idea about what am I doing wrong, and what could be the solution? 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
1,498 Views
Registered: ‎08-28-2018

Re: Problems with linking OpenCV with SDSoC 18.2

Jump to solution

All right, I have solved this issue. I was using a wrong OpenCV dir.

0 Kudos
4 Replies
Highlighted
1,499 Views
Registered: ‎08-28-2018

Re: Problems with linking OpenCV with SDSoC 18.2

Jump to solution

All right, I have solved this issue. I was using a wrong OpenCV dir.

0 Kudos
Contributor
Contributor
1,327 Views
Registered: ‎06-03-2018

Re: Problems with linking OpenCV with SDSoC 18.2

Jump to solution

Hello,@richardradli

 

I  have the same problem.

Could you tell me the correct opencv dir?

Much thanks.

0 Kudos
1,318 Views
Registered: ‎08-28-2018

Re: Problems with linking OpenCV with SDSoC 18.2

Jump to solution

Hello!

Here is the link for the working OpenCV
https://github.com/Xilinx/CHaiDNN/tree/master/SD_Card/opencv

And these are the libs that you should use in order to compile the code succesfully
opencv_core
opencv_photo
opencv_videoio
opencv_highgui
opencv_ml
opencv_imgproc
opencv_imgcodecs
opencv_features2d
opencv_calib3d
opencv_flann

Adventurer
Adventurer
1,314 Views
Registered: ‎06-05-2018

Re: Problems with linking OpenCV with SDSoC 18.2

Jump to solution
change 'C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib/libopencv_imgcodecs.so' to 'C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\opencv\aarch32\lib\libopencv_imgcodecs.so' !
0 Kudos