-
我做了以下尝试:
F:\ant\github\vaststars>"./bin/msvc/debug/ant.exe"
[2024-07-21 15:01:17.47][INFO ]( root ) startup 1
[2024-07-21 15:01:17.47][INFO ]( io ) startup 2
[2024-07-21 15:01:17.47][INFO ]( ant.engine|timer ) startup 3
[2024-07-21 15:01:17.67][INFO ]( ant.engine|logger ) startup 4
[2024-07-21 15:01:17.67][INFO ]( /main.lua ) startup 5
[2024-07-21 15:01:17.67][INFO ]( vaststars.gameplay|boot ) startup 6
[2024-07-21 15:01:17.69][INFO ]( ant.webserver|webserver ) startup 7
[2024-07-21 15:01:17.69][INFO ]( vaststars.gameplay|boot ) quit.
[2024-07-21 15:01:17.69][INFO ]( ant.window|window ) startup 8
[2024-07-21 15:01:17.69][INFO ]( ant.hwi|bgfx ) startup 9
[2024-07-21 15:01:17.69][INFO ]( ant.rmlui|rmlui ) startup 10
[2024-07-21 15:01:17.69][INFO ]( ant.resource_manager|resource ) startup 11
[2024-07-21 15:01:17.81][WARN ]( bgfx )(3rd/bgfx/src/nvapi.cpp:176) BGFX WARN NVAPI supported.
[2024-07-21 15:01:17.90][WARN ]( bgfx )(3rd/bgfx/src/renderer_d3d11.cpp:948) BGFX WARN Direct3D11 device feature level 12.1.
[2024-07-21 15:01:17.95][INFO ]( io )(...stars/3rd/ant/pkg/ant.compile_resource/tool_exe_path.lua:69) Use tools path:
[2024-07-21 15:01:17.95][INFO ]( ant.engine|subprocess ) startup 12
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:738) world initializing
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:144) Import system ant.world|debug_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:39) Register system ant.world|debug_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:144) Import system ant.world|entity_update_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:39) Register system ant.world|entity_update_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:39) Register system ant.world|entity_init_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:144) Import system ant.world|entity_init_system
[2024-07-21 15:01:17.98][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:144) Import system ant.rmlui|rmlui_system
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:39) Register system ant.rmlui|rmlui_system
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:144) Import system vaststars.gamerender|login_main_system
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/feature.lua:39) Register system vaststars.gamerender|login_main_system
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:747) world initialized
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:542) System changed.
[2024-07-21 15:01:18.00][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:573) System refreshed.
[2024-07-21 15:01:18.01][ERROR]( ant.rmlui|rmlui ) module 'vaststars.version.core' not found:
no field package.preload['vaststars.version.core']
no file '/pkg/vaststars.version/vaststars/version/core.lua'
stack traceback:
( service:10 )
F:/ant/github/vaststars/3rd/ant/engine/packagemanager.lua:76: in global 'require'
.../github/vaststars/startup/pkg/vaststars.version/main.lua:1: in local 'func'
F:/ant/github/vaststars/3rd/ant/engine/packagemanager.lua:55: in field 'require'
F:/ant/github/vaststars/3rd/ant/engine/packagemanager.lua:124: in function 'import_package'
[string "--@F:/ant/github/vaststars/startup/pkg/vastst..."]:3: in local 'f'
...aststars/3rd/ant/pkg/ant.rmlui/core/document_manager.lua:76: in upvalue 'OnLoadInlineScript'
...aststars/3rd/ant/pkg/ant.rmlui/core/document_manager.lua:128: in field 'open'
.../vaststars/3rd/ant/pkg/ant.rmlui/core/extern_windows.lua:8: in local 'f'
.../vaststars/3rd/ant/pkg/ant.rmlui/core/extern_windows.lua:52: in field 'push'
.../github/vaststars/3rd/ant/pkg/ant.rmlui/core/startup.lua:44: in local 's'
[2024-07-21 15:01:20.34][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:542) System changed.
[2024-07-21 15:01:20.34][DEBUG]( ant.window|window )(F:/ant/github/vaststars/3rd/ant/pkg/ant.world/main.lua:565) System refreshed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
我看了一下我机器上的目录,应该还会生成一个 在 vaststars 目录下直接运行 luamake 即可,应该也会生成 lua.exe ,其实和 ant 目录下编译出来的是同一个文件。 不过我没有使用 build.bat ,而且使用的是 mingw 。看了一下 build.bat ,就是调用 luamake ,看起来没有区别。 |
Beta Was this translation helpful? Give feedback.
-
我写了一个编译批处理: @echo off
@setlocal
@chcp 65001 >nul
luamake -mode debug 执行后会有以下编译报错: 3rd/ant/clibs/zip/luazip.c(494): warning C4244: “初始化”: 从“lua_Integer”转换到“int”,可能丢失数据
3rd/ant/clibs/zip/luazip.c(812): warning C4267: “函数”: 从“size_t”转换到“uint32_t”,可能丢失数据
[496/532] Compile C++ build/msvc/debug/obj/rmlui_binding/rmlapi.obj
3rd/ant/pkg/ant.rmlui/src/binding/rmlapi.cpp(598): warning C4244: “初始化”: 从“lua_Integer”转换到“int”,可能丢失数据
[507/532] Compile C++ build/msvc/debug/obj/gameplay/fluidflow-1.obj
FAILED: build/msvc/debug/obj/gameplay/fluidflow-1.obj
cl /nologo /showIncludes -c clibs/gameplay/src/core/fluidflow.cpp /Fobuild/msvc/debug/obj/gameplay/fluidflow-1.obj /EHsc /Zc:__cplusplus /Od /W3 /permissive- /MDd /FS /Zi /Fdbuild/msvc/debug/obj/gameplay/ /Iclibs/gameplay/src /I3rd/ant/3rd/luaecs/ /I3rd/ant/3rd/bee.lua/ /I3rd/ant/clibs/ecs/ /Ibuild/msvc/debug/lua54 /std:c++20
G:\ant\github\vaststars\3rd\ant\3rd\bee.lua\3rd\fmt\fmt\base.h(458): error C2338: static_assert failed: 'Unicode support requires compiling with /utf-8'
[517/532] Compile C++ build/msvc/debug/obj/gameplay/world.obj
FAILED: build/msvc/debug/obj/gameplay/world.obj
cl /nologo /showIncludes -c clibs/gameplay/src/core/world.cpp /Fobuild/msvc/debug/obj/gameplay/world.obj /EHsc /Zc:__cplusplus /Od /W3 /permissive- /MDd /FS /Zi /Fdbuild/msvc/debug/obj/gameplay/ /Iclibs/gameplay/src /I3rd/ant/3rd/luaecs/ /I3rd/ant/3rd/bee.lua/ /I3rd/ant/clibs/ecs/ /Ibuild/msvc/debug/lua54 /std:c++20
G:\ant\github\vaststars\3rd\ant\3rd\bee.lua\3rd\fmt\fmt\base.h(458): error C2338: static_assert failed: 'Unicode support requires compiling with /utf-8'
[530/532] Compile C++ build/msvc/debug/obj/ecs/ecs_component.obj
ninja: build stopped: subcommand failed. 另外,我这里编译前必须得加: @chcp 65001 >nul 不然会报下面的错: G:\ant\github\vaststars>luamake -mode debug
Failed: ninja failed: 'ninja' 不是内部或外部命令,也不是可运行的程序
或批处理文件。 不知道我这里的编译报错是否与执行了chcp 65001有关 |
Beta Was this translation helpful? Give feedback.
我看了一下我机器上的目录,应该还会生成一个
vaststars.dll
,'vaststars.version.core' 的对应符号会在里面。在 vaststars 目录下直接运行 luamake 即可,应该也会生成 lua.exe ,其实和 ant 目录下编译出来的是同一个文件。
不过我没有使用 build.bat ,而且使用的是 mingw 。看了一下 build.bat ,就是调用 luamake ,看起来没有区别。