Solved Issue about Qt 4.8
-
Regards.
Recently I install Qt 5.5.1 and QtCreator 3.5.1. I need, however to build and run my code with Qt 4.8.
I'm working under Windows environment, and need to use the version of MinGW that come with Qt 5.
I would like (if possible) download version 4.8 of the Qt library and use it from the QtCreator already have installed (taking into account the issue of MinGW I mentioned earlier).
Is it possible to do what I want ?, How I can do?
Thanks in advance for any help and/or suggestions.
-
Hi,
If you want to use the same version of MinGW then you should just build Qt 4 with it.
-
@isaacEnrique said:
Is it possible to do what I want ?, How I can do?
Yes, it is.
- Download http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-opensource-windows-x86-mingw482-4.8.7.exe
- See Adding Qt Versions to tell Qt Creator where to find the Qt binaries.
- Finally, see Adding Kits to tell Qt Creator how to combine your compiler with the Qt binaries.
The official Qt 5.5.1 package contains MinGW 4.9.2, while the official Qt 4.8.7 was built using MinGW 4.8.2. These 2 versions of MinGW are compatible with each other, so there is no issue.
-
My bad, my memory failed me about the compiler ABI break, that was with GCC 4.7.0-4.7.1.
Go with @JKSH's suggestion, it will be simpler.
-
I install Qt 4.8.6 (from http://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-windows-x86-vs2010-4.8.6.exe) and set the corresponding kit in Qt Creator, I am using the version of MinGW toolchain included in my installation cited in the first post (ie MinGW 4.9.2).
My app compiles without problems but get the following error when I run:
The program has unexpectedly finished.
...
exited with code -1073741515I tested installing Qt 4.8.6 + Qt Creator 2.5.2 (from http://download.qt.io/archive/qtcreator/2.5/qt-creator-win-opensource-2.5.2.exe) on another computer. I configure the corresponding Kit and get the same error.
When I double click on the executable my app, the operating system says the Qt5Cored.dll file is missing.
I really do not know what else to do about it.
Any ideas and / or suggestions?
-
If you want to start your application from explorer then you need to follow the same steps you would for deploying that application on another computer.
-
@isaacEnrique said:
I install Qt 4.8.6 (from http://download.qt.io/...vs2010-4.8.6.exe) and...I am using the version of MinGW toolchain...
VS2010 is not compatible with MinGW!
You must download the MinGW version of Qt 4.8 -- I already gave you the correct link in my last message. (And use Qt 4.8.7, not 4.8.6)
-
Thanks everyone for your help.
In summary, I download and install:
Qt 4.8.6 (http://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-windows-x86-mingw482-4.8.6-1.exe)
QtCreator 2.5.2 (https://download.qt.io/archive/qtcreator/2.5)
MinGW 4.8.2 (from https://wiki.qt.io/MinGW, I select the appropriate link to Qt 4.8.6)Now I can build my application. Problem solved.