配置
environment: ubuntu 14.04.4 LTS
vivado 2016.4
过程
运行make csim编译出现以下错误:
尝试用以下方式解决:
apt-get install libtiff*
无果
发现前方有显示:
/usr/bin/ld: warning: libjpeg.so.62, needed by /opt/Xilinx/Vivado_HLS/2016.4/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/2016.4/lnx64/tools/opencv/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
缺少包,安装
apt-get install libjpeg.so.62
会找不到包。发现是因为此包时32的,ubuntu默认是64位
apt-get install libjpeg63:i386
同样方式
apt-get install libtiff3:i386
apt-get install libtiff.so.3
都安不上libtiff.so.3包
solution1:
Getting libtiff.so.3 just download tiff-3.9.7.zip from here, unzip it, cd into tiff-3.9.7, then do './configure; make' then cp libtiff/.libs/libtiff.so.3* to /usr/lib64, run ldconfig .
进入网站下载:[here](http://download.osgeo.org/libtiff/}
解压后进入目录,运行:
./configure
make
su
make install
再运行发现错误:error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
sudo apt-get install libjpeg62-dev
再运行,test pass!!
总结:
libjpeg:
apt-get install libjpeg62-dev
libtiff
进入网站下载:here
解压后进入目录,运行:
./configure
make
su
make install