Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt Creator build error on Windows

Qt Creator build error on Windows

Scheduled Pinned Locked Moved Unsolved Qt 6
13 Posts 4 Posters 1.4k 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.
  • A Offline
    A Offline
    Ash V
    wrote on 19 Apr 2024, 18:01 last edited by
    #1

    A 2 Replies Last reply 19 Apr 2024, 18:08
    0
    • A Ash V
      19 Apr 2024, 18:01

      A Offline
      A Offline
      Ash V
      wrote on 19 Apr 2024, 18:08 last edited by Ash V
      #2

      Please help in resolving this issue ....

      A 1 Reply Last reply 20 Apr 2024, 01:32
      0
      • A Ash V
        19 Apr 2024, 18:08

        Please help in resolving this issue ....

        A Offline
        A Offline
        Ash V
        wrote on 20 Apr 2024, 01:32 last edited by
        #3

        Hello!
        Please help 🙂

        1 Reply Last reply
        0
        • A Ash V
          19 Apr 2024, 18:01

          A Offline
          A Offline
          Ash V
          wrote on 20 Apr 2024, 08:26 last edited by
          #4

          And yes, no file named QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d is actually present at the specified path (inside the build directory).

          How to resolve?

          A 1 Reply Last reply 20 Apr 2024, 08:30
          0
          • A Ash V
            20 Apr 2024, 08:26

            And yes, no file named QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d is actually present at the specified path (inside the build directory).

            How to resolve?

            A Offline
            A Offline
            Ash V
            wrote on 20 Apr 2024, 08:30 last edited by
            #5

            ERROR:

            C:\Users\Ashutosh Verma\Documents\qt_qml\pro_1\build\Desktop_Qt_6_7_0_MinGW_64_bit-Debug\_deps\ds-build\src\imports\tools\eventsimulator\QuickStudioEventSimulatorplugin_autogen\include\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc:174: error: opening dependency file _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin.dir\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d: No such file or directory
            In file included from C:/Qt/6.5.3/mingw_64/include/QtCore/qglobal.h:34,
                             from C:/Qt/6.5.3/mingw_64/include/QtCore/qnamespace.h:12,
                             from C:/Qt/6.5.3/mingw_64/include/QtCore/qobjectdefs.h:12,
                             from C:/Qt/6.5.3/mingw_64/include/QtCore/qobject.h:10,
                             from C:/Qt/6.5.3/mingw_64/include/QtCore/qplugin.h:12,
                             from C:/Qt/6.5.3/mingw_64/include/QtQml/qqmlextensionplugin.h:7,
                             from C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp:3:
            C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc:174:1: fatal error: opening dependency file _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin.dir\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d: No such file or directory
              174 | QT_WARNING_POP
                  | ^~~~~~~~~~~~~~
            
            J 1 Reply Last reply 20 Apr 2024, 08:39
            0
            • A Ash V
              20 Apr 2024, 08:30

              ERROR:

              C:\Users\Ashutosh Verma\Documents\qt_qml\pro_1\build\Desktop_Qt_6_7_0_MinGW_64_bit-Debug\_deps\ds-build\src\imports\tools\eventsimulator\QuickStudioEventSimulatorplugin_autogen\include\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc:174: error: opening dependency file _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin.dir\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d: No such file or directory
              In file included from C:/Qt/6.5.3/mingw_64/include/QtCore/qglobal.h:34,
                               from C:/Qt/6.5.3/mingw_64/include/QtCore/qnamespace.h:12,
                               from C:/Qt/6.5.3/mingw_64/include/QtCore/qobjectdefs.h:12,
                               from C:/Qt/6.5.3/mingw_64/include/QtCore/qobject.h:10,
                               from C:/Qt/6.5.3/mingw_64/include/QtCore/qplugin.h:12,
                               from C:/Qt/6.5.3/mingw_64/include/QtQml/qqmlextensionplugin.h:7,
                               from C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp:3:
              C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc:174:1: fatal error: opening dependency file _deps\ds-build\src\imports\tools\eventsimulator\CMakeFiles\QuickStudioEventSimulatorplugin.dir\QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.cpp.obj.d: No such file or directory
                174 | QT_WARNING_POP
                    | ^~~~~~~~~~~~~~
              
              J Offline
              J Offline
              JonB
              wrote on 20 Apr 2024, 08:39 last edited by
              #6

              @Ash-V
              Duplicate https://forum.qt.io/topic/156182/qt-creator-build-error-on-windows.
              Please stop posting the same into multiple questions. Think about the effort someone will take to answer in one place and then someone else will take to answer in the other place, it's not very helpful or polite.
              When someone knows the answer or has something useful to say they will post.
              Please be patient, this is a volunteer user forum not support.

              C A 2 Replies Last reply 20 Apr 2024, 09:31
              1
              • J JonB
                20 Apr 2024, 08:39

                @Ash-V
                Duplicate https://forum.qt.io/topic/156182/qt-creator-build-error-on-windows.
                Please stop posting the same into multiple questions. Think about the effort someone will take to answer in one place and then someone else will take to answer in the other place, it's not very helpful or polite.
                When someone knows the answer or has something useful to say they will post.
                Please be patient, this is a volunteer user forum not support.

                C Offline
                C Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 20 Apr 2024, 09:31 last edited by
                #7

                C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc
                -> the filename is to long. Use a shorter path.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                A 1 Reply Last reply 20 Apr 2024, 17:37
                2
                • C Christian Ehrlicher
                  20 Apr 2024, 09:31

                  C:/Users/Ashutosh Verma/Documents/qt_qml/pro_1/build/Desktop_Qt_6_7_0_MinGW_64_bit-Debug/_deps/ds-build/src/imports/tools/eventsimulator/QuickStudioEventSimulatorplugin_autogen/include/QuickStudioEventSimulatorplugin_QtQuick_Studio_EventSimulatorPlugin.moc
                  -> the filename is to long. Use a shorter path.

                  A Offline
                  A Offline
                  Ash V
                  wrote on 20 Apr 2024, 17:37 last edited by
                  #8

                  @Christian-Ehrlicher
                  Hello Christian.
                  I trust that you're doing great!

                  Could you please help me out in how can I use a shorter file path.

                  I followed so many links, such as this one here on how to enable long paths in Windows 11. But still, this issue in my Qt Creator persists.

                  C 1 Reply Last reply 20 Apr 2024, 18:44
                  0
                  • J JonB
                    20 Apr 2024, 08:39

                    @Ash-V
                    Duplicate https://forum.qt.io/topic/156182/qt-creator-build-error-on-windows.
                    Please stop posting the same into multiple questions. Think about the effort someone will take to answer in one place and then someone else will take to answer in the other place, it's not very helpful or polite.
                    When someone knows the answer or has something useful to say they will post.
                    Please be patient, this is a volunteer user forum not support.

                    A Offline
                    A Offline
                    Ash V
                    wrote on 20 Apr 2024, 17:39 last edited by
                    #9

                    @JonB
                    Sorry for this Jon.
                    I'll remember this from next time. 😶 Promise.

                    C 1 Reply Last reply 20 Apr 2024, 19:02
                    0
                    • A Ash V
                      20 Apr 2024, 17:37

                      @Christian-Ehrlicher
                      Hello Christian.
                      I trust that you're doing great!

                      Could you please help me out in how can I use a shorter file path.

                      I followed so many links, such as this one here on how to enable long paths in Windows 11. But still, this issue in my Qt Creator persists.

                      C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 20 Apr 2024, 18:44 last edited by
                      #10

                      @Ash-V said in Qt Creator build error on Windows:

                      Could you please help me out in how can I use a shorter file path.

                      Simply use another source and build dir.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      A 1 Reply Last reply 20 Apr 2024, 19:06
                      0
                      • A Ash V
                        20 Apr 2024, 17:39

                        @JonB
                        Sorry for this Jon.
                        I'll remember this from next time. 😶 Promise.

                        C Online
                        C Online
                        cristian-adam
                        wrote on 20 Apr 2024, 19:02 last edited by
                        #11

                        See https://www.qt.io/blog/qt-creator-13-cmake-update on how to enable junctions to overcome the windows long path issue.

                        Windows tooling is not yet up to date. Ninja can't handle long paths, gcc can't either.

                        By using junctions the long paths just work because they are redirected to something shorter.

                        A 1 Reply Last reply 20 Apr 2024, 19:07
                        1
                        • C Christian Ehrlicher
                          20 Apr 2024, 18:44

                          @Ash-V said in Qt Creator build error on Windows:

                          Could you please help me out in how can I use a shorter file path.

                          Simply use another source and build dir.

                          A Offline
                          A Offline
                          Ash V
                          wrote on 20 Apr 2024, 19:06 last edited by
                          #12

                          @Christian-Ehrlicher

                          Simply use another source and build dir.

                          Thank you so much Christian!
                          My Qt Creator is now able to compile my code properly.... 😊😙

                          1 Reply Last reply
                          0
                          • C cristian-adam
                            20 Apr 2024, 19:02

                            See https://www.qt.io/blog/qt-creator-13-cmake-update on how to enable junctions to overcome the windows long path issue.

                            Windows tooling is not yet up to date. Ninja can't handle long paths, gcc can't either.

                            By using junctions the long paths just work because they are redirected to something shorter.

                            A Offline
                            A Offline
                            Ash V
                            wrote on 20 Apr 2024, 19:07 last edited by
                            #13

                            @cristian-adam
                            Thanks Cristian!
                            I'll check this out.... ✌️

                            1 Reply Last reply
                            0

                            8/13

                            20 Apr 2024, 17:37

                            • Login

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