GCC Versions
-
I am not sure if this is the right place to ask this question, so if someone could point me in the right one?
What is the plan/policy relating to the version of GCC used with the current version of Qt and the upgrade path with this?
I am currently using Qt Creator 3.4.1, with GCC 4.6.1 64 bit. I am trying to use the latest (non-stable Mongodb C++ libraries (because they aren't boost dependant - all the earlier/stable versions are). I can build these libraries on my machine, using the GCC (4.8.2) that is installed. If I use them from Qt, I get errors when I use some of the functionality. The code compiles all right, it just doesn't work.
The errors occur with documents within documents and more complex finds and updates, that I would like to be able to code with.
Googling reveals that this is a known problem with earlier versions of GCC. I have lost the link but I think the vesion of GCC I need is 4.8.1 or greater.
I guess that I would need to build Qt with a later version of GCC myself, if I want to use it, and that doing so might present other challenges.
I am working on a personal project, which means I'm not working to a deadline, but some idea of likely timescales would be useful.
Thanks.
-
I am not sure if this is the right place to ask this question, so if someone could point me in the right one?
What is the plan/policy relating to the version of GCC used with the current version of Qt and the upgrade path with this?
I am currently using Qt Creator 3.4.1, with GCC 4.6.1 64 bit. I am trying to use the latest (non-stable Mongodb C++ libraries (because they aren't boost dependant - all the earlier/stable versions are). I can build these libraries on my machine, using the GCC (4.8.2) that is installed. If I use them from Qt, I get errors when I use some of the functionality. The code compiles all right, it just doesn't work.
The errors occur with documents within documents and more complex finds and updates, that I would like to be able to code with.
Googling reveals that this is a known problem with earlier versions of GCC. I have lost the link but I think the vesion of GCC I need is 4.8.1 or greater.
I guess that I would need to build Qt with a later version of GCC myself, if I want to use it, and that doing so might present other challenges.
I am working on a personal project, which means I'm not working to a deadline, but some idea of likely timescales would be useful.
Thanks.
I am wondering how you ended up with Qt creator (which is the most recent release 3.4.1) and GCC 4.6.1. I would expect that Qt creator is probably already compiled with GCC 4.9.? Anyway you can combine and use this Qt creator version with any compiler version. The important part is probably the Qt libs and which compiler has been used to compile them.
I am on windows. I know that Qt 5.4.1 libs are compiled with MinGW GCC 4.9.1. So far my expectation was that teh windows version might be a bit behind with the GCC versions.
How did you install Qt creator?
How did you create Qt libs?
Which version of Qt libs do you have installed? -
I installed Qt using the online installer (for Linux - I'm using Linux Mint 17.1 64 bit) - though I have been using the Maintain Qt installer to update for a while now and had updated to 5.4.2-0 just before putting my question in the forum.
To see if that was the problem I uninstalled Qt (using Maintain), deleted the folder structure to make sure and then downloaded and installed (with the freshly downloaded on-line installer qt-unified-linux-x64-2.0.1-online.run) and got exactly what I had before as far as versions are concerned.
After running the installer from the command line I got the following message:
Cannot update Qt version information: /home/mike/Qt/5.3/Src/qtbase/bin/qmake cannot be run.Creator runs, everything compiles and Creator displays the same version information as before in the Help/About Qt Creator menu item.
I only have the folder structure starting with /home/mike/Qt/5.4, not a 5.3 folder, I guess the error message has the text for the wrong version and I'm not sure what, if anything, it indicates?
The only compiling of anything Qt I do is the MySQL libraries, which I use in another project.
-
I installed Qt using the online installer (for Linux - I'm using Linux Mint 17.1 64 bit) - though I have been using the Maintain Qt installer to update for a while now and had updated to 5.4.2-0 just before putting my question in the forum.
To see if that was the problem I uninstalled Qt (using Maintain), deleted the folder structure to make sure and then downloaded and installed (with the freshly downloaded on-line installer qt-unified-linux-x64-2.0.1-online.run) and got exactly what I had before as far as versions are concerned.
After running the installer from the command line I got the following message:
Cannot update Qt version information: /home/mike/Qt/5.3/Src/qtbase/bin/qmake cannot be run.Creator runs, everything compiles and Creator displays the same version information as before in the Help/About Qt Creator menu item.
I only have the folder structure starting with /home/mike/Qt/5.4, not a 5.3 folder, I guess the error message has the text for the wrong version and I'm not sure what, if anything, it indicates?
The only compiling of anything Qt I do is the MySQL libraries, which I use in another project.
I am not of much help here, I guess. I am working on Windows. Last Year I did the installation on Ubuntu. There I had basically to choose the newest GCC and all was working.
You may want to make sure that you have the newest GCC installed. In Qt creator you should check the kit used. The version of Qt libs and the compiler as you have installed. Not sure if there is an internal check, but if you see Attention signs, there is something wrong. I am pretty sure that someone else has much better understanding of the potential issues you have.
-
Hi,
AFAIK, the MinGW version used on Windows has no relation with the gcc version on Linux. If you need a more recent version of gcc to build your project, then go on and rebuild Qt. The minimal version used to build the packages will correspond the oldest supported version of gcc.
On Linux, Qt's really not a challenge to build. If you are not using QtWebKit/WebEngine, you can even skip these modules to gain some time on the compilation process (you can always build them late if you need to)