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!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer yaoyinqi
Observer
132 次查看
注册日期: ‎06-21-2018

HLS在C仿真时报关于libopencv的ERROR

Hi,ALL

我现在测试一个示例,代码如附件所示,C仿真时报了关于libopencv的ERROR,如下所示。请问,这个问题应该怎么去解决?谢谢!

【HLS版本2017.1】

INFO: [SIM 211-2] *************** CSIM start ***************
INFO: [SIM 211-4] CSIM will launch GCC as the compiler.
Compiling ../../../../top_tb.cpp in debug mode
Generating csim.exe
/usr/bin/ld: warning: libjpeg.so.62, needed by /opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libtiff.so.3, needed by /opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFReadEncodedStrip'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_read_scanlines'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_alloc_huff_table'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_set_defaults'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_write_scanlines'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_finish_compress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFReadEncodedTile'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFGetField'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFReadRGBATile'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFScanlineSize'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFSetField'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_set_quality'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFSetWarningHandler'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_resync_to_restart'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFIsTiled'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFWriteScanline'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_destroy_decompress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFRGBAImageOK'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFOpen'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_CreateDecompress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_read_header'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFReadRGBAStrip'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFSetErrorHandler'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_stdio_src'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_destroy_compress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_stdio_dest'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `TIFFClose'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_finish_decompress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_start_decompress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_start_compress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_CreateCompress'
/opt/Xilinx/Vivado_HLS/2017.1/lnx64/tools/opencv/libopencv_highgui.so: undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make: *** [csim.exe] Error 1
ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s).
INFO: [SIM 211-3] *************** CSIM finish ***************

0 项奖励
1 条回复
Voyager
Voyager
66 次查看
注册日期: ‎10-24-2018

回复: HLS在C仿真时报关于libopencv的ERROR

@yaoyinqi

The dynamic libraries libjpeg and libtiff are used by libopencv itself... They are not being found...

They need to be installed.. and if already installed, they need to be found in the library paths.

Hope that helps

If so, please mark as 'solution accepted'

0 项奖励