qt的问题

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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值