我已经使用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'而文件folding.cc位于与qmake文件相同的目录中。我甚至尝试过将folding.cc的绝对路径添加到qmake文件中,但是没有用。
我使用的是QtCreator。
是什么导致了这种情况?
感谢您的努力。
发布于 2012-06-06 00:56:24
我也有同样的问题,并且缩小到QT只支持122个字符作为所有依赖文件(# path+filename或.cpp文件)的文件的事实。
如果路径(相对路径或其他路径)包含123个或更多字符,则qt会显示此错误。
只需缩短您的文件夹名称,或文件名,以获得完整的path+filename到122个字符或更少。
https://stackoverflow.com/questions/10499099
复制相似问题