Jump to content
  • 0

OpenCV for Non-Revision Custom Platform on SDx 2017.4


Laumont

Question

Hi, I've trying to include OpenCV libraries into my SDx Application Project about detecting objects. I used the custom platform Digilint ZyboZ720 from github, by just adding the platform to the project as indicated in the SDSoC Readme.txt (https://github.com/Digilent/SDSoC-Zybo-Z7-20 (I didn't use petalinux nor Vivado). Then the process was:

- New App Project

- Custom Platform: Zybo Z720

-Empty App

- Inserting source files

- On SDS++ Compiler on directories I added the includes on the picture below, and also the libraries on the SDS++ Linker (adding also the path).

My problem is Ican't stop having this error refered to some libs he can't find, any solution?

c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libjpeg.so.62, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libwebp.so.6, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libpng16.so.16, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libtiff.so.5, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgobject-2.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libglib-2.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgstreamer-1.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgstapp-1.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgstriff-1.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgstpbutils-1.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libv4l1.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libv4l2.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libavcodec.so.57, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libavformat.so.57, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libavutil.so.55, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libswscale.so.4, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgphoto2.so.6, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgphoto2_port.so.12, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgtk-3.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgdk-3.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libcairo.so.2, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
c:/xilinx/sdk/2017.4/gnu/aarch32/nt/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libgdk_pixbuf-2.0.so.0, needed by C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so: undefined reference to `gst_structure_get_fraction'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_set_filter@PNG16_0'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so: undefined reference to `avcodec_find_encoder@LIBAVCODEC_57'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so: undefined reference to `gst_app_src_set_caps'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_get_IHDR@PNG16_0'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_imgcodecs.so: undefined reference to `png_create_read_struct@PNG16_0'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so: undefined reference to `g_time_val_add'
C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so: undefined reference to `sws_getContext@LIBSWSCALE_4'

collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'arm-linux-gnueabihf-g++     C:/workspace_sdsoc/pca_prueba/Debug/src/declaracion_funciones.o C:/workspace_sdsoc/pca_prueba/Debug/src/map_error.o C:/workspace_sdsoc/pca_prueba/Debug/src/mult_mat.o C:/workspace_sdsoc/pca_prueba/Debug/src/pca_en_c.o C:/workspace_sdsoc/pca_prueba/Debug/src/svd.o C:/workspace_sdsoc/pca_prueba/Debug/_sds/swstubs/portinfo.o {-LC:\workspace_sdsoc\opencv\aarch32\lib} {-LC:\Xilinx\SDK\2017.4\lib} {-LC:\Xilinx\SDK\2017.4\gnu\aarch32\nt\gcc-arm-linux-gnueabi\arm-linux-gnueabihf\lib} {-LC:\Xilinx\SDK\2017.4\gnu\aarch32\nt\gcc-arm-linux-gnueabi\arm-linux-gnueabihf\libc\lib} {-Wl,-rpath-link=C:\Xilinx\SDK\2017.4\gnu\aarch32\nt\gcc-arm-linux-gnueabi\arm-linux-gnueabihf\lib,-rpath-link=C:\Xilinx\SDK\2017.4\gnu\aarch32\nt\gcc-arm-linux-gnueabi\arm-linux-gnueabihf\libc\lib,-rpath-link=C:\workspace_sdsoc\opencv\aarch32\lib,-rpath-link=C:\workspace_sdsoc\opencv\aarch32\lib\libopencv_imgcodecs.so,-rpath-link=C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_videoio.so,-rpath-link=C:\workspace_sdsoc\opencv\aarch32\lib/libopencv_highgui.so,-rpath-link=C:\Xilinx\SDK\2017.4\lib} -lopencv_imgcodecs -ldl -lrt -lopencv_features2d -lopencv_calib3d -lopencv_flann -lopencv_imgproc -lopencv_core -lopencv_videoio -lopencv_highgui   -L C:/Xilinx/SDx/2017.4/target/aarch32-linux/lib -LC:/workspace_sdsoc/pca_prueba/Debug/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o C:/workspace_sdsoc/pca_prueba/Debug/_sds/swstubs/pca_prueba.elf'
sds++ log file saved as C:/workspace_sdsoc/pca_prueba/Debug/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [pca_prueba.elf] Error 1

 

Please help, this is destroying me:(

 

includes.JPG

libraries.JPG

linker.JPG

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

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

×
×
  • Create New...