You are not logged in.

#1 2017-06-09 09:24:03

GertJan
Member
Registered: 2017-06-07
Posts: 4

[Solved] Cant launch Qt apps

I'm trying to launch an app that uses Qt (https://www.archlinux.org/packages/comm … qmapshack/).
When launching nothing happens. Using

journalctl | grep qmapshack

gives

Jun 09 10:59:41 archlap sudo[6706]:  gertjan : TTY=pts/1 ; PWD=/home/gertjan ; USER=root ; COMMAND=/usr/bin/pacman -Sy qmapshack
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5Script.so.5)
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5Sensors.so.5)
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5Positioning.so.5)
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5Quick.so.5)
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5Qml.so.5)
Jun 09 11:01:39 archlap qmapshack.desktop[6886]: qmapshack: /usr/lib/libQt5Core.so.5: version `Qt_5.9' not found (required by /usr/lib/libQt5WebChannel.so.5)

Searching online gives a solution to the problem (https://stackoverflow.com/questions/361 … y#36195503)

ssue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu from distro which ld will use by default. To avoid such issues you can compile with -rpath or run with LD_LIBRARY_PATH=/path/to/your/Qt/libs/location to help linker find needed Qt version.

And thats where i'm stuck. Do I need to compile Qt? Or can I change/copy the Qt location somehow?

uname -a
Linux archlap 4.11.3-1-ARCH #1 SMP PREEMPT Sun May 28 10:40:17 CEST 2017 x86_64 GNU/Linux

/edit
check if qt is installed

pacman -Q | grep qt
qt5-base 5.8.0-12
qt5-declarative 5.9.0-1
qt5-location 5.9.0-1
qt5-multimedia 5.9.0-1
qt5-script 5.9.0-1
qt5-sensors 5.9.0-1
qt5-serialport 5.9.0-1
qt5-webchannel 5.9.0-1
qt5-webkit 5.9.0-1
qt5-x11extras 5.8.0-1
qt5-xmlpatterns 5.9.0-1

A simple pacman -Syu fixed it :headbump

Last edited by GertJan (2017-06-09 09:59:36)

Offline

#2 2017-06-09 10:01:13

loqs
Member
Registered: 2014-03-06
Posts: 17,326

Re: [Solved] Cant launch Qt apps

GertJan wrote:
pacman -Q | grep qt
qt5-base 5.8.0-12
qt5-declarative 5.9.0-1
qt5-location 5.9.0-1
qt5-multimedia 5.9.0-1
qt5-script 5.9.0-1
qt5-sensors 5.9.0-1
qt5-serialport 5.9.0-1
qt5-webchannel 5.9.0-1
qt5-webkit 5.9.0-1
qt5-x11extras 5.8.0-1
qt5-xmlpatterns 5.9.0-1
$ pacman -Si qt5-base
Repository      : extra
Name            : qt5-base
Version         : 5.9.0-2

Partial_upgrades_are_unsupported

Offline

Board footer

Powered by FluxBB