未生成 JOM 文件
JOM files not being generated
我正在将一个在 MacOS 上编译的 qt 项目移植到 Windows。我已经设法或多或少地修复了所有编译器错误,但我现在遇到了这个:
18 warnings generated.
/OUT:debug\editor.exe @C:\Users\User\AppData\Local\Temp\editor.exe.10472.84781.jom
The system cannot find the path specified.
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\Makefile.Debug [debug\editor.exe] Error 1
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\Makefile [debug] Error 2
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\Makefile [sub-src-make_first] Error 2
02:32:53: The process "C:\Users\User\msvc_make.bat" exited with code 2.
Error while building/deploying project project (kit: Desktop Qt 5.12.9 MSVC2017 64bit)
When executing step "Make"
我已经找了几个小时了,但我不知道为什么没有生成。如果不需要,我非常希望不禁用 JOM(并不是说我没有尝试过,将套件中的 CMake 生成器设置为 NMake Makefiles with Codeblock
而不是 NMake Makefiles JOM with Codeblocks
只会给我同样的错误).
编辑:这是 Makefile.debug 文件的一部分,它似乎调用了 editor.exe:
####### Build rules
first: all
all: Makefile.Debug debug\editor.exe
debug\editor.exe: C:\Source\build-project-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\..\lib\cocos2d\debug\cocos2d.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5OpenGLd.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Widgetsd.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Guid.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Xmld.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Cored.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\qtmaind.lib ui_mainwindow.h ui_setprojectpathdialog.h $(OBJECTS)
$(LIBAPP) $(LIBFLAGS) /OUT:$(DESTDIR_TARGET) @<<
[here is a list of paths to a bunch of obj files in a debug folder]
<<
以下是我能够找到的变量:
DESTDIR = debug\ #avoid trailing-slash linebreak
TARGET = editor.exe
DESTDIR_TARGET = debug\editor.exe
OBJECTS
是调试文件夹中的obj文件列表。
看来 LIBAPP
确实没有设置。为什么会这样,我不知道。它是依赖关系,使用相同的工具包和编译器设置得很好。
我采用的解决方案是将 LIBAPP
设置为 llvm-lib /NOLOGO
。
我绝对讨厌这一切。
我正在将一个在 MacOS 上编译的 qt 项目移植到 Windows。我已经设法或多或少地修复了所有编译器错误,但我现在遇到了这个:
18 warnings generated.
/OUT:debug\editor.exe @C:\Users\User\AppData\Local\Temp\editor.exe.10472.84781.jom
The system cannot find the path specified.
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\Makefile.Debug [debug\editor.exe] Error 1
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\Makefile [debug] Error 2
jom: C:\Source\build-project-qt-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\Makefile [sub-src-make_first] Error 2
02:32:53: The process "C:\Users\User\msvc_make.bat" exited with code 2.
Error while building/deploying project project (kit: Desktop Qt 5.12.9 MSVC2017 64bit)
When executing step "Make"
我已经找了几个小时了,但我不知道为什么没有生成。如果不需要,我非常希望不禁用 JOM(并不是说我没有尝试过,将套件中的 CMake 生成器设置为 NMake Makefiles with Codeblock
而不是 NMake Makefiles JOM with Codeblocks
只会给我同样的错误).
编辑:这是 Makefile.debug 文件的一部分,它似乎调用了 editor.exe:
####### Build rules
first: all
all: Makefile.Debug debug\editor.exe
debug\editor.exe: C:\Source\build-project-Desktop_Qt_5_12_9_MSVC2017_64bit-Debug\src\..\lib\cocos2d\debug\cocos2d.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5OpenGLd.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Widgetsd.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Guid.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Xmld.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\Qt5Cored.lib C:\Qt\Qt5.12.9.12.9\msvc2017_64\lib\qtmaind.lib ui_mainwindow.h ui_setprojectpathdialog.h $(OBJECTS)
$(LIBAPP) $(LIBFLAGS) /OUT:$(DESTDIR_TARGET) @<<
[here is a list of paths to a bunch of obj files in a debug folder]
<<
以下是我能够找到的变量:
DESTDIR = debug\ #avoid trailing-slash linebreak
TARGET = editor.exe
DESTDIR_TARGET = debug\editor.exe
OBJECTS
是调试文件夹中的obj文件列表。
看来 LIBAPP
确实没有设置。为什么会这样,我不知道。它是依赖关系,使用相同的工具包和编译器设置得很好。
我采用的解决方案是将 LIBAPP
设置为 llvm-lib /NOLOGO
。
我绝对讨厌这一切。