1,ROS Kinetic 会自动安装 OpenCV, JPEG
wget https://raw.githubusercontent.com/oroca/oroca-ros-pkg/master/ros_install.sh && \
chmod 755 ./ros_install.sh && bash ./ros_install.sh catkin_ws kinetic
-lpthread 环境报错 怀疑是原来弄caffe2的时候降低了 gcc 为4。9 ,现在改回默认的5。4
cd /usr/bin
sudo mv gcc gcc.bak#备份
sudo ln -s gcc-5 gcc#重新链接
sudo mv g++ g++.bak
sudo ln -s g++-5 g++
2,
ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
到根目录 cd /
pip install catkin_pkg
正常安装后用python 检测
3,进入 MYNT-EYE-D-SDK 源码make ros
编译报错:
fatal error: usb.h: No such file or directory
解决办法:
apt-get install libusb-dev
4, 编译报错:
ModuleNotFoundError: No module named 'em'
解决办法:
python -m pip install empy
5,编译报错:
/opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_imgcodecs3.so.3.3.1:对‘TIFFReadRGBAStrip@LIBTIFF_4.0’未定义的引用
/opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_imgcodecs3.so.3.3.1:对‘TIFFReadDirectory@LIBTIFF_4.0’未定义的引用
/opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_imgcodecs3.so.3.3.1:对‘TIFFWriteEncodedStrip@LIBTIFF_4.0’未定义的引用
解决办法:查看
locate libtiff.so
/home/anaconda3/lib/libtiff.so
/home/anaconda3/lib/libtiff.so.5
/home/anaconda3/lib/libtiff.so.5.3.0
/home/fanaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so
/home/anaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so.5
/home/anaconda3/pkgs/libtiff-4.0.9-he85c1e1_2/lib/libtiff.so.5.3.0
/usr/lib/i386-linux-gnu/libtiff.so.5
/usr/lib/i386-linux-gnu/libtiff.so.5.2.4
/usr/lib/x86_64-linux-gnu/libtiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
ros默认安装opencv 3。3,但是会与anaconda的设置的opencv及tifflib环境冲突
所以把mv ~/anaconda3/lib/libtiff* ~/bak/ 移走原有anaconda3中的冲突libtiff 保证路径下暂时不冲突,make ros编译通过 。