Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24838

When "clear local environment" is checked, qmake compilation fails (trying to write files in C:\WINDOWS)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 4.13.2
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Windows 10, Qt 5.15.1, VS 2019 16.7.6

      Description

      Hello,

      With qmake projects, there is an option in QtCreator in the project tab, to "clear system environment".
      I currently use it while making small tests, because otherwise CDB won't run (I've not found why for now).
      However, when this option is checked, the chosen build directory is not honored anymore ; QtCreator tries to creates files in "C:\Windows", and it fails (relief). So, when this option is selected, it becomes impossible to build the project.

      07:58:32: Débute : "C:\Qt\Tools\QtCreator\bin\jom.exe" 
      	C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
      Error: cannot open C:\WINDOWS\mainwindow.obj.9360.16.jom for write
      jom: E:\Nicolas\Mes documents\Dev\testQt\build-untitled2-Desktop_Qt_5_15_1_MSVC2019_64bit-Debug\Makefile [debug] Error 1
      07:58:32: Le processus "C:\Qt\Tools\QtCreator\bin\jom.exe" s'est terminé avec le code 2.
      Erreur lors de la compilation/déploiement du projet untitled2 (kit : Desktop Qt 5.15.1 MSVC2019 64bit)
      When executing step "Make"
      07:58:32: Elapsed time: 00:00.

      Thanks for your good work

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            kiruahxh kiruahxh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes