Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().
-
Hello, I have an old 4.8 Qt project which I'm trying to run in the new Qt creator.
I have installed the legacy 4.8 version from here And followed the instruction of how to add a new qt version from here.
Those are the current settings I'm trying:
I managed to compile the project but when I'm trying to run it it crushes before even reaching the
main()
function.Did I mess up the settings? Do you have any advice on how to make it work?
I also installed the MinGw 4.2.0 that the Qt 4.8 installation links to, but If I use this complier, the project fails to compile at all.
Thank you!
EDIT: This also happens when starting a brand new QtWidgets project with the above kit.
-
I think I managed to figure out the issue. When setting up the old MinGw complier I messed up the file paths.
This C complier should point to
gcc.exe
and the C++ Complier should point tog++.exe
. And I had them both point to the samegcc.exe
file.This is the correct configuration:
For C++:
For C:
EDIT: Though I'm curious if its possible to compile and run Qt4.8 applications with the newer MinGw complier.
-
- Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.
Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,
But try . if app just crashes then its too old.
Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.
-
@mrjj said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.
It's way after 'about time'. But Sadly I'm not the one making those decisions.
-
@mrjj said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
- Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.
Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,
But try . if app just crashes then its too old.
Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.
To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)
-
@JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)
It's the MinGW that's bundled with QT5.
-
@Curtwagner1984 said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
@JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)
It's the MinGW that's bundled with QT5.
As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.
As @mrjj suggested, give it a try to find out.
-
@JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:
As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.
No, the C++ ABI changed in between (to be more specific between 4.x and 5.0 the c++ ABI was change to the new c++11 one by default).
-
@Christian-Ehrlicher Thank you for clarifying!