Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation
Forum Updated to NodeBB v4.3 + New Features

Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 971 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snorlax212
    wrote on 7 Aug 2021, 11:26 last edited by
    #1

    OS: Windows 7 x64 SP1
    Qt Creator 4.15.2
    Qt 6.1.2 with MinGW 8.1.0

    Hello.
    Pre-info: I have extraction folder of Winlibs package on my disk and also it's bin added to system %PATH% and CMake installed under C:\Program Files\CMake.
    I installed Qt Creator without checking MinGW 8.1.0 option under Qt 6.1.2 group, only qt5 compatibility (i thought i could use my external winlibs mingw set). Then I launched Qt Creator -> Options and added my mingw manually. Here I realized my mistake - didn't know that mingw option mean mingw + qt toolkit. I modified installation and everything setup by default.

    Issue: When I create some Qt Console application with CMake build system (my course requires it) it has some misconfiguration: in Project -> Build Settings -> CMake when I check "Advanced" checkbox I can see variable CMAKE_MAKE_PROGRAM point to: "C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/ninja.exe". I guess it should be "C:\Qt\Tools\Ninja\ninja.exe", and I can change it in my project. But if I press there on CMake "Re-configure with Initial Parameters" or create other new project - that variable again point to my winlibs folder.
    I had no compile errors yet, but I don't want IDE to use it in any way (also mingw's are different and ninja.exe modules are different).

    I looked everywhere in "Tools -> Kits" options but everything was set on default: Desktop Qt 6.1.2 MinGW 64-bit (default) under kits, CMake 3.19.2 (Qt) (Default) under CMake. I reinstalled Qt (with removing manually %LOCALAPPDATA%\QtProject, %APPDATA%\QtProject, %APPDATA%\Qt) but have no luck, so it's probably IDE itself set it automatically (it also find Winlibs and non-qt CMake in Compilers/Debuggers/CMake tabs in Auto-detect category, none of these set though). Is it possible to setup Qt Creator to use only its tools by default? Appreciate any help.
    alt text

    J 1 Reply Last reply 9 Aug 2021, 08:02
    0
    • S snorlax212
      7 Aug 2021, 11:26

      OS: Windows 7 x64 SP1
      Qt Creator 4.15.2
      Qt 6.1.2 with MinGW 8.1.0

      Hello.
      Pre-info: I have extraction folder of Winlibs package on my disk and also it's bin added to system %PATH% and CMake installed under C:\Program Files\CMake.
      I installed Qt Creator without checking MinGW 8.1.0 option under Qt 6.1.2 group, only qt5 compatibility (i thought i could use my external winlibs mingw set). Then I launched Qt Creator -> Options and added my mingw manually. Here I realized my mistake - didn't know that mingw option mean mingw + qt toolkit. I modified installation and everything setup by default.

      Issue: When I create some Qt Console application with CMake build system (my course requires it) it has some misconfiguration: in Project -> Build Settings -> CMake when I check "Advanced" checkbox I can see variable CMAKE_MAKE_PROGRAM point to: "C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/ninja.exe". I guess it should be "C:\Qt\Tools\Ninja\ninja.exe", and I can change it in my project. But if I press there on CMake "Re-configure with Initial Parameters" or create other new project - that variable again point to my winlibs folder.
      I had no compile errors yet, but I don't want IDE to use it in any way (also mingw's are different and ninja.exe modules are different).

      I looked everywhere in "Tools -> Kits" options but everything was set on default: Desktop Qt 6.1.2 MinGW 64-bit (default) under kits, CMake 3.19.2 (Qt) (Default) under CMake. I reinstalled Qt (with removing manually %LOCALAPPDATA%\QtProject, %APPDATA%\QtProject, %APPDATA%\Qt) but have no luck, so it's probably IDE itself set it automatically (it also find Winlibs and non-qt CMake in Compilers/Debuggers/CMake tabs in Auto-detect category, none of these set though). Is it possible to setup Qt Creator to use only its tools by default? Appreciate any help.
      alt text

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Aug 2021, 08:02 last edited by
      #2

      @snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

      C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/

      Is this in your PATH?
      If so try removing it from PATH.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 9 Aug 2021, 10:58
      0
      • J jsulm
        9 Aug 2021, 08:02

        @snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

        C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/

        Is this in your PATH?
        If so try removing it from PATH.

        S Offline
        S Offline
        snorlax212
        wrote on 9 Aug 2021, 10:58 last edited by
        #3

        @jsulm said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

        @snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

        C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/

        Is this in your PATH?
        If so try removing it from PATH.

        Yes. Thank you, it worked. But is this the only option to remove other toolkits from system %PATH% or is there option to prevent Qt Creator to seek into %PATH%'s paths?

        J 1 Reply Last reply 9 Aug 2021, 11:01
        0
        • S snorlax212
          9 Aug 2021, 10:58

          @jsulm said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

          @snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

          C:/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2/mingw64/bin/

          Is this in your PATH?
          If so try removing it from PATH.

          Yes. Thank you, it worked. But is this the only option to remove other toolkits from system %PATH% or is there option to prevent Qt Creator to seek into %PATH%'s paths?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Aug 2021, 11:01 last edited by
          #4

          @snorlax212 said in Qt Creator sets CMAKE_MAKE_PROGRAM to external mingw implementation:

          or is there option to prevent Qt Creator to seek into %PATH%'s paths?

          Try to change PATH in your build environment in QtCreator. But you should in general be careful adding stuff to PATH as it can cause issues like the one you had.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on 10 Aug 2021, 08:15 last edited by
            #5

            Can't you correct the CMAKE variable in the Qt Creator panel that you see it in?

            1 Reply Last reply
            0

            1/5

            7 Aug 2021, 11:26

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved