qt version issue/error with version for qgc
-
hey so im using qt 5.15.2 and when i am running the program im getting an error stating incompatible version use version 5.15.Im also not able to find the right source file .Can someone walk me through whats the best approach to getting my qgc .exe file.Right now i am using the .cmake file.Can someone help out w this issue?
-
Hi and welcome to devnet,
Are you talking about QGroundControl ?
Likely on Windows ?
Which version of Qt did you install ? MSVC ? MinGW ?
How exactly are you trying to start your application ? -
hey thanks for replying so yes i am talking about qgroundcontrol,also im working on windows.Ive installed the msvc version.I am not very sure on what you mean by strting the application as im faily new to this.Im running QT creator version 4.8.2 which is based on 5.12.2 msvc 2015.Im starting the applicationdirectly from the qt creator interface.I have installed the github repository of the qgroundcontrol files which are available open source.So in the kit selection i have selected the qgroundcontrol.pro file from the qgroundcontrol stable version which i got from the github repository
-
Isn't it obvious that you need Qt 5.15 instead 5.12 which you are using?
-
Isn't it obvious that you need Qt 5.15 instead 5.12 which you are using?
-
I'm not sure what exact Qt version you installed since you only told us the QtCreator version you are using but the error message tells you it's not Qt 5.15.
-
hey so let me clarify.I was using 5.15.2 at first and i didnt get the option to add kits and when i started using 5.12 then i had the option to select kits and configure my project in the creator interface.so now i want some guidance on why this is happening and how to fix this
-
Show you kits settings and make sure that 5.15 is available there. Also make sure to start with a clean build dir.
-
hey so ive installed the stable version 4.4.0 from the repository and im getting c++ compiler error stating that there isa c++ source file but no c++ compiler.So i think its a problem in kit configuration ill also share an image of my kit settings
-
hey so ive installed the stable version 4.4.0 from the repository and im getting c++ compiler error stating that there isa c++ source file but no c++ compiler.So i think its a problem in kit configuration ill also share an image of my kit settings
@plad Your build is complaining because the Kit (the set of compilers, Qt libraries and settings) that you are you are building your project with includes a version of Qt libraries other than 5.15.x. This is unrelated to the (ancient) version of Qt Creator you have (i.e. the 4.8.2 and 4.4.0 version you have quoted), only the Kits you have defined and selected for your project.
You need to select the a Kit referencing Qt 5.15+, defining it if needed.There's no reason you should not be using the latest version of Qt Creator supported on your platform (13+).
-
@You said
hey so im using qt 5.15.2
The only healthy kit you have for Qt is 5.15.17 using the MingW tool chain.
You need to select that kit to build your project with. That is something you seem to have failed to do.
@ I said
unrelated to the (ancient) version of Qt Creator you have (i.e. the 4.8.2 and 4.4.0 version you have quoted)
Ok, so these are versions for qgc.
-
@plad Please select the Kit you're using and show its configuration. Especially what compiler is set there.
"ive installed the stable version 4.4.0" - of what?
-
@You said
hey so im using qt 5.15.2
The only healthy kit you have for Qt is 5.15.17 using the MingW tool chain.
You need to select that kit to build your project with. That is something you seem to have failed to do.
@ I said
unrelated to the (ancient) version of Qt Creator you have (i.e. the 4.8.2 and 4.4.0 version you have quoted)
Ok, so these are versions for qgc.
-
@ChrisW67 its a part of the issue where im not able to select the valid kit which is 5.15.7.There is an error stating ithat i have to use 2017 visual studio 64 bit
@plad said in qt version issue/error with version for qgc:
error stating ithat i have to use 2017 visual studio 64 bit
That suggests that you installed Qt for MSVC, not MinGW. Fix that first.
Or qgroundcontrol does not support MinGW and requires MSVC, in that case use Qt for MSVC.