Qt Creator build error on Windows
-
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 | ^~~~~~~~~~~~~~
-
@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:/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. -
@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.
-
@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.
-
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.
-
Simply use another source and build dir.
Thank you so much Christian!
My Qt Creator is now able to compile my code properly.... 😊😙 -
@cristian-adam
Thanks Cristian!
I'll check this out.... ✌️