Qt 5.15.2 Windows 11 qmake 卡住

问题描述 投票:0回答:1

我正在尝试在我的电脑上构建一个新创建的空项目,但是构建卡在这个命令下 ->

11:55:02: Starting: "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" C:\Progetti\untitled\untitled.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug".

过了一会儿它说 ->

Info: creating stash file C:\Progetti\untitled\build\Desktop_Qt_5_15_2_MinGW_64_bit\Debug\.qmake.stash

如果我放手,整个输出是

12:54:54: Running steps for project untitled...
12:54:54: Starting: "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" C:\Progetti\untitled\untitled.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
Info: creating stash file
C:\Progetti\untitled\build\Desktop_Qt_5_15_2_MinGW_64_bit\Debug\.qmake.stash
13:02:56: The process "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" exited normally.
13:02:56: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -f C:/Progetti/untitled/build/Desktop_Qt_5_15_2_MinGW_64_bit/Debug/Makefile qmake_all
mingw32-make: Nothing to be done for 'qmake_all'.
13:02:56: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited normally.
13:02:56: Elapsed time: 08:01.

我也试过重新安装Qt但没有成功。 为什么会这样?直到几天前它才起作用,我不明白这是怎么回事。

qt qmake
1个回答
0
投票

无法发表直接评论,所以我会发表一个答案:根据我的经验,qmake 缓慢通常是由于它追逐标头以用作依赖项造成的。这通常需要几秒钟而不是几分钟,而且对于空项目来说应该不是问题。尝试查看生成的文件如 Makefile.Release 来检查输出是否异常。

Procmon 在这些情况下也非常有用 - 进行捕获,然后过滤 qmake.exe 并查看它在哪里寻找文件。可能是它以某种方式迭代缓慢的网络共享或类似的东西。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.