How to get Qt-Creator to create using cygwin?

Does anyone know how to configure Qt-Creator to use cygwin make to create a project? This may be a simple issue with Windows whales, but I cannot get Qt-Creator to find / run cygwin make . My make lives in /usr/bin , which is actually c:\cygwin\c\usr\bin on my system. In any case, Qt does not seem to be able to find it using all the obvious build settings that I can think of.

Thanks ---

+4
source share
2 answers

[This answer works for me using Qt Creator 2.0.93 (beta 2.1), YMMV]

I spent some time fixing a similar problem: using a non-intermediate, unsupported build chain from Qt. It seems that Qt Creator uses different environments for the build steps, based on whether you use the "Make" or "Custom" step (see the "Projects" view). The only way I could control the actual make invoked and, more importantly, the path from which it was launched, was to go from using the "make" steps to the "custom" build step. As soon as I did this, the settings for the PATH environment variable (in the build environment) were completed and the correct make was chosen.

In other words, try the following:

  • Set the path in your build environment so that the project includes your cygwin stuff.
  • Create a β€œcustom” build step that invokes Cygwin with the appropriate parameters (copied from the old build step).
  • Remove the old build step.
+3
source

I am running qtcreator 3.2.1 on windows 8.1.

just type tools-> option-> build & run-> kits β†’ add

install sysroot in the cygwin folder (e, g: C: \ cygwin64) and the compiler type in mingw.

(if and when I install gdb to work with what I will update)

0
source

All Articles