Incompatible library version: QtBluetooth requires version 5.14.0 or later, but QtConcurrent provides version 5.9.0
-
I am new to Qt and encounter this problem of Incompatible versions.
I am using macOS Catalina 10.15.7 with Qt 5.14.2.
There are 2 similar problems:
https://forum.qt.io/topic/94142/incompatible-library-version-qwt-requires-version-5-10-0-or-later
but non of them helped me -
I install Qt 5.14.2 and it did not solved my problem.
In my app, I uses QtBluetooth and as far as I understood, QtConcurrent is a built in framework in Qt and QtBluetooth use's it by default behind the scenes.
When I build the project and try to open my app, the app does not opened and I got this message:Dyld Error Message: Library not loaded: @rpath/QtConcurrent.framework/Versions/5/QtConcurrent Referenced from: /Users/USER/*/QtBluetooth.framework/Versions/5/QtBluetooth Reason: Incompatible library version: QtBluetooth requires version 5.14.0 or later, but QtConcurrent provides version 5.9.0
I checked the versions of QtBluetooth and QtConcurrent :
the QtBluetooth is 5.14.2:
image url)Screen Shot 2022-04-13 at 12.05.18
and the QtConcurrent is also 5.14.2 (I checked it via o tool:
I was looking for a way to install it manually and modify the version to 5.14.2, something like that:
QT += concurrent widgets CONFIG += cmdline SOURCES += main.cpp target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction INSTALLS += target
taken from:(https://code.qt.io/cgit/qt/qtbase.git/tree/examples/qtconcurrent/runfunction/runfunction.pro?h=5.14
but when I write it in my pro file:
QT += core concurrent widgets webenginewidgets gui xml network printsupport bluetooth serialport
the build got failed with the message:
(
Screen Shot 2022-04-13 at 12.24.16I don't sure that it is the right way since I am not using QtConcurrent directly.
I would appreciate any help!Screen Shot 2022-04-13 at 14.45.32 -
Hi and welcome to devnet,
Do you have another version of Qt installed on your system ?
-
Hi and sorry for the late response (due to holidays)
yes, I have 5.9.0 and 5.14.0 (For historical reasons: this is an old project and we do not want to delete the version of 5.9.0 so quickly unless that is the only way).
I made double check that the current process is running on 5.14.0 but somehow my process actually get connected to QtConcurrent framwork of 5.9.0 version. -
Do you have any environment variable like DYLD_LIBRARY_PATH set ?