1. 找不到libQt5Gui.so
[ERROR] [1504584053.003016675]: PluginlibFactory: The plugin for class 'aubo_panel/Teleop' failed to load. Error: Failed to load library /home/wgb/catkin_ws/devel/lib//libaubo_panel.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not found (required by /home/wgb/catkin_ws/devel/lib//libaubo_panel.so))
解决办法
wgb@wgb:~$ cp Downloads/qt-opensource-linux-x64-5.7.0.run .
wgb@wgb:~$ sudo chmod a+x qt-opensource-linux-x64-5.7.0.run
wgb@wgb:~$ ./qt-opensource-linux-x64-5.7.0.run
wgb@wgb:~$ sudo cp -a Qt5.7.0/5.7/gcc_64/lib/. /usr/lib/x86_64-linux-gnu/
wgb@wgb:~$ gedit ~/.bashrc
wgb@wgb:~$ source ~/.bashrc
/。bashrc的内容为
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# added by Anaconda3 4.4.0 installer
export PATH="/home/wgb/anaconda2/bin:$PATH"
export LD_LIBRARY_PATH=$HOME/freenect2/lib:/usr/lib:/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libfreenect2/lib
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wgb/Qt5.7.0/5.7/gcc_64/lib
export CUDA_HOME=/usr/local/cuda
source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash
source /home/wgb/catkin_ws/devel/setup.bash
当时LD_LIBRARY_PATH写错了
2.