Shatur / optimus-manager-qt

An interface for Optimus Manager that allows to switch GPUs on Optimus laptops.
GNU General Public License v3.0
231 stars 19 forks source link

Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3) #113

Closed PowaBanga closed 2 years ago

PowaBanga commented 2 years ago

Bug description When i start optimus-manager-qt in a console, i recieve this error message :

Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)
[1]    5850 IOT instruction (core dumped)  optimus-manager-qt

and the application do not start.

Environment

is it normal ? What should i do to fix this message ?

Shatur commented 2 years ago

I don't have this issue. But just rebuild the package and it will work.

PowaBanga commented 2 years ago

yep, i just rebuild the package now. There is no difference :(, Can you reopen this issue ?

Shatur commented 2 years ago

Cannot mix incompatible Qt library (5.15.2) with this library (5.15.3)

It says that you compiled the application with 5.15.3, but using 5.15.2 in your system. It's not an issue related to the application, something wrong with your system configuration. I just can't help you here.

PowaBanga commented 2 years ago

how, thank you for rephrase the message, i understood it in the wrong way !

PowaBanga commented 2 years ago

hm, do you know which package is concerned by this ? because on my system all my QT5 packages are on the 5.15.3 version yet...

pacman -Qs qt5                                                1 ↵  
local/avahi 0.8+22+gfd482a7-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/python-pyqt5 5.15.6-7 (pyqt5)
    A set of Python bindings for the Qt5 toolkit
local/python-pyqt5-sip 12.9.1-1
    The sip module support for PyQt5
local/qt5-base 5.15.3+kde+r133-1 (qt qt5)
    A cross-platform application and UI framework
local/qt5-declarative 5.15.3+kde+r20-1 (qt qt5)
    Classes for QML and JavaScript languages
local/qt5-graphicaleffects 5.15.3+kde+r0-1 (qt qt5)
    Graphical effects for use with Qt Quick 2
local/qt5-location 5.15.3+kde+r0-1 (qt qt5)
    Provides access to position, satellite and area monitoring classes
local/qt5-multimedia 5.15.3+kde+r0-1 (qt qt5)
    Classes for audio, video, radio and camera functionality
local/qt5-quickcontrols 5.15.3+kde+r0-1 (qt qt5)
    Reusable Qt Quick based UI controls to create classic desktop-style user interfaces
local/qt5-quickcontrols2 5.15.3+kde+r4-1 (qt qt5)
    Next generation user interface controls based on Qt Quick
local/qt5-remoteobjects 5.15.3+kde+r0-1 (qt qt5)
    Inter-process communication (IPC) module developed for Qt
local/qt5-sensors 5.15.3+kde+r0-1 (qt qt5)
    Provides access to sensor hardware and motion gesture recognition
local/qt5-styleplugins 5.0.0.20170311-26
    Additional style plugins for Qt5
local/qt5-svg 5.15.3+kde+r12-1 (qt qt5)
    Classes for displaying the contents of SVG files
local/qt5-tools 5.15.3+kde+r1-1 (qt qt5)
    A cross-platform application and UI framework (Development Tools, QtHelp)
local/qt5-translations 5.15.3+kde+r2-1 (qt qt5)
    A cross-platform application and UI framework (Translations)
local/qt5-wayland 5.15.3+kde+r40-1 (qt qt5)
    Provides APIs for Wayland
local/qt5-webchannel 5.15.3+kde+r3-1 (qt qt5)
    Provides access to QObject or QML objects from HTML clients for seamless integration of Qt
    applications with HTML/JavaScript clients
local/qt5-webengine 5.15.8-10 (qt qt5)
    Provides support for web applications using the Chromium browser project
local/qt5-webkit 5.212.0alpha4-12
    Classes for a WebKit2 based implementation and a new QML API
local/qt5-websockets 5.15.3+kde+r3-1 (qt qt5)
    Provides WebSocket communication compliant with RFC 6455
local/qt5-x11extras 5.15.3+kde+r0-1 (qt qt5)
    Provides platform-specific APIs for X11
local/qtkeychain-qt5 0.13.2-1
    Provides support for secure credentials storage
local/quazip-qt5 1.2-2
    C++ wrapper for the ZIP/UNZIP C package
Shatur commented 2 years ago

So you do have 5.15.3, but optimus-manager-qt was built with 5.15.2. If you see the message above, you have not rebuilt it. Try to clean cache from your AUR helper or build the AUR package manually (using git clone and makepkg).

PowaBanga commented 2 years ago

yep, i did used an AUR helper to build my pckages. I build it with makepkg -srci on a new clone from aur.archlinux.org.... it's so strange...

Shatur commented 2 years ago

So you build it manually and it still doesn't work? Could you send me your build output log?

PowaBanga commented 2 years ago

yep ! so i build it again for you.

makepkg -srci                              master 
==> Making package: optimus-manager-qt 1.6.4-1 (Tue Mar  8 15:23:16 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (1) extra-cmake-modules-5.91.0-1

Total Installed Size:  2.25 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                            [-------------------------------] 100%
(1/1) checking package integrity                          [-------------------------------] 100%
(1/1) loading package files                               [-------------------------------] 100%
(1/1) checking for file conflicts                         [-------------------------------] 100%
(1/1) checking available disk space                       [-------------------------------] 100%
:: Processing package changes...
(1/1) installing extra-cmake-modules                      [-------------------------------] 100%
Optional dependencies for extra-cmake-modules
    python-pyxdg: to generate fastlane metadata for Android apps
    python-requests: to generate fastlane metadata for Android apps [installed]
    python-yaml: to generate fastlane metadata for Android apps [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Downloading optimus-manager-qt-1.6.4.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   142  100   142    0     0   1404      0 --:--:-- --:--:-- --:--:--  1405
100  355k    0  355k    0     0   591k      0 --:--:-- --:--:-- --:--:-- 1999k
==> Validating source files with sha256sums...
    optimus-manager-qt-1.6.4.tar.gz ... Passed
==> Extracting sources...
  -> Extracting optimus-manager-qt-1.6.4.tar.gz with bsdtar
==> Starting build()...
-- The CXX compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build
[  3%] Automatic MOC and UIC for target SingleApplication
[  3%] Built target SingleApplication_autogen
[  7%] Building CXX object _deps/singleapplication-build/CMakeFiles/SingleApplication.dir/SingleApplication_autogen/mocs_compilation.cpp.o
[ 10%] Building CXX object _deps/singleapplication-build/CMakeFiles/SingleApplication.dir/singleapplication.cpp.o
[ 14%] Building CXX object _deps/singleapplication-build/CMakeFiles/SingleApplication.dir/singleapplication_p.cpp.o
[ 17%] Linking CXX static library libSingleApplication.a
[ 17%] Built target SingleApplication
[ 21%] Automatic MOC and UIC for target optimus-manager-qt
[ 21%] Built target optimus-manager-qt_autogen
[ 25%] Generating optimus-manager-qt_zh.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_zh.qm'...
    Generated 125 translation(s) (32 finished and 93 unfinished)
[ 28%] Automatic RCC for _deps/masalla-src/masalla/masalla.qrc
[ 32%] Automatic RCC for _deps/circleflags-src/flags/flags.qrc
[ 35%] Generating optimus-manager-qt_de.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_de.qm'...
    Generated 125 translation(s) (62 finished and 63 unfinished)
[ 39%] Generating optimus-manager-qt_es.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_es.qm'...
    Generated 125 translation(s) (59 finished and 66 unfinished)
[ 42%] Generating optimus-manager-qt_fi.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_fi.qm'...
    Generated 125 translation(s) (125 finished and 0 unfinished)
[ 46%] Generating optimus-manager-qt_hu.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_hu.qm'...
    Generated 135 translation(s) (135 finished and 0 unfinished)
[ 50%] Generating optimus-manager-qt_pt.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_pt.qm'...
    Generated 129 translation(s) (129 finished and 0 unfinished)
[ 53%] Generating optimus-manager-qt_ro.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_ro.qm'...
    Generated 125 translation(s) (125 finished and 0 unfinished)
[ 57%] Generating optimus-manager-qt_ru.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_ru.qm'...
    Generated 135 translation(s) (135 finished and 0 unfinished)
[ 60%] Generating optimus-manager-qt_tr.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_tr.qm'...
    Generated 125 translation(s) (63 finished and 62 unfinished)
[ 64%] Generating optimus-manager-qt_uk.qm
Updating '/home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/src/optimus-manager-qt-1.6.4/build/optimus-manager-qt_uk.qm'...
    Generated 135 translation(s) (135 finished and 0 unfinished)
[ 67%] Building CXX object CMakeFiles/optimus-manager-qt.dir/optimus-manager-qt_autogen/mocs_compilation.cpp.o
[ 71%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/appsettings.cpp.o
[ 75%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/daemonclient.cpp.o
[ 78%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/main.cpp.o
[ 82%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/optimusmanager.cpp.o
[ 85%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/optimussettings.cpp.o
[ 89%] Building CXX object CMakeFiles/optimus-manager-qt.dir/src/settingsdialog.cpp.o
[ 92%] Building CXX object CMakeFiles/optimus-manager-qt.dir/optimus-manager-qt_autogen/XI3V7B3WR2/qrc_flags.cpp.o
[ 96%] Building CXX object CMakeFiles/optimus-manager-qt.dir/optimus-manager-qt_autogen/QPSOK6M4KT/qrc_masalla.cpp.o
[100%] Linking CXX executable optimus-manager-qt
[100%] Built target optimus-manager-qt
==> Entering fakeroot environment...
==> Starting package()...
-- Install configuration: ""
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/bin/optimus-manager-qt
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_de.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_es.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_fi.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_hu.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_pt.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_ro.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_ru.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_tr.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_uk.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/Optimus Manager/Optimus Manager Qt/translations/optimus-manager-qt_zh.qm
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/applications/io.optimus_manager.OptimusManagerQt.desktop
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/128x128/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/16x16/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/16x16/status/cpu.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/16x16/status/prime-hybrid.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/16x16/status/prime-nvidia.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/22x22/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/22x22/status/cpu.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/22x22/status/prime-hybrid.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/22x22/status/prime-nvidia.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/24x24/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/24x24/status/cpu.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/24x24/status/prime-intel.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/24x24/status/prime-nvidia.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/256x256/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/48x48/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/512x512/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/64x64/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/96x96/apps/optimus-manager.svg
-- Installing: /home/powabanga/Documents/trucs/pkbuilds/optimus-manager-qt/pkg/optimus-manager-qt/usr/share/icons/hicolor/scalable/apps/optimus-manager.svg
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "optimus-manager-qt"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: optimus-manager-qt 1.6.4-1 (Tue Mar  8 15:23:49 2022)
==> Removing installed dependencies...
checking dependencies...

Packages (1) extra-cmake-modules-5.91.0-1

Total Removed Size:  2.25 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing extra-cmake-modules                        [-------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Installing package optimus-manager-qt with pacman -U...
loading packages...
warning: optimus-manager-qt-1.6.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) optimus-manager-qt-1.6.4-1

Total Installed Size:  0.78 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                            [-------------------------------] 100%
(1/1) checking package integrity                          [-------------------------------] 100%
(1/1) loading package files                               [-------------------------------] 100%
(1/1) checking for file conflicts                         [-------------------------------] 100%
(1/1) checking available disk space                       [-------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling optimus-manager-qt                     [-------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
==> Cleaning up...
Shatur commented 2 years ago

Could you also send me the produced CMakeCache.txt from the build folder?

PowaBanga commented 2 years ago

ok i fixed it, i had to recompile qt5-styleplugins too thank you very much for your help !

Shatur commented 2 years ago

Oh, okay, nice :)