Solved Raspberry:Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903)
-
Hi everyone...
I installed the Qt 5.9.2 on may raspberry. I compile and run the example tableview. This example has the files .qml
I have the follow error :
Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903) .
Could you help me ? -
Hi and welcome to devnet forum
From where did you get the Qt libraries for raspberry?
Did you compile them yourself from source?Newest version of Qt libs is 5.9.2. Release for Qt 5.9.3 was planned for November, but I guess slipped at least to next year.
Certainly I recommend to using Qt 5.9.2 and for sure you should not mix source of versions.
-
Hi,
I followed this guide https://wiki.qt.io/RaspberryPi2EGLFS, to install the Qt on my raspberry.
At the step 10, I executed the command git clone git://code.qt.io/qt/qtbase.git -b 5.9. Until to the step 15 it's good. Then I downloaded other qt module ( step 16 of the guide ) and I build them, but for the qtquickcontrols module (git clone git://code.qt.io/qt/qtquickcontrols.git -b 5.9) ,I've obtained the following error : Project ERROR: Unknown module(s) in QT: qml quick quick-private qml-private.
How to workaround I downloaded all the qt library from https://download.qt.io/official_releases/qt/5.9/5.9.2/single/qt-everywhere-opensource-src-5.9.2.tar.xzt and I repeated the steps from 10 to 15 with successfully.
Then I ran the example tableview, to test the qtquickcontrols module , I've obtained the following error: Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903) .
Another question.... When I execute the following command :-
git clone git://code.qt.io/qt/qtbase.git -b 5.9
-
git clone git://code.qt.io/qt/qtquickcontrols.git -b 5.9
what version I download , the 5.9.2 or the 5.9.3?
Because if with the commando git clone git://code.qt.io/qt/qtbase.git -b 5.9, I download the 5.9.3, when I executed the following command :
- rsync -avz qt5pi pi@raspberrypi.local:/usr/local
for the two builds , the command rsync did the delta from the two builds , maybe ,for this reason I've obtained the error: Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903) ..
Could be this my mistake?
Thank very much
-
-
My assumption is that you have clone the most recent version in git, which is probably 5.9.3. This would be the current development version. Not sure which stage it is in, but there has to be still some testing under way. Therefore, there no wonder that having issues. The mix comes with your downloading official source which is definitely 5.9.2.
I have never downloaded Qt thorugh git directly. However, I am using git for my projects. The default is always the last master update. Therefore, you have probably a something which is somewhat consolidated, but not really tested yet.
Checkout which branches are available on git. There should be probably something like 5.9.2 indicating the official release.
Or since you already the official source code of 5.9.2, you should do the whole configure stuff again and make sure that there are no left-overs from your trial with the version downloaded from git.
IIRC somewhere in the configure procedure it tells even that you have and how you should ensure to clean from previous configures.
-
Hi
@koahnig,
Thank you very much for your elucidation.
This week end I try again the build , but the first of all I remove all file from the following directory :- /usr/local/qt5pi
from my Raspberry, where it is present the build of Qt library.
I keep you informed
Thank you very much
-
Hi,
remove all file from the following directory :- /usr/local/qt5pi
from my Raspberry, where it is present the build of Qt library and I executed the following command :
- rsync -avz qt5pi pi@raspberrypi.local:/usr/local
the problem solved.
thank you.