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

Extra "..\..\" in Makefile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.0
    • None
    • Windows

      I installed Qt 6.9.1 and Qt Creator on a fresh Windows 11 machine. Before installing Qt and Qt creator, I installed Visual Studio 2022 Community.

      I created an empty Qt Widgets application and tried to build it, but I had an error:

      :-1: error: dependent '..\..\..\..\..\..\Qt\6.9.1\msvc2022_64\include\QtWidgets\QMainWindow' does not exist.

      Qt is installed in C:\Qt
      My project is located in C:\Projects\Test1

      I selected qmake as a build system.

      When I looked at Makefile.Debug, I can see extra "..\..\" in every Qt file path.

      After I edited Makefile.Debug by removing extra "..\..\" from every Qt file path, I was able to build the project without any problems.

      I am attaching the original (incorrect) Makefile.Debug generated by Qt Creator and the correct one (edited manually).

       

       

        1. Makefile.Debug (correct)
          63 kB
          Johnny Kessler
        2. Makefile.Debug (incorrect)
          67 kB
          Johnny Kessler
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            tedka Johnny Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes