Qt not working properly... ( compiler problems ? )
-
So i downloaded Qt for the first time and this are all the things i downloaded:
Then i create a project and this is what i get:
All other .cpp files such as main and mainwindow should be shown on the left side and they are not. I cant even compile the code, errors are everywhere...
I was wondering do i have to do something in here ? :
Please can someone help me!! i have to make a simple game using Qt...
-
Hi and welcome to the forums
Oh, you install all of it. :)
Dont select the top one only. open it and select only one or more Qt prebuilds.
Installing ALL of it is very rarely needed and take up huge amount of space.If you just want to make a desktop app/game then only select
mingw comes with compiler and debugger.
Anything named visual studio, requires you to download and installer compiler and debugger on your own.
-
-
@MongKong
In that case, it would be good to start here and read it carefully.
https://doc.qt.io/qt-5/android-getting-started.html
As there are more things you must install on your own.you will also need one of the arm Qt prebuilds also.
-
@MongKong
Hi
well something did went wrong.
Could you please first remove all of Qt.
Then reboot
and then install the mingw Qt packet.
We could also try fiddling with the kits but
often a reinstall is faster if you have ok internet. -
Hey @MongKong,
I had recently problems when installing Qt. So I wrote a mini-list of what to do after completely uninstalling Qt, if it can help you:
-
When installing Qt, select:
a. the latest version of Qt
b. the latest compiler version. Choose the MinGW compiler and select the MinGW kit, but not all the MSCV kits.
c. the latest framework version
d. a debugger is selected by default -
When creating a new project, if necessary, unblock the firewalls of your antivirus.
-
When creating a new project, if necessary, go to tools->options and select the kit corresponding to the compiler (show the pathway).
-
-
i uninstalled Qt and installed it again and i installed all of these packages :
Tried creating a project again...still same thing....
@EvanZ
about the tools->options thingy, what do i do, do i press on Desktop Qt 5.12.1 MinGW and press add ? :
And another thing, when i try opening projects i get this:
-
Hi,
If you over over the yellow warning sign, you'll have more information about what is wrong.
You should also check the Compilers panel.
-
Hi
That is really odd. normally mingw just works,
Do you have any other version of mingw installed ?
Do you have Avast virus scanner installed ? -
Looks like you are trying to use a 32bit build of MinGW for a 64bit build of Qt.