r-lyeh-archived / AVA

A tiny unlicensed 3D game engine in C; with C++ and Lua interfaces. Written in 32 random ̷d̷a̷y̷s̷ m̷o̷n̷t̷h̷s̷ years.
Other
336 stars 27 forks source link

build editor failed #4

Closed zeroxer closed 3 years ago

zeroxer commented 5 years ago

I have built demos successfully, but the editor building failed.

Platfrom: Windows 10 x64 Compiler: VS2019

Here is the log:

D:\OtherPeopleProjects\AVA (master -> origin)
λ .\make.sh.bat

#/bin/bash   2>nul  || goto :windows
[win][set]
Cleaning up.
Building configurations...
Running action 'vs2015'...
Generated ../../_project/project.sln...
Generated ../../_project/engine.vcxproj...
Generated ../../_project/editor.vcxproj...
Generated ../../_project/editor.vcxproj.filters...
Generated ../../_project/launch.vcxproj...
Generated ../../_project/00-build.vcxproj...
Generated ../../_project/01-hello.vcxproj...
Generated ../../_project/02-ui.vcxproj...
Generated ../../_project/03-debugdraw.vcxproj...
Generated ../../_project/04-collision.vcxproj...
Generated ../../_project/05-audio.vcxproj...
Generated ../../_project/06-triangle.vcxproj...
Generated ../../_project/07-mesh.vcxproj...
Generated ../../_project/08-postfx.vcxproj...
Generated ../../_project/09-frustum.vcxproj...
Generated ../../_project/10-cubemap.vcxproj...
Generated ../../_project/11-pbr.vcxproj...
Generated ../../_project/game-untitled.vcxproj...
Done (231ms).
Building configurations...
Running action 'ninja'...
Generated ../../_project/build.ninja...
** Warning: os.get() is deprecated, use 'os.target()' or 'os.host()'.
   @D:\OtherPeopleProjects\AVA\tools\builder\lua\ninja.lua(110)

Generated ../../_project/build_engine_debugopt_x64.ninja...
Generated ../../_project/build_editor_debugopt_x64.ninja...
Generated ../../_project/build_launch_debugopt_x64.ninja...
Generated ../../_project/build_00-build_debugopt_x64.ninja...
Generated ../../_project/build_01-hello_debugopt_x64.ninja...
Generated ../../_project/build_02-ui_debugopt_x64.ninja...
Generated ../../_project/build_03-debugdraw_debugopt_x64.ninja...
Generated ../../_project/build_04-collision_debugopt_x64.ninja...
Generated ../../_project/build_05-audio_debugopt_x64.ninja...
Generated ../../_project/build_06-triangle_debugopt_x64.ninja...
Generated ../../_project/build_07-mesh_debugopt_x64.ninja...
Generated ../../_project/build_08-postfx_debugopt_x64.ninja...
Generated ../../_project/build_09-frustum_debugopt_x64.ninja...
Generated ../../_project/build_10-cubemap_debugopt_x64.ninja...
Generated ../../_project/build_11-pbr_debugopt_x64.ninja...
Generated ../../_project/build_game-untitled_debugopt_x64.ninja...
Done (143ms).
ninja: Entering directory `..\..\_project'
"[9/1] [86482.949] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/misc/freetype/imgui_freetype.cpp /Foobj/x64/debugopt/editor/imgui_freetype.obj
"[9/2] [86483.104] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/imgui_demo.cpp /Foobj/x64/debugopt/editor/imgui_demo.obj
"[9/3] [86483.171] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/examples/libs/gl3w/GL/gl3w.c /Foobj/x64/debugopt/editor/gl3w.obj
"[9/4] [86483.217] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/imgui_draw.cpp /Foobj/x64/debugopt/editor/imgui_draw.obj
"[9/5] [86483.299] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/imgui_widgets.cpp /Foobj/x64/debugopt/editor/imgui_widgets.obj
"[9/6] [86483.366] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/examples/imgui_impl_opengl3.cpp /Foobj/x64/debugopt/editor/imgui_impl_opengl3.obj
"[9/7] [86483.406] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/examples/imgui_impl_sdl.cpp /Foobj/x64/debugopt/editor/imgui_impl_sdl.obj
"[9/8] [86483.470] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/main.cpp /Foobj/x64/debugopt/editor/main.obj
"[9/9] [86483.650] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@ocornut/imgui.cpp /Foobj/x64/debugopt/editor/imgui.obj
"[9/10] [86484.276] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/3rd/@vinniefalco/FreeTypeAmalgam.c /Foobj/x64/debugopt/editor/FreeTypeAmalgam.obj
D:/OtherPeopleProjects/AVA/editor/3rd/@vinniefalco/FreeTypeAmalgam.c(32568) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/11] [86484.380] "cl /Ot /MD /Z7 -I../engine /nologo -c D:/OtherPeopleProjects/AVA/editor/app/launch/dummy.c /Foobj/x64/debugopt/launch/dummy.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/12] [86484.420] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/00-build.c /Foobj/x64/debugopt/00-build/00-build.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/13] [86484.500] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/02-ui.c /Foobj/x64/debugopt/02-ui/02-ui.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/14] [86484.543] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/01-hello.c /Foobj/x64/debugopt/01-hello/01-hello.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/15] [86484.671] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/04-collision.c /Foobj/x64/debugopt/04-collision/04-collision.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/16] [86484.890] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/03-debugdraw.c /Foobj/x64/debugopt/03-debugdraw/03-debugdraw.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[9/17] [86485.261] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/05-audio.c /Foobj/x64/debugopt/05-audio/05-audio.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[8/18] [86485.350] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/07-mesh.c /Foobj/x64/debugopt/07-mesh/07-mesh.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[7/19] [86485.400] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/06-triangle.c /Foobj/x64/debugopt/06-triangle/06-triangle.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[6/20] [86485.511] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/10-cubemap.c /Foobj/x64/debugopt/10-cubemap/10-cubemap.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[5/21] [86485.654] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/09-frustum.c /Foobj/x64/debugopt/09-frustum/09-frustum.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[4/22] [86485.657] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/08-postfx.c /Foobj/x64/debugopt/08-postfx/08-postfx.obj

d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[3/23] [86485.752] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/demos/11-pbr.c /Foobj/x64/debugopt/11-pbr/11-pbr.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[2/24] [86485.856] "cl /Ot /MD /Z7 /D"LINKAGE=IMPORT" -I../engine -I../editor /nologo -c D:/OtherPeopleProjects/AVA/games/untitled/game.c /Foobj/x64/debugopt/game-untitled/game.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[1/25] [86486.000] "cl /Ot /MD /Z7 /D"LINKAGE=EXPORT" /D"ENGINE_C" -I../engine /nologo -c D:/OtherPeopleProjects/AVA/engine/engine.c /Foobj/x64/debugopt/engine/engine.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\render\render_font.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\3rd/jar_xm.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\3rd/jar_xm.h(929) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\3rd/jar_xm.h(1698) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
"[1/26] [86486.661] "cl obj/x64/debugopt/engine/engine.obj  user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DLL /DEBUG /nologo /out:../_debugopt/engine.dll
   Creating library ../_debugopt/engine.lib and object ../_debugopt/engine.exp
"[9/27] [86486.930] "cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/editor.cc /Foobj/x64/debugopt/editor/editor.obj
FAILED: obj/x64/debugopt/editor/editor.obj
cl /Ot /MD /Z7 /Ot /MD /Z7 /EHsc /D"LINKAGE=IMPORT" -I../engine -I../engine/3rd/SDL2 -I../editor -I../editor/imgui -I../editor/3rd/@ocornut -I../editor/3rd/@ocornut/examples -I../editor/3rd/@ocornut/examples/libs/gl3w -I../editor/3rd/@ocornut/examples/example_sdl_opengl3 /nologo -c D:/OtherPeopleProjects/AVA/editor/editor.cc /Foobj/x64/debugopt/editor/editor.obj
d:\otherpeopleprojects\ava\engine\object\object_json5.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\debug\debug_dialog.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\engine\native\native_tty.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\editor\imgui/imgui_fonts.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(32) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(39) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(46) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(54) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(57) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/imgui_pangram.cpp(60) : error C2001: newline in constant
d:\otherpeopleprojects\ava\editor\imgui/gists/textedit.cpp(1310) : error C3083: '{ctor}': the symbol to the left of a '::' must be a type
d:\otherpeopleprojects\ava\editor\imgui/gists/textedit.cpp(1311) : error C2533: 'TextEditor::MoveBottom' : constructors not allowed a return type
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(139) : error C3533: 'auto &': a parameter cannot have a type that contains 'auto'
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(142) : error C2228: left of '.first' must have class/struct/union
        type is 'int'
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(143) : error C2228: left of '.second' must have class/struct/union
        type is 'int'
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(154) : error C3533: 'auto &': a parameter cannot have a type that contains 'auto'
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(157) : error C2228: left of '.first' must have class/struct/union
        type is 'int'
d:\otherpeopleprojects\ava\editor\imgui/gists/nodes.cpp(158) : error C2228: left of '.second' must have class/struct/union
        type is 'int'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(59) : error C2620: 'property_data::vector4' : illegal union member; type 'ImVec4' has a user-defined constructor or non-trivial default constructor
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(69) : error C2620: 'property_data::quaternion' : illegal union member; type 'ImQuat' has a user-defined constructor or non-trivial default constructor
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(70) : error C2620: 'property_data::direction' : illegal union member; type 'ImVec3' has a user-defined constructor or non-trivial default constructor
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(140) : error C2039: 'quaternion' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(140) : error C2660: 'ImGui::QuaternionGizmo' : function does not take 1 arguments
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(316) : error C2039: 'vector4' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(322) : error C2039: 'vector4' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(328) : error C2039: 'vector4' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(334) : error C2039: 'vector4' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(390) : error C2039: 'quaternion' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(396) : error C2039: 'vector4' : is not a member of 'property_data'
        d:\otherpeopleprojects\ava\editor\imgui/imgui_property.cpp(52) : see declaration of 'property_data'
D:/OtherPeopleProjects/AVA/editor/editor.cc(174) : error C2536: 'Camera2::Camera2::transform' : cannot specify explicit initializer for arrays
        D:/OtherPeopleProjects/AVA/editor/editor.cc(170) : see declaration of 'Camera2::transform'
"[8/28] [86487.049] "cl obj/x64/debugopt/02-ui/02-ui.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/02-ui.exe
"[7/29] [86487.062] "cl obj/x64/debugopt/03-debugdraw/03-debugdraw.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/03-debugdraw.exe
"[6/30] [86487.104] "cl obj/x64/debugopt/04-collision/04-collision.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/04-collision.exe
"[5/31] [86487.133] "cl obj/x64/debugopt/launch/dummy.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/launch.exe
   Creating library ../_debugopt/launch.lib and object ../_debugopt/launch.exp
"[4/32] [86487.135] "cl obj/x64/debugopt/01-hello/01-hello.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/01-hello.exe
   Creating library ../_debugopt/01-hello.lib and object ../_debugopt/01-hello.exp
"[3/33] [86487.142] "cl obj/x64/debugopt/05-audio/05-audio.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/05-audio.exe
   Creating library ../_debugopt/05-audio.lib and object ../_debugopt/05-audio.exp
"[2/34] [86487.147] "cl obj/x64/debugopt/06-triangle/06-triangle.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/06-triangle.exe
   Creating library ../_debugopt/06-triangle.lib and object ../_debugopt/06-triangle.exp
"[1/35] [86487.148] "cl obj/x64/debugopt/00-build/00-build.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/00-build.exe
   Creating library ../_debugopt/00-build.lib and object ../_debugopt/00-build.exp
"[0/36] [86487.160] "cl obj/x64/debugopt/07-mesh/07-mesh.obj ../_debugopt/engine.lib  ../_debugopt/engine.lib user32.lib gdi32.lib ../engine/3rd/SDL2.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /link  /NOLOGO /DEBUG /nologo /out:../_debugopt/07-mesh.exe
   Creating library ../_debugopt/07-mesh.lib and object ../_debugopt/07-mesh.exp
ninja: build stopped: subcommand failed.
>> editor
<< editor
Press any key to continue...

Is there anything I forgot to config ?

r-lyeh commented 5 years ago

Hey,

I've installed vs2019 and after fixing some warnings it compiled fine. However, I could not reproduce all your unicode issues at all. Can you verify it builds with latest commit?

Thx!

zeroxer commented 5 years ago

I find where is the problem. This file imgui_pangram.cpp has some characters that my code page dosen't support. To solve this problem, I usually set an unicode pre-define micro for vs cl /D UNICODE in my build script. This may solve this problem, but I don't know where to set this in your project which is using premake and some other tools.

And, my final solution is delete these lines which cause error. After delete, the imgui_pangram.cpp file becomes as follow:

void imgui_pangram() {
    // pangrams & utf8 samplers
    // [src] http://clagnut.com/blog/2380/
    // [src] https://elinux.org/UTF8_Sampler
    // [src] http://generator.lorem-ipsum.info/
    static bool show_glyph_window = 1;
    if( show_glyph_window ) {
        ImGui::SetNextWindowSize(ImVec2(500,600), ImGuiSetCond_FirstUseEver);
        if( ImGui::Begin("Font pangram glyph tests", &show_glyph_window) ) {
            const char *tabs[] = {
             "Emojis/MD",      ICON_MD_FACE,
             "Arabic",         "صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت — يَحظى الضَجيعُ بِها نَجلاءَ مِعطارِ",
             "Armenian",       "Կրնամ ապակի ուտել և ինծի անհանգիստ չըներ",
             "Belarusian",     "У Іўі худы жвавы чорт у зялёнай камізэльцы пабег пад'есці фаршу з юшкай",
             "Braille (EN)",   "⠊⠀⠉⠁⠝⠀⠑⠁⠞⠀⠛⠇⠁⠎⠎⠀⠁⠝⠙⠀⠊⠞⠀⠙⠕⠑⠎⠝⠞⠀⠓⠥⠗⠞⠀⠍⠑...",
             "Bulgarian",      "Ах чудна българска земьо, полюшвай цъфтящи жита.",
             "Chinese",        "我能吞下玻璃而不伤身体。...",
             "Chinese(TD)",    "我能吞下玻璃而不傷身體。...",
             "Czech",          "Nechť již hříšné saxofony ďáblů rozezvučí síň úděsnými tóny waltzu, tanga a quickstepu.",
             "Dutch",          "Pa's wijze lynx bezag vroom het fikse aquaduct.",
             "English",        "The quick brown fox jumps over the lazy dog.",
             "Estonian",       "Põdur Zagrebi tšellomängija-följetonist Ciqo külmetas kehvas garaažis",
             "Ethiopian",      "ሰማይ አይታረስ ንጉሥ አይከሰስ። ብላ ካለኝ እንደአባቴ በቆመጠኝ። ጌጥ ያለቤቱ ቁምጥና ነው። ...",
             "Finnish",        "Charles Darwin jammaili Åken hevixylofonilla Qatarin yöpub Zeligissä.",
             "French",         "Voix ambiguë d’un cœur qui au zéphyr préfère les jattes de kiwi.",
             "Georgian",       "მინას ვჭამ და არა მტკივა...",
             "German",         "Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.",
             "Greek(Ancient)", "Ἄδμηθ’, ὁρᾷς γὰρ τἀμὰ πράγμαθ’ ὡς ἔχει, λέξαι θέλω σοι πρὶν θανεῖν ἃ βούλομαι.",
             "Greek",          "Ταχίστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός.",
             "Guarani",        "Hĩlandiagua kuñanguéra oho peteĩ saʼyju ypaʼũme Gavõme omboʼe hag̃ua ingyleñeʼẽ mitãnguérare neʼẽndyʼỹ.",
             "Hebrew",         "דג סקרן שט בים מאוכזב ולפתע מצא לו חברה",
             "Hindi",          "",
             "Hungarian",      "Jó foxim és don Quijote húszwattos lámpánál ülve egy pár bűvös cipőt készít.",
             "Icelandic",      "Kæmi ný öxi hér, ykist þjófum nú bæði víl og ádrepa.",
             "Igbo",           "Nne, nna, wepụ he’l’ụjọ dum n’ime ọzụzụ ụmụ, vufesi obi nye Chukwu, ṅụrịanụ, gbakọọnụ kpaa, kwee ya ka o guzoshie ike; ọ ghaghị ito, nwapụta ezi agwa",
             "IPA",            "[ɢʷɯʔ.nas.doːŋ.kʰlja] [ŋan.ȵʑi̯wo.ɕi̯uĕn.ɣwa]",
             "Irish",          "Ċuaiġ bé ṁórṡáċ le dlúṫspád fíorḟinn trí hata mo ḋea-ṗorcáin ḃig.",
             "Japanese",       "いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす(ん)",
             "Japanese/2",     "",
             "Korean",         "키스의 고유조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다",
             "Latvian",        "Muļķa hipiji mēģina brīvi nogaršot celofāna žņaudzējčūsku.",
             "Lithuanian",     "Įlinkdama fechtuotojo špaga sublykčiojusi pragręžė apvalų arbūzą.",
             "Macedonian",     "Ѕидарски пејзаж: шугав билмез со чудење џвака ќофте и кељ на туѓ цех.",
             "Maths",          "2H₂+O₂⇌2H₂O,R=4kΩ,⌀200mm;⎷a²+b³c₈;∀x∈ℝ:⌈x⌉=−⌊−x⌋,α∧¬β=¬(¬α∨β);ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ",
             "Mongolian",      "Щётканы фермд пийшин цувъя. Бөгж зогсч хэльюү",
             "Nepali",         "",
             "Norwegian",      "Høvdingens kjære squaw får litt pizza i Mexico by",
             "Old Norse(rune)","ᛖᚴ ᚷᛖᛏ ᛖᛏᛁ ᚧ ᚷᛚᛖᚱ ᛘᚾ ᚦᛖᛋᛋ ᚨᚧ ᚡᛖ ᚱᚧᚨ ᛋᚨᚱ ...",
             "Polish",         "Pchnąć w tę łódź jeża lub ośm skrzyń fig.",
             "Portuguese",     "Luís argüia à Júlia que «brações, fé, chá, óxido, pôr, zângão» eram palavras do português.",
             "Quotes",         "‘single’ “double” “curly” ‚deutsche‘ „Anführ“ \"'´`",
             "Romanian",       "Înjurând pițigăiat, zoofobul comandă vexat whisky și tequila.",
             "Russian",        "Эх, чужак! Общий съём цен шляп (юфть)—вдрызг!.",
             "Sanskrit",       "",
             "Serbian",        "Ајшо, лепото и чежњо, за љубав срца мога дођи у Хаџиће на кафу / Ajšo, lepoto i čežnjo, za ljubav srca moga dođi u Hadžiće na kafu.",
             "Slovak",         "Kŕdeľ ďatľov učí koňa žrať kôru + š",
             "Spanish",        "",
             "Swedish",        "Yxskaftbud, ge vår wczonmö iqhjälp.",
             "Taiwanese",      "Góa ē-tàng chia̍h po-lê, mā bē tio̍h-siong.",
             "Thai",           "",
             "Tibetan",        "༈ དཀར་མཛེས་ཨ་ཡིག་ལས་འཁྲུངས་ཡེ་ཤེས་གཏེར། །ཕས་རྒོལ་ཝ་སྐྱེས་ཟིལ་གནོན་གདོང་ལྔ་བཞིན། །ཆགས་ཐོགས་ཀུན་བྲལ་མཚུངས་མེད་འཇམ་བྱངས་མཐུས། །མ་ཧཱ་མཁས་པའི་གཙོ་བོ་ཉིད་གྱུར་ཅིག།",
             "Turkish",        "Saf ve haydut kız çocuğu bin plaj görmüş.",
             "Ukrainian",      "Жебракують філософи при ґанку церкви в Гадячі, ще й шатро їхнє п’яне знаємо.",
             "Vietnamese",     "Do bạch kim rất quý nên sẽ dùng để lắp vô xương",
             "Welsh",          "Parciais fy jac codi baw hud llawn dŵr ger tŷ Mabon.",
             "Yiddish",        "איך קען עסן גלאָז און עס טוט מיר נישט װײ",

             0, 0 };
             ImGui::Columns(2);
             for( int i = 0; tabs[i]; ) {
                ImGui::Text(tabs[i++]);
                ImGui::NextColumn();
                ImGui::Text(tabs[i++]);
                ImGui::NextColumn();
             }
             ImGui::Columns(1);
        }
        ImGui::End();
    }
}

This works fine for me. Now I can compile the editor.