cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,351 Views
Registered: ‎06-05-2018

Error building xfOpencv on zed-zynq-xc7z020

Jump to solution

I am building an xfOpenCV example on zed-zynq-xc7z020 in Sdx 2018.2 on Ubuntu16.04 ,but failed .Here is my settings:

TIM图片20180926164936.jpg

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 ?) ?

 

 

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
1,314 Views
Registered: ‎06-05-2018
0 Kudos
6 Replies
Highlighted
Adventurer
Adventurer
1,315 Views
Registered: ‎06-05-2018
0 Kudos
Highlighted
Participant
Participant
1,057 Views
Registered: ‎03-28-2018

Hi @wd-hyj, could you share the way you solve this issue?

Thank you very much!

0 Kudos
Highlighted
Participant
Participant
1,033 Views
Registered: ‎03-28-2018

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

 

 

0 Kudos
Highlighted
Observer
Observer
568 Views
Registered: ‎04-20-2019

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.1.png2.png

0 Kudos
Highlighted
560 Views
Registered: ‎06-14-2019

@zxbzsb 

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

0 Kudos
Highlighted
Observer
Observer
549 Views
Registered: ‎04-20-2019

What you mean is to download the relevant so file  and put it in the appropriate location.

0 Kudos