gpt4 book ai didi

c++ - Qt 项目 qmake 构建错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:46:59 26 4
gpt4 key购买 nike

我是 Qt 的新手。我制作了一个 Qt Quick 应用程序。当我尝试构建项目时,编译器给出了这个错误:

23:26:42: Running steps for project Basla...
23:26:42: Starting: "C:\Qt\Qt5.2.0\5.2.0\msvc2012_64_opengl\bin\qmake.exe" C:\Users\TaeZ-Stkyoht\Documents\Ders\Qt\Başla\Basla\Basla.pro -r -spec win32-msvc2012 "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
Cannot find file: C:\Users\TaeZ-Stkyoht\Documents\Ders\Qt\Başla\Basla\Basla.pro.
23:26:42: The process "C:\Qt\Qt5.2.0\5.2.0\msvc2012_64_opengl\bin\qmake.exe" exited with code 2.
Error while building/deploying project Basla (kit: Desktop Qt 5.2.0 MSVC2012 OpenGL 64bit)
When executing step 'qmake'
23:26:42: Elapsed time: 00:01.

最佳答案

这似乎是一个已知且 Unresolved 问题:

qmake should interpret project file encoding as utf-8

正如您在输出中看到的那样,问题发生在对所需项目文件调用 qmake 可执行文件时。根据此文件夹条目,您的路径似乎构建为 utf 而不是 ascii:

"Başla"

这是 qmake 的一个问题,因为它在下面使用了 QFileQDir 等。正如您在错误报告中看到的那样,这些是作为 latin 1 处理的,而不是 utf。这可能是您的场景中的一个问题。

解决方法可能是将 Başla 条目更改为 Basla 就像路径的其余部分一样。这至少会使它可能起作用,并为您的路径带来一些一致性。

关于c++ - Qt 项目 qmake 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20808109/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com