0

我已经使用 Git 下载了 GoldenDict 的源代码,并针对语言环境运行 lrelease。现在我有一个奇怪的问题,我得到这个 makefile 日志:

14:55:54: Running build steps for project goldendict...
14:55:54: Starting: "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" D:\GoldenDictSrc\goldendict\goldendict.pro -r -spec win32-msvc2010 "CONFIG+=release"
14:55:56: The process "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited normally.
14:55:56: Starting: "C:\QtSDK\QtCreator\bin\jom.exe" 
C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Release
Error: dependent 'folding.cc' does not exist.
jom 1.0.8 - empower your cores

jom: D:\GoldenDictSrc\goldendict-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Release\Makefile [release] Error 2
14:55:56: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project goldendict (target: Desktop)
When executing build step 'Make'

而文件 fold.cc 在 qmake 文件所在的同一目录中可用。我什至尝试将 fold.cc 的绝对路径添加到 qmake 文件中,但没有用。

我正在使用 QtCreator。

这可能是什么原因造成的?

感谢您的任何努力。

4

1 回答 1

1

I have the same problem, and narrowed it down to the fact that QT only supports 122 characters for the path+filename of all dependent files (#includes or .cpp files).

If the path (relative or otherwise) is 123 characters or more, qt gives this error.

Just shorten your folder names, or filename to get the full path+filename to 122 characters or less.

于 2012-06-05T16:56:23.690 回答