Login  Register

Re: Beginer at QT Creator (using Ver 4.6.3)

Posted by Nicu Tofan on Mar 21, 2013; 6:13am
URL: https://forum.librecad.org/Beginner-at-QT-Creator-using-Ver-4-6-3-tp5707749p5707750.html

First check if the gcc is available in a terminal. Open one and type
gcc --version

If the version is printed then gcc is available from your PATH, otherwise you will need to add it. If you can't find gcc at all then you will need to install the build-essentials package.

Once you can print the gcc version on terminal open a project in Qt Creator and try to build it. If same error appears then (it's kind of weird):
- open the Projects tab in the left
- find Build Environment (I'm using a newer version, but it must be somewhere on the lower part)
- alter the PATH to include the location of gcc

You can type in a terminal
echo "$PATH"

and copy-paste the result.


Note, however that this is not a proper fix. You will have to do this for every project. Best is to investigate why the PATH in Qt Creator is different that the one in the terminal.

Keep me posted about your progress.
Nick