You are not logged in.

#1 2017-02-01 14:36:12

Pacopag
Member
Registered: 2011-05-29
Posts: 287

[SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

After an upgrade, I was hitting this error when trying to run any qt5 app.  I got them working again by downgrading some packages, but maybe someone could shed light on why it happened in the first place.  Just some packages waiting for updates, maybe?

EDIT: As V1del points out below, this is not a solution.  See below for the real solution.

In case it helps someone with the same error, here are the steps I took to get qt5 apps working again.

1. Identify conflicting packages.

pacman -Ss | grep installed
extra/pyqt5-common 5.7.1-3 [installed]
extra/python-pyqt5 5.7.1-3 [installed]
extra/qt5-base 5.8.0-2 (qt qt5) [installed]
extra/qt5-script 5.8.0-1 (qt qt5) [installed]
extra/qt5-svg 5.8.0-1 (qt qt5) [installed]
extra/qt5-x11extras 5.8.0-1 (qt qt5) [installed]

Notice the packages with versions 5.8.x conflict with those with versions 5.7.x. 

Find matching packages in your cache with the same major version numbers

ls /var/cache/pacman/pkg/*qt5*

Downgrade the corresponding packages.  In my case, it was.

sudo pacman -U /var/cache/pacman/pkg/qt5-base-5.7.1-2-x86_64.pkg.tar.xz
sudo pacman -U /var/cache/pacman/pkg/qt5-script-5.7.1-1-x86_64.pkg.tar.xz
sudo pacman -U /var/cache/pacman/pkg/qt5-svg-5.7.1-1-x86_64.pkg.tar.xz
sudo pacman -U /var/cache/pacman/pkg/qt5-x11extras-5.7.1-1-x86_64.pkg.tar.xz

Now my qt5 apps work again!

I'm pretty sure that pacman -Syyu will re-introduce the same problem, but hopefully there will be 5.8.x packages for all soon.

Last edited by Pacopag (2017-02-01 14:56:56)

Offline

#2 2017-02-01 14:40:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,400
Website

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

Downgrading packages is not a solution: https://wiki.archlinux.org/index.php/Sy … nsupported

Please post your pacman.conf, pacman.log, and the output of

pacman -Qm

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-02-01 14:42:42

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

Right.  I was intending it to be temporary, until pacman magic fixed it.

pacman -Qm

android-sdk 25.2.5-1
android-sdk-build-tools r25.0.2-1
android-sdk-platform-tools r25.0.3-1
apulse 0.1.7-1
aurget 4.7.2-1
beanstalkd 1.10-1
chromedriver 2.27-1
gnome-perl 1.045-7
gnome-vfs 2.24.4-10
gnome-vfs-perl 1.082-5
gnomecanvas-perl 1.002-15
goocanvas1 1.0.0-4
google-chrome 56.0.2924.76-1
google-cloud-sdk 141.0.0-1
google-talkplugin 5.41.3.0-0
gtkam 1.0-1
jdk 8u121-1
js17 17.0.0-4
libbonobo 2.32.1-4
libbonoboui 2.24.5-3
libexif-gtk 0.4.0-2
libgnome 2.32.1-6
libgnome-data 2.32.1-6
libgnomeui 2.24.5-2
mingw-w64-zlib 1.2.11-1
ncurses5-compat-libs 6.0+20161224-1
nsis 3.0-1
orbit2 2.14.19-3
pdf2htmlex 0.14.6-2
perl-gnome2-wnck 0.16-11
perl-goo-canvas 0.06-9
perl-gtk2-imageview 0.05-9
perl-gtk2-unique 0.05-13
python-bcdoc 0.14.0-2
python-behave 1.2.5-1
python-guzzle-sphinx-theme 0.7.11-2
python-parse_type 0.3.4-1
qt5-styleplugins 5.0.0-7
robomongo-bin 0.9.0-1
shutter 0.93.1-6
skype 4.3.0.37-8
skype-electron 20160512-1
sublime-text-dev 3.3126-1
ttf-ms-fonts 2.0-10
vdfuse 82a-11
vertex-themes 20170128-1
virtualbox-ext-oracle 5.1.14-1
vpnc-gui 0.11-2
whatsie 2.1.0-4
xlhtml 0.5.1-4

Offline

#4 2017-02-01 14:43:45

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Last edited by Pacopag (2017-02-01 14:44:01)

Offline

#5 2017-02-01 14:44:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,189

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

All packages in the repos have been rebuilt for 5.8 compatibility. This includes those pyqt5 packages (they haven't had an official upstream release yet,  but were patched as necessary) What hasn't been updated automatically are AUR packages and especially problematic if you use e.g. a QT5 theme. You should rebuild any AUR packages depending on QT5.

Offline

#6 2017-02-01 14:46:19

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

cat /var/log/pacman.log | grep qt5  (let me know if you need the whole tail)

[2016-04-19 13:19] [ALPM] installed qt5-base (5.6.0-3)
[2016-04-19 13:19] [ALPM] installed qt5-script (5.6.0-1)
[2016-04-20 13:57] [PACMAN] Running 'pacman -S python-pyqt5'
[2016-04-20 13:57] [ALPM] installed pyqt5-common (5.5.1-2)
[2016-04-20 13:57] [ALPM] installed python-pyqt5 (5.5.1-2)
[2016-04-24 09:35] [ALPM] installed qt5-svg (5.6.0-1)
[2016-04-26 13:08] [ALPM] upgraded qt5-base (5.6.0-3 -> 5.6.0-4)
[2016-05-12 10:40] [ALPM] upgraded qt5-base (5.6.0-4 -> 5.6.0-5)
[2016-05-25 14:45] [ALPM] upgraded qt5-base (5.6.0-5 -> 5.6.0-6)
[2016-05-25 14:45] [ALPM] upgraded pyqt5-common (5.5.1-2 -> 5.6-1)
[2016-05-25 14:45] [ALPM] upgraded python-pyqt5 (5.5.1-2 -> 5.6-1)
[2016-06-03 19:24] [ALPM] upgraded qt5-base (5.6.0-6 -> 5.6.0-7)
[2016-06-27 09:22] [ALPM] upgraded qt5-base (5.6.0-7 -> 5.7.0-1)
[2016-06-27 09:22] [ALPM] upgraded qt5-script (5.6.0-1 -> 5.7.0-1)
[2016-06-27 09:22] [ALPM] upgraded qt5-svg (5.6.0-1 -> 5.7.0-1)
[2016-06-27 10:04] [PACMAN] Running 'pacman -S qt5'
[2016-06-27 10:06] [PACMAN] Running 'pacman -S qt5ct'
[2016-06-27 10:06] [ALPM] installed qt5ct (0.24-1)
[2016-06-27 10:07] [PACMAN] Running 'pacman -Rsn qt5ct'
[2016-06-27 10:07] [ALPM] removed qt5ct (0.24-1)
[2016-06-29 15:43] [PACMAN] Running 'pacman -S qt5-styleplugins'
[2016-06-29 15:44] [PACMAN] Running '/usr/bin/pacman -U /home/paco/projects/FitPlan/app/qt5-styleplugins/qt5-styleplugins-5.0.0-1-x86_64.pkg.tar.xz'
[2016-06-29 15:44] [ALPM] installed qt5-styleplugins (5.0.0-1)
[2016-07-03 08:14] [PACMAN] Running 'pacman -S qt5ct'
[2016-07-03 08:14] [ALPM] installed qt5ct (0.24-1)
[2016-07-03 08:24] [PACMAN] Running 'pacman -S qt5'
[2016-07-03 08:24] [PACMAN] Running 'pacman -S qt5'
[2016-07-03 08:24] [ALPM] reinstalled qt5-base (5.7.0-1)
[2016-07-03 08:25] [PACMAN] Running 'pacman -S qt5'
[2016-07-03 08:43] [PACMAN] Running '/usr/bin/pacman -U /home/paco/qt5-styleplugins/qt5-styleplugins-5.0.0-1-x86_64.pkg.tar.xz'
[2016-07-03 08:43] [ALPM] reinstalled qt5-styleplugins (5.0.0-1)
[2016-07-03 10:21] [PACMAN] Running 'pacman -S qtcurve-qt5'
[2016-07-03 10:22] [ALPM] installed qt5-x11extras (5.7.0-1)
[2016-07-03 10:22] [ALPM] installed qtcurve-qt5 (1.8.18.git20151017-1)
[2016-07-03 10:23] [PACMAN] Running 'pacman -Rsn qtcurve-qt5'
[2016-07-03 10:23] [ALPM] removed qtcurve-qt5 (1.8.18.git20151017-1)
[2016-07-03 10:23] [ALPM] removed qt5-x11extras (5.7.0-1)
[2016-07-18 11:21] [PACMAN] Running 'pacman -S qt5-x11extras'
[2016-07-18 11:21] [ALPM] installed qt5-x11extras (5.7.0-1)
[2016-08-03 22:34] [ALPM] upgraded qt5-base (5.7.0-1 -> 5.7.0-2)
[2016-08-11 14:33] [ALPM] upgraded qt5ct (0.24-1 -> 0.25-1)
[2016-08-20 11:03] [ALPM] upgraded pyqt5-common (5.6-1 -> 5.7-2)
[2016-08-20 11:03] [ALPM] upgraded python-pyqt5 (5.6-1 -> 5.7-2)
[2016-09-09 09:06] [ALPM] upgraded qt5ct (0.25-1 -> 0.26-1)
[2016-09-26 09:36] [ALPM] upgraded qt5ct (0.26-1 -> 0.27-1)
[2016-10-05 11:45] [ALPM] upgraded qt5-base (5.7.0-2 -> 5.7.0-3)
[2016-10-05 12:33] [PACMAN] Running '/usr/bin/pacman -U /home/paco/qt5-styleplugins/qt5-styleplugins-5.0.0-2-x86_64.pkg.tar.xz'
[2016-10-05 12:33] [ALPM] upgraded qt5-styleplugins (5.0.0-1 -> 5.0.0-2)
[2016-10-31 10:15] [PACMAN] Running '/usr/bin/pacman -U /home/paco/qt5-styleplugins/qt5-styleplugins-5.0.0-3-x86_64.pkg.tar.xz'
[2016-10-31 10:17] [ALPM] upgraded qt5-styleplugins (5.0.0-2 -> 5.0.0-3)
[2016-11-17 09:22] [PACMAN] Running '/usr/bin/pacman -U /home/paco/projects/InfiniteBot/qt5-styleplugins/qt5-styleplugins-5.0.0-4-x86_64.pkg.tar.xz'
[2016-11-17 09:23] [ALPM] upgraded qt5-styleplugins (5.0.0-3 -> 5.0.0-4)
[2016-11-29 09:55] [ALPM] upgraded qt5-base (5.7.0-3 -> 5.7.0-6)
[2016-12-05 09:34] [ALPM] upgraded qt5-base (5.7.0-6 -> 5.7.0-7)
[2016-12-12 12:58] [ALPM] upgraded qt5-base (5.7.0-7 -> 5.7.0-9)
[2016-12-21 10:00] [ALPM] upgraded qt5-base (5.7.0-9 -> 5.7.1-1)
[2016-12-21 10:00] [ALPM] upgraded qt5-script (5.7.0-1 -> 5.7.1-1)
[2016-12-21 10:00] [ALPM] upgraded qt5-svg (5.7.0-1 -> 5.7.1-1)
[2016-12-21 10:00] [ALPM] upgraded qt5-x11extras (5.7.0-1 -> 5.7.1-1)
[2016-12-21 10:12] [PACMAN] Running '/usr/bin/pacman -U /home/paco/qt5-styleplugins/qt5-styleplugins-5.0.0-5-x86_64.pkg.tar.xz'
[2016-12-21 10:12] [ALPM] upgraded qt5-styleplugins (5.0.0-4 -> 5.0.0-5)
[2017-01-09 09:50] [ALPM] upgraded pyqt5-common (5.7-2 -> 5.7-3)
[2017-01-09 09:50] [ALPM] upgraded python-pyqt5 (5.7-2 -> 5.7-3)
[2017-01-20 09:40] [ALPM] upgraded qt5-base (5.7.1-1 -> 5.7.1-2)
[2017-01-24 14:39] [ALPM] upgraded pyqt5-common (5.7-3 -> 5.7.1-2)
[2017-01-24 14:39] [ALPM] upgraded python-pyqt5 (5.7-3 -> 5.7.1-2)
[2017-01-26 10:41] [ALPM] upgraded qt5ct (0.27-1 -> 0.29-1)
[2017-01-26 11:39] [PACMAN] Running '/usr/bin/pacman -U /home/paco/projects/MXDeposit/qt5-styleplugins/qt5-styleplugins-5.0.0-6-x86_64.pkg.tar.xz'
[2017-01-26 11:39] [ALPM] upgraded qt5-styleplugins (5.0.0-5 -> 5.0.0-6)
[2017-01-30 10:59] [PACMAN] Running '/usr/bin/pacman -U /home/paco/qt5-styleplugins/qt5-styleplugins-5.0.0-7-x86_64.pkg.tar.xz'
[2017-01-30 13:04] [ALPM] upgraded qt5-styleplugins (5.0.0-6 -> 5.0.0-7)
[2017-01-31 11:35] [ALPM] upgraded qt5-base (5.7.1-2 -> 5.8.0-2)
[2017-01-31 11:35] [ALPM] upgraded pyqt5-common (5.7.1-2 -> 5.7.1-3)
[2017-01-31 11:35] [ALPM] upgraded python-pyqt5 (5.7.1-2 -> 5.7.1-3)
[2017-01-31 11:35] [ALPM] upgraded qt5-script (5.7.1-1 -> 5.8.0-1)
[2017-01-31 11:35] [ALPM] upgraded qt5-svg (5.7.1-1 -> 5.8.0-1)
[2017-01-31 11:35] [ALPM] upgraded qt5-x11extras (5.7.1-1 -> 5.8.0-1)
[2017-01-31 11:35] [ALPM] upgraded qt5ct (0.29-1 -> 0.29-4)
[2017-02-01 09:10] [PACMAN] Running 'pacman -R qt5'
[2017-02-01 09:10] [PACMAN] Running 'pacman -S qt5'
[2017-02-01 09:10] [PACMAN] Running 'pacman -S qt5'
[2017-02-01 09:11] [PACMAN] Running 'pacman -S qt5-base'
[2017-02-01 09:11] [ALPM] reinstalled qt5-base (5.8.0-2)
[2017-02-01 09:14] [PACMAN] Running 'pacman -S python-pyqt5'
[2017-02-01 09:14] [ALPM] reinstalled python-pyqt5 (5.7.1-3)
[2017-02-01 09:14] [PACMAN] Running 'pacman -S pyqt5-common'
[2017-02-01 09:14] [ALPM] reinstalled pyqt5-common (5.7.1-3)
[2017-02-01 09:16] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/qt5-base-5.7.1-2-x86_64.pkg.tar.xz'
[2017-02-01 09:16] [ALPM] downgraded qt5-base (5.8.0-2 -> 5.7.1-2)
[2017-02-01 09:16] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/qt5-script-5.7.1-1-x86_64.pkg.tar.xz'
[2017-02-01 09:17] [ALPM] downgraded qt5-script (5.8.0-1 -> 5.7.1-1)
[2017-02-01 09:19] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/qt5-svg-5.7.1-1-x86_64.pkg.tar.xz'
[2017-02-01 09:19] [ALPM] downgraded qt5-svg (5.8.0-1 -> 5.7.1-1)
[2017-02-01 09:20] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/qt5-x11extras-5.7.1-1-x86_64.pkg.tar.xz'
[2017-02-01 09:20] [ALPM] downgraded qt5-x11extras (5.8.0-1 -> 5.7.1-1)

Offline

#7 2017-02-01 14:50:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,189

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

As expected, you built qt5-styleplugins before the upgrade to QT 5.8 Update all repo packages and then rebuild qt5-styleplugins (don't just reinstall the package, make a proper new build)

Last edited by V1del (2017-02-01 14:53:48)

Offline

#8 2017-02-01 14:56:04

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Qt FATAL: Cannot mix incompatible Qt library (version 0x50701

Like a charm!!  Ignorance wouldn't have fixed this one.

sudo pacman -Rsn qt5-styleplugins
sudo pacman -Syyu

I use aurget to build/install aur packages

aurget -S qt5-styleplugins

Everything works perfectly now.  Thank you, V1del !

Last edited by Pacopag (2017-02-01 14:58:57)

Offline

Board footer

Powered by FluxBB