09-26-2018 02:00 AM
I am building an xfOpenCV example on zed-zynq-xc7z020 in Sdx 2018.2 on Ubuntu16.04 ,but failed .Here is my settings:
and here is the building error information: In my opinion, the error is due to my libs----libgtk-3.so.0,libcairo.so.2,etc are 64bit .
Preliminary link application ELF /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libgtk-3.so.0, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libgdk-3.so.0, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libcairo.so.2, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libgdk_pixbuf-2.0.so.0, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libgobject-2.0.so.0, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libglib-2.0.so.0, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libjpeg.so.62, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libwebp.so.6, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libpng16.so.16, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: warning: libtiff.so.5, needed by /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link) /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so:对‘png_set_filter@PNG16_0’未定义的引用 /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so:对‘png_get_IHDR@PNG16_0’未定义的引用 /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_imgcodecs.so:对‘png_create_read_struct@PNG16_0’未定义的引用 /opt/Xilinx/SDK/2018.2/data/embeddedsw/ThirdParty/opencv/aarch32/lib/libopencv_highgui.so:对‘g_time_val_add’未定义的引用
The following is my questions:
1. We can see gcc-arm-linux-gnueabi is 32 bit from the error info "/opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/..",right ? So all of my libraries used in the project must be 32 bit libraries ?
2. If the libraries to be used in the project are 64 bit , from the info "/opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/.." , do i have only two choices ? either change the libs from 64 bit to 32 bit or change the gcc-arm-linux-gnueabi to 64 bit (does it exist ?) ?
09-28-2018 07:42 PM
has solved !
09-28-2018 07:42 PM
has solved !
12-12-2018 12:52 AM - edited 12-12-2018 12:53 AM
Hi @wd-hyj, could you share the way you solve this issue?
Thank you very much!
12-13-2018 12:17 AM
Oh, thanks, I fixed it
Just make it correct in SDS++ Linker > Libraries (add lib name) and copy the lack of lib*.so (after install) to the reference libraries, remember to link the name
06-20-2019 07:34 AM
Hello, what you mean is to download the missing library and put it in the appropriate location. As shown in the picture, it is my problem.
06-20-2019 08:08 AM - edited 06-20-2019 08:11 AM
Oh I had the same issue, given that I already have it pointing to the directory with the correct .so files in
FYI I'm working on an Avnet Ultra96 board
06-21-2019 04:04 AM
What you mean is to download the relevant so file and put it in the appropriate location.