qt creator 5 linux,qtcreator Qt_5 not found

Hello I have a problem starting qtcreator under Ubuntu 16.04. The reported error is:

qtcreator: /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5: version `Qt_5_PRIVATE_API' not found (required by /usr/lib/libQt5Widgets.so.5)

qtcreator: /usr/bin/../lib/x86_64-linux-gnu/qtcreator/../libQt5Gui.so.5: version `Qt_5' not found (required by /usr/lib/libQt5Widgets.so.5)

I tried different solutions from other threads but can't make it. Can anyone help or explain what exactly the problem is? A few days ago I was able to run qtcreator, but when I tried today I got this error. I think it may correspond to the installation of some application, unfortunately I can't say which one, I had to install a few.

Some more information:

qmake --version

QMake version 3.0

Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

I have only qt versions installed from the official repositories, there are following files installed:

/usr/lib/libQt5Core.so.5.7.0

/usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7

/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1

Could there be a configuration problem? Is there a way to reconfigure the paths?

Probably interesting, too, the same moment I can't run qtcreator I can't run rviz from the ros-kinetic-package.

rviz

This application failed to start because it could not find or load the Qt platform plugin "xcb"

in "".

Reinstalling the application may fix this problem.

Aborted (core dumped)

I tried to purge rviz, ros, qtcreator and installed it again, I installed qt5-default, but couldn't solve my problem.

Thank you for your help.

Edit: Okay I took some time and tried the solution from here again: Error on execution -version `Qt_5' not found required by

and this partially solves the problem. With LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ qtcreator I can start qtcreator again. But this of course doesn't solve the problem at all, how can I reconfigure it.

Edit 2: The LD_LIBRARY_PATH solution doesn't help for the rviz problem, it tells me:

LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ rviz

rviz: error while loading shared libraries: librviz.so: cannot open shared object file: No such file or directory

I then tried

LD_LIBRARY_PATH=/opt/ros/kinetic/lib rviz

which interestingly brought rviz to live.

So it seems that my paths are confused, the question is why and how to repair them (does it help to move the Qt5.7 libs and links to another directory)?

(Last thing to note, the other ros tools as rqt_console, rqt_plot, ... fail, too, if I don't add the LIBRARY_PATH in advance of the call.

EDIT 3: So I think I found out a little more inside. I have a camera from FLIR, which uses a library called spinnaker. To install, one has to install a bunch of .deb packages. One of these is spinview_qt-.deb. It contains the QT5.7 version and installs to /usr/lib.

dpkg --contents spinview-qt-1.10.0.31_amd64.deb

drwxr-xr-x root/root 0 2017-12-21 23:31 ./

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/share/

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/share/pixmaps/

-rw-r--r-- root/root 129041 2017-12-21 23:31 ./usr/share/pixmaps/SpinnakerIcon.ico

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/share/applications/

-rw-r--r-- root/root 154 2017-12-21 23:31 ./usr/share/applications/spinview.desktop

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/share/doc/

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/

-rw-r--r-- root/root 9190 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/Apache_2.0.txt

-rw-r--r-- root/root 623763 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/Spinnaker-Open-Source-Licenses.pdf

-rw-r--r-- root/root 1485 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/FreeBSD.txt

-rw-r--r-- root/root 27032 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/lgpl_2.1.txt

-rw-r--r-- root/root 1337 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/boost_license.txt

-rw-r--r-- root/root 981 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/FLIR_license.txt

-rw-r--r-- root/root 1597 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/genicam_license.txt

-rw-r--r-- root/root 251 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/changelog.gz

-rw-r--r-- root/root 5387 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/OpenTK_license.txt

-rw-r--r-- root/root 17577 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/freeimage_license.txt

-rw-r--r-- root/root 20993 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/WPCC_BY_SA_license.txt

-rw-r--r-- root/root 7816 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/lgpl_3.0.txt

-rw-r--r-- root/root 25864 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/lgpl_2.0.txt

-rw-r--r-- root/root 2232 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/CLALLSERIAL_license.txt

-rw-r--r-- root/root 10439 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/CPOL_1.02.txt

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/lib/

-rw-r--r-- root/root 5339752 2017-12-21 22:48 ./usr/lib/libQt5Core.so.5.7.0

-rw-r--r-- root/root 25047100 2017-12-21 22:48 ./usr/lib/libicudata.so.56.1

-rw-r--r-- root/root 1365560 2017-12-21 22:48 ./usr/lib/libQt5XcbQpa.so.5.7.0

-rw-r--r-- root/root 1432320 2017-12-21 22:48 ./usr/lib/libQt5Network.so.5.7.0

-rw-r--r-- root/root 5909528 2017-12-21 22:48 ./usr/lib/libQt5Gui.so.5.7.0

-rw-r--r-- root/root 356208 2017-12-21 22:48 ./usr/lib/libQt5OpenGL.so.5.7.0

-rw-r--r-- root/root 6614408 2017-12-21 22:48 ./usr/lib/libQt5Widgets.so.5.7.0

-rw-r--r-- root/root 3374854 2017-12-21 22:48 ./usr/lib/libicui18n.so.56.1

-rw-r--r-- root/root 2070162 2017-12-21 22:48 ./usr/lib/libicuuc.so.56.1

-rw-r--r-- root/root 527104 2017-12-21 22:48 ./usr/lib/libQt5DBus.so.5.7.0

drwxr-xr-x root/root 0 2017-12-21 23:31 ./usr/bin/

-rwxr-xr-x root/root 852544 2017-12-21 23:07 ./usr/bin/SpinView_QT

drwxr-xr-x root/root 0 2017-12-20 02:45 ./usr/bin/platforms/

-rw-r--r-- root/root 303544 2017-12-20 02:45 ./usr/bin/platforms/libqlinuxfb.so

-rw-r--r-- root/root 10192 2017-12-20 02:45 ./usr/bin/platforms/libqxcb.so

-rw-r--r-- root/root 141072 2017-12-20 02:45 ./usr/bin/platforms/libqoffscreen.so

-rw-r--r-- root/root 176720 2017-12-20 02:45 ./usr/bin/platforms/libqminimalegl.so

-rw-r--r-- root/root 140592 2017-12-20 02:45 ./usr/bin/platforms/libqminimal.so

-rw-r--r-- root/root 9968 2017-12-20 02:45 ./usr/bin/platforms/libqeglfs.so

-rwxr-xr-x root/root 70 2017-12-20 02:47 ./usr/bin/spinview

lrwxrwxrwx root/root 0 2017-12-21 23:31 ./usr/share/doc/spinview-qt1/LICENSE -> FLIR_license.txt

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5XcbQpa.so.5 -> libQt5XcbQpa.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Gui.so.5.7 -> libQt5Gui.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5XcbQpa.so.5.7 -> libQt5XcbQpa.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Network.so.5 -> libQt5Network.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Gui.so -> libQt5Gui.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5XcbQpa.so -> libQt5XcbQpa.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5OpenGL.so.5.7 -> libQt5OpenGL.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Network.so -> libQt5Network.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Gui.so.5 -> libQt5Gui.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5DBus.so -> libQt5DBus.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Core.so -> libQt5Core.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Widgets.so.5 -> libQt5Widgets.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5OpenGL.so -> libQt5OpenGL.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libicuuc.so.56 -> libicuuc.so.56.1

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Network.so.5.7 -> libQt5Network.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Core.so.5.7 -> libQt5Core.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libicudata.so.56 -> libicudata.so.56.1

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5DBus.so.5 -> libQt5DBus.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Widgets.so -> libQt5Widgets.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Widgets.so.5.7 -> libQt5Widgets.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5DBus.so.5.7 -> libQt5DBus.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libicui18n.so.56 -> libicui18n.so.56.1

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5OpenGL.so.5 -> libQt5OpenGL.so.5.7.0

lrwxrwxrwx root/root 0 2017-12-21 22:48 ./usr/lib/libQt5Core.so.5 -> libQt5Core.so.5.7.0

I think the problem may be that Ubuntu tries to find QT5 in /usr/bin before it looks in /usr/lib/x86_64-linux-gnu. So my question is, how can I achieve Ubuntu using the QT5.5.1 version as default again? Can I configure it or do I have to add the LD_LIBRARY_PATH always now? How can I uninstall the QT5.7 lib? Just delete the files listed above?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值