qt-creator Cannot run compiler 'g++'
General messages in qt-creator after setting up first project.
Quote:
centos 7.6 qt-creator 4.1.0 This worked out of the box in a mint linux install but I need to run this in centos for work. Any idea what might be wrong? I've done pyqt stuff before but I'm a total newbie to c++/qt. Assume I know nothing. Thanks in advance. Cheers, |
In the qt-creator sidebar, click on Projects. On the left of the new window, you click on the button “Manage Kits”. Select the Kit/Qt-version of your choice and verify the settings.
Normally all this is configured automatically and I cannot know why it did not for your project. |
I have never used QT_Creator, but a quick search tunred up this page in the docs, Adding Compilers as the first hit. It indicates that most times this is configured automatically, but you can set multiple compilers manually.
|
Quote:
These are the properties of the 'Manual' kit. Quote:
|
Quote:
Okay. As the situation is unknown to me, I can only suggest a Trial&Error approach. Once the compiler is definitely installed and added to the kit, or a different one, open your project in Qt-Creator. There should be an icon on the outer left edge of the window, the fourth from the bottom, naming your currently opened project. Clicking that, the available kits are listed, in your case at least one should appear. Try to select it, even if there is only one kit available; release or debug should not make much difference. |
Apparently the compiler was running the whole time despite the error message.
Opened a terminal looked in the build directory and there was a compiled executable than ran like a charm. So the qt-creator has an issue but it's not the issue I thought. Not sure if I should mark this a solved or not. |
Quote:
Thanks, and good luck! |
All times are GMT -5. The time now is 09:09 PM. |