Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGui feature fails to build #19

Closed
troyedwardsjr opened this issue Jan 6, 2024 · 6 comments
Closed

ImGui feature fails to build #19

troyedwardsjr opened this issue Jan 6, 2024 · 6 comments

Comments

@troyedwardsjr
Copy link

troyedwardsjr commented Jan 6, 2024

@floooh

Without feature:

$ cargo build                 
   Compiling sokol v0.1.0 (C:\Users\troye\dev\toxoid\sokol-rust)
    Finished dev [unoptimized + debuginfo] target(s) in 2.15s

With ImGui feature:

$ cargo build --features=imgui
error: failed to run custom build command for `sokol v0.1.0 (C:\Users\troye\dev\toxoid\sokol-rust)`

Caused by:
process didn't exit successfully: `C:\Users\troye\dev\toxoid\sokol-rust\target\debug\build\sokol-aac683c6238364a8\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=build.rs
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
cargo:rerun-if-env-changed=SOKOL_BACKEND
cargo:rerun-if-env-changed=SOKOL_WAYLAND
cargo:rerun-if-env-changed=SOKOL_FORCE_EGL
cargo:rerun-if-env-changed=SOKOL_DEBUG
cargo:rerun-if-changed=src/sokol/c/sokol_log.c
cargo:rerun-if-changed=src/sokol/c/sokol_app.c
cargo:rerun-if-changed=src/sokol/c/sokol_gfx.c
cargo:rerun-if-changed=src/sokol/c/sokol_glue.c
cargo:rerun-if-changed=src/sokol/c/sokol_time.c
cargo:rerun-if-changed=src/sokol/c/sokol_audio.c
cargo:rerun-if-changed=src/sokol/c/sokol_gl.c
cargo:rerun-if-changed=src/sokol/c/sokol_debugtext.c
cargo:rerun-if-changed=src/sokol/c/sokol_shape.c
cargo:rustc-link-lib=static=sokol-rust
cargo:rustc-link-search=src/sokol/c/
cargo:rustc-link-search=target/debug/
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_audio.o" "-c" "src/sokol/c/sokol_audio.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_debugtext.o" "-c" "src/sokol/c/sokol_debugtext.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_glue.o" "-c" "src/sokol/c/sokol_glue.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_log.o" "-c" "src/sokol/c/sokol_log.c"  
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_gfx.o" "-c" "src/sokol/c/sokol_gfx.c"  
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_shape.o" "-c" "src/sokol/c/sokol_shape.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_time.o" "-c" "src/sokol/c/sokol_time.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_gl.o" "-c" "src/sokol/c/sokol_gl.c"    
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_app.o" "-c" "src/sokol/c/sokol_app.c"  
sokol_audio.c
sokol_debugtext.c
sokol_glue.c
sokol_log.c
sokol_gfx.c
sokol_shape.c
sokol_gl.c
sokol_app.c
sokol_time.c
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
exit code: 0
cargo:rerun-if-env-changed=AR_x86_64-pc-windows-msvc
AR_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=AR_x86_64_pc_windows_msvc
AR_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64-pc-windows-msvc
ARFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64_pc_windows_msvc
ARFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\libsokol-rust.a" "-nologo" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_log.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_app.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_gfx.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_glue.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_time.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_audio.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_gl.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_debugtext.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_shape.o"
exit code: 0
cargo:rustc-link-search=native=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\atlmfc\lib\x64
cargo:rustc-link-lib=static=sokol-rust
cargo:rustc-link-search=native=C:\Users\troye\dev\toxoid\sokol-rust\target\debug\build\sokol-0218692fe5f24363\out
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
cargo:rerun-if-env-changed=SOKOL_BACKEND
cargo:rerun-if-env-changed=SOKOL_WAYLAND
cargo:rerun-if-env-changed=SOKOL_FORCE_EGL
cargo:rerun-if-env-changed=SOKOL_DEBUG
cargo:rerun-if-changed=src/sokol/c/sokol_imgui.c
cargo:rerun-if-changed=src/sokol/c/sokol_gfx_imgui.c
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_imgui.o" "-c" "src/sokol/c/sokol_imgui.c"
running: "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_gfx_imgui.o" "-c" "src/sokol/c/sokol_gfx_imgui.c"
sokol_imgui.c
sokol_gfx_imgui.c
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1089): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1696): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1918): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1089): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1696): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\cimgui/cimgui.h(1918): warning C4201: nonstandard extension used: nameless struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1046): error C2065: 'SG_BACKEND_GLES2': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1046): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1086): error C2065: 'SG_SAMPLERTYPE_FLOAT': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1087): error C2065: 'SG_SAMPLERTYPE_SINT': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1088): error C2065: 'SG_SAMPLERTYPE_UINT': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1086): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1087): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1088): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1166): error C2065: 'SG_FILTER_NEAREST_MIPMAP_NEAREST': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1167): error C2065: 'SG_FILTER_NEAREST_MIPMAP_LINEAR': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1168): error C2065: 'SG_FILTER_LINEAR_MIPMAP_NEAREST': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1169): error C2065: 'SG_FILTER_LINEAR_MIPMAP_LINEAR': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1166): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1167): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1168): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1169): error C2051: case expression not constant
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1504): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1505): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1505): error C2198: '_sg_imgui_make_str': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1506): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1510): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1511): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1511): error C2198: '_sg_imgui_make_str': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(1512): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1819): error C2039: 'wrap_u': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1820): error C2039: 'wrap_v': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1821): error C2039: 'min_filter': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1822): error C2039: 'mag_filter': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1847): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1849): error C2039: 'sampler_type': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2880): error C2039: 'err_buffer_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1849): error C2065: 'SG_SAMPLERTYPE_FLOAT': undeclared identifier

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2881): error C2039: 'err_buffer_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1891): error C2065: 'sg_vertex_attr_desc': undeclared identifier

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1891): error C2065: 'attr': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2893): error C2039: 'err_image_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1891): warning C4047: '=': 'int' differs in levels of indirection from 'sg_vertex_attr_state *'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1891): error C2106: '=': left operand must be l-value

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2894): error C2039: 'err_image_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1892): error C2065: 'attr': undeclared identifier

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1892): error C2223: left of '->offset' must point to struct/union

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1893): error C2065: 'attr': undeclared identifierC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2906): error C2039: 'err_shader_pool_exhausted': is not a member of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1893): error C2223: left of '->format' must point to struct/unionC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1896): error C2065: 'sg_vertex_attr_desc': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2907): error C2039: 'err_shader_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1896): error C2065: 'attr': undeclared identifier

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1896): warning C4047: '=': 'int' differs in levels of indirection from 'sg_vertex_attr_state *'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2919): error C2039: 'err_pipeline_pool_exhausted': is not a member of 'sg_trace_hooks'

CC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks':\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1896): error C2106: '=': left operand must be l-value

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2920): error C2039: 'err_pipeline_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1897): error C2065: 'attr': undeclared identifier

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1897): error C2223: left of '->offset' must point to struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2932): error C2039: 'err_pass_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1898): error C2065: 'attr': undeclared identifierC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2933): error C2039: 'err_pass_pool_exhausted': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1898): error C2223: left of '->format' must point to struct/union
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1901): error C2065: 'sg_vertex_attr_desc': undeclared identifierC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2945): error C2039: 'err_context_mismatch': is not a member of 'sg_trace_hooks' 

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1901): error C2065: 'attr': undeclared identifierC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2946): error C2039: 'err_context_mismatch': is not a member of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1901): warning C4047: '=': 'int' differs in levels of indirection from 'sg_vertex_attr_state *'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1901): error C2106: '=': left operand must be l-value

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1902): error C2065: 'attr': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2958): error C2039: 'err_pass_invalid': is not a member of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1902): error C2223: left of '->offset' must point to struct/union    
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1903): error C2065: 'attr': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(1903): error C2223: left of '->format' must point to struct/unionC:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2959): error C2039: 'err_pass_invalid': is not a member of 'sg_trace_hooks'    

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2971): error C2039: 'err_draw_invalid': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2972): error C2039: 'err_draw_invalid': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2984): error C2039: 'err_bindings_invalid': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(2985): error C2039: 'err_bindings_invalid': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(2079): error C2039: 'fs_images': is not a member of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2418): note: see declaration of 'sg_bindings'

C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_imgui.h(2109): error C2039: 'fs_images': is not a member of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2418): note: see declaration of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3251): error C2039: 'min_filter': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3251): error C2198: '_sg_imgui_filter_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3252): error C2039: 'mag_filter': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3252): error C2198: '_sg_imgui_filter_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3253): error C2039: 'wrap_u': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3253): error C2198: '_sg_imgui_wrap_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3254): error C2039: 'wrap_v': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3254): error C2198: '_sg_imgui_wrap_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3255): error C2039: 'wrap_w': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3255): error C2198: '_sg_imgui_wrap_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3256): error C2039: 'border_color': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3256): error C2198: '_sg_imgui_bordercolor_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3257): error C2039: 'max_anisotropy': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3258): error C2039: 'min_lod': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3259): error C2039: 'max_lod': is not a member of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2564): note: see declaration of 'sg_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3321): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3321): error C2039: 'name': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3323): error C2039: 'sampler_type': is not a member of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2687): note: see declaration of 'sg_shader_image_desc'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3323): error C2198: '_sg_imgui_samplertype_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): error C2143: syntax error: missing ')' before '*'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): error C2143: syntax error: missing '{' before '*'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): error C2059: syntax error: ')'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3389): error C2054: expected '(' to follow 'layout'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): error C2143: syntax error: missing ')' before '*'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): error C2143: syntax error: missing '{' before '*'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): error C2059: syntax error: ')'
exit code: 2
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3457): error C2054: expected '(' to follow 'cs'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3480): warning C4013: '_sg_imgui_draw_vertex_layout' undefined; assuming extern returning int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3496): warning C4013: '_sg_imgui_draw_color_state' undefined; assuming extern returning int
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3556): error C2065: 'SG_MAX_SHADERSTAGE_BUFFERS': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3584): error C2039: 'vs_images': is not a member of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2418): note: see declaration of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3598): error C2039: 'fs_images': is not a member of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2418): note: see declaration of 'sg_bindings'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3611): error C2065: 'SG_MAX_SHADERSTAGE_BUFFERS': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3734): error C2039: 'action': is not a member of 'sg_color_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2362): note: see declaration of 'sg_color_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3735): error C2065: 'SG_ACTION_LOAD': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3736): error C2065: 'SG_ACTION_DONTCARE': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3738): error C2039: 'value': is not a member of 'sg_color_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2362): note: see declaration of 'sg_color_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3738): error C2198: '_sg_imgui_color_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3744): error C2039: 'action': is not a member of 'sg_depth_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2368): note: see declaration of 'sg_depth_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3745): error C2065: 'SG_ACTION_LOAD': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3746): error C2065: 'SG_ACTION_DONTCARE': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3747): error C2039: 'value': is not a member of 'sg_depth_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2368): note: see declaration of 'sg_depth_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3751): error C2039: 'action': is not a member of 'sg_stencil_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2374): note: see declaration of 'sg_stencil_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3752): error C2065: 'SG_ACTION_LOAD': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3753): error C2065: 'SG_ACTION_DONTCARE': undeclared identifier
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3754): error C2039: 'value': is not a member of 'sg_stencil_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2374): note: see declaration of 'sg_stencil_attachment_action'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3893): error C2039: 'instancing': is not a member of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(1674): note: see declaration of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3893): error C2198: '_sg_imgui_bool_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3895): error C2039: 'multiple_render_targets': is not a member of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(1674): note: see declaration of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3895): error C2198: '_sg_imgui_bool_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3896): error C2039: 'msaa_render_targets': is not a member of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(1674): note: see declaration of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3896): error C2198: '_sg_imgui_bool_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3897): error C2039: 'imagetype_3d': is not a member of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(1674): note: see declaration of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3897): error C2198: '_sg_imgui_bool_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3898): error C2039: 'imagetype_array': is not a member of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(1674): note: see declaration of 'sg_features'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(3898): error C2198: '_sg_imgui_bool_string': too few arguments for call
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4001): error C2039: 'err_buffer_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4002): error C2039: 'err_image_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4003): error C2039: 'err_shader_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4004): error C2039: 'err_pipeline_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4005): error C2039: 'err_pass_pool_exhausted': is not a member of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx.h(2927): note: see declaration of 'sg_trace_hooks'
C:\Users\troye\dev\toxoid\sokol-rust\src\sokol\c\sokol_gfx_imgui.h(4005): fatal error C1003: error count exceeds 100; stopping compilation
exit code: 2

--- stderr


error occurred: Command "D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "src/sokol/c/" "-W4" "-DSOKOL_D3D11" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-FoC:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\debug\\build\\sokol-0218692fe5f24363\\out\\src/sokol/c/sokol_imgui.o" "-c" "src/sokol/c/sokol_imgui.c" with args "cl.exe" did not execute successfully (status code exit code: 2).

With Emscripten:

$ cargo build --target wasm32-unknown-emscripten
  Downloaded libc v0.2.140
  Downloaded 1 crate (669.2 KB) in 0.52s
   Compiling sokol v0.1.0 (C:\Users\troye\dev\toxoid\sokol-rust)
    Finished dev [unoptimized + debuginfo] target(s) in 4.55s

With Emscripten + ImGUI feature:

$ cargo build --features=imgui --target wasm32-unknown-emscripten
   Compiling sokol v0.1.0 (C:\Users\troye\dev\toxoid\sokol-rust)
The following warnings were emitted during compilation:

warning: In file included from src/sokol/c/sokol_gfx_imgui.c:9:
warning: src/sokol/c\sokol_gfx_imgui.h:1046:14: error: use of undeclared identifier 'SG_BACKEND_GLES2'; did you mean 'SG_BACKEND_GLES3'?
warning:  1046 |         case SG_BACKEND_GLES2:              return "SG_BACKEND_GLES2";     
warning:       |              ^~~~~~~~~~~~~~~~
warning:       |              SG_BACKEND_GLES3
warning: src/sokol/c\sokol_gfx.h:1522:5: note: 'SG_BACKEND_GLES3' declared here
warning:  1522 |     SG_BACKEND_GLES3,
warning:       |     ^
warning: In file included from src/sokol/c/sokol_gfx_imgui.c:9:
warning: src/sokol/c\sokol_gfx_imgui.h:1047:14: error: duplicate case value 'SG_BACKEND_GLES3'
warning:  1047 |         case SG_BACKEND_GLES3:              return "SG_BACKEND_GLES3";     
warning:       |              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1046:14: note: previous case defined here
warning:  1046 |         case SG_BACKEND_GLES2:              return "SG_BACKEND_GLES2";     
warning:       |              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1086:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_FLOAT'
warning:  1086 |         case SG_SAMPLERTYPE_FLOAT:  return "SG_SAMPLERTYPE_FLOAT";
warning:       |              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1087:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_SINT'; did you mean '_SG_SAMPLERTYPE_NUM'?
warning:  1087 |         case SG_SAMPLERTYPE_SINT:   return "SG_SAMPLERTYPE_SINT";
warning:       |              ^~~~~~~~~~~~~~~~~~~
warning:       |              _SG_SAMPLERTYPE_NUM
warning: src/sokol/c\sokol_gfx.h:1873:5: note: '_SG_SAMPLERTYPE_NUM' declared here
warning:  1873 |     _SG_SAMPLERTYPE_NUM,
warning:       |     ^
warning: In file included from src/sokol/c/sokol_imgui.c:10:
warning: src/sokol/c\sokol_imgui.h:1819:18: error: no member named 'wrap_u' in 'struct sg_image_desc'
warning:  1819 |         img_desc.wrap_u = SG_WRAP_CLAMP_TO_EDGE;
warning:       |         ~~~~~~~~ ^
warning: src/sokol/c\sokol_imgui.h:1820:18: error: no member named 'wrap_v' in 'struct sg_image_desc'
warning:  1820 |         img_desc.wrap_v = SG_WRAP_CLAMP_TO_EDGE;
warning:       |         ~~~~~~~~ ^
warning: src/sokol/c\sokol_imgui.h:1821:18: error: no member named 'min_filter' in 'struct sg_image_desc'
warning:  1821 |         img_desc.min_filter = SG_FILTER_LINEAR;
warning:       |         ~~~~~~~~ ^
warning: src/sokol/c\sokol_imgui.h:1822:18: error: no member named 'mag_filter' in 'struct sg_image_desc'
warning:  1822 |         img_desc.mag_filter = SG_FILTER_LINEAR;
warning:       |         ~~~~~~~~ ^
warning: src/sokol/c\sokol_imgui.h:1847:27: error: no member named 'name' in 'struct sg_shader_image_desc'
warning:  1847 |     shd_desc.fs.images[0].name = "tex";
warning:       |     ~~~~~~~~~~~~~~~~~~~~~ ^
warning: In file included from src/sokol/c/sokol_gfx_imgui.c:9:
warning: src/sokol/c\sokol_gfx_imgui.h:1088:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_UINT'; did you mean '_SG_SAMPLERTYPE_NUM'?
warning:  1088 |         case SG_SAMPLERTYPE_UINT:   return "SG_SAMPLERTYPE_UINT";
warning:       |              ^~~~~~~~~~~~~~~~~~~
warning:       |              _SG_SAMPLERTYPE_NUM
warning: src/sokol/c\sokol_gfx.h:1873:5: note: '_SG_SAMPLERTYPE_NUM' declared here
warning:  1873 |     _SG_SAMPLERTYPE_NUM,
warning:       |     ^
warning: In file included from src/sokol/c/sokol_gfx_imgui.c:9:
warning: src/sokol/c\sokol_gfx_imgui.h:1088:14: error: duplicate case value '_SG_SAMPLERTYPE_NUM'
warning:  1088 |         case SG_SAMPLERTYPE_UINT:   return "SG_SAMPLERTYPE_UINT";
warning:       |              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1087:14: note: previous case defined here
warning:  1087 |         case SG_SAMPLERTYPE_SINT:   return "SG_SAMPLERTYPE_SINT";
warning:       |              ^
warning: src/sokol/c\sokol_imgui.h:1849:27: error: no member named 'sampler_type' in 'struct sg_shader_image_desc'
warning:  1849 |     shd_desc.fs.images[0].sampler_type = SG_SAMPLERTYPE_FLOAT;
warning:       |     ~~~~~~~~~~~~~~~~~~~~~ ^
warning: src/sokol/c\sokol_imgui.h:1849:42: error: use of undeclared identifier 'SG_SAMPLERTYPE_FLOAT'
warning:  1849 |     shd_desc.fs.images[0].sampler_type = SG_SAMPLERTYPE_FLOAT;
warning:       |                                          ^
warning: src/sokol/c\sokol_gfx_imgui.h:1166:14: error: use of undeclared identifier 'SG_FILTER_NEAREST_MIPMAP_NEAREST'
warning:  1166 |         case SG_FILTER_NEAREST_MIPMAP_NEAREST:  return "SG_FILTER_NEAREST_MIPMAP_NEAREST";
warning:       |              ^
warning: src/sokol/c\sokol_imgui.h:1891:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
warning:  1891 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[0];
warning:       |         ^
warning: src/sokol/c\sokol_imgui.h:1891:30: error: use of undeclared identifier 'attr'      
warning:  1891 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[0];
warning:       |                              ^
warning: src/sokol/c\sokol_imgui.h:1892:9: error: use of undeclared identifier 'attr'       
warning:  1892 |         attr->offset = offsetof(ImDrawVert, pos);
warning:       |         ^
warning: src/sokol/c\sokol_imgui.h:1893:9: error: use of undeclared identifier 'attr'       
warning:  1893 |         attr->format = SG_VERTEXFORMAT_FLOAT2;
warning:       |         ^
warning: src/sokol/c\sokol_gfx_imgui.h:1167:14: error: use of undeclared identifier 'SG_FILTER_NEAREST_MIPMAP_LINEAR'
warning:  1167 |         case SG_FILTER_NEAREST_MIPMAP_LINEAR:   return "SG_FILTER_NEAREST_MIPMAP_LINEAR";
warning:       |              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1168:14: error: use of undeclared identifier 'SG_FILTER_LINEAR_MIPMAP_NEAREST'
warning:  1168 |         case SG_FILTER_LINEAR_MIPMAP_NEAREST:   return "SG_FILTER_LINEAR_MIPMAP_NEAREST";
warning:       |              ^
warning: src/sokol/c\sokol_imgui.h:1896:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
warning:  1896 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[1];
warning:       |         ^
warning: src/sokol/c\sokol_imgui.h:1896:30: error: use of undeclared identifier 'attr'      
warning:  1896 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[1];
warning:       |                              ^
warning: src/sokol/c\sokol_imgui.h:1897:9: error: use of undeclared identifier 'attr'       
warning:  1897 |         attr->offset = offsetof(ImDrawVert, uv);
warning:       |         ^
warning: src/sokol/c\sokol_imgui.h:1898:9: error: use of undeclared identifier 'attr'       
warning:  1898 |         attr->format = SG_VERTEXFORMAT_FLOAT2;
warning:       |         ^
warning: src/sokol/c\sokol_gfx_imgui.h:1169:14: error: use of undeclared identifier 'SG_FILTER_LINEAR_MIPMAP_LINEAR'
warning:  1169 |         case SG_FILTER_LINEAR_MIPMAP_LINEAR:    return "SG_FILTER_LINEAR_MIPMAP_LINEAR";
warning:       |              ^
warning: src/sokol/c\sokol_imgui.h:1901:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
warning:  1901 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[2];
warning:       |         ^
warning: src/sokol/c\sokol_imgui.h:1901:30: error: use of undeclared identifier 'attr'      
warning:  1901 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[2];
warning:       |                              ^
warning: src/sokol/c\sokol_gfx_imgui.h:1504:36: error: no member named 'name' in 'struct sg_shader_image_desc'
warning:  1504 |         if (shd->desc.vs.images[i].name) {
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~ ^
warning: src/sokol/c\sokol_gfx_imgui.h:1505:79: error: no member named 'name' in 'struct sg_shader_image_desc'
warning: src/sokol/c\sokol_imgui.h:1902:9: error: use of undeclared identifier 'attr'       
warning:  1505 |             shd->vs_image_name[i] = _sg_imgui_make_str(shd->desc.vs.images[i].name);
warning:       |                                                        ~~~~~~~~~~~~~~~~~~~~~~ ^
warning:  1902 |         attr->offset = offsetof(ImDrawVert, col);
warning: src/sokol/c\sokol_gfx_imgui.h:1506:36: error: no member named 'name' in 'struct sg_shader_image_desc'
warning:       |         ^
warning:  1506 |             shd->desc.vs.images[i].name = shd->vs_image_name[i].buf;       
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~ ^
warning: src/sokol/c\sokol_gfx_imgui.h:1510:36: error: no member named 'name' in 'struct sg_shader_image_desc'
warning: src/sokol/c\sokol_imgui.h:1903:9: error: use of undeclared identifier 'attr'       
warning:  1510 |         if (shd->desc.fs.images[i].name) {
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~ ^
warning:  1903 |         attr->format = SG_VERTEXFORMAT_UBYTE4N;
warning:       |         ^
warning: src/sokol/c\sokol_gfx_imgui.h:1511:79: error: no member named 'name' in 'struct sg_shader_image_desc'
warning:  1511 |             shd->fs_image_name[i] = _sg_imgui_make_str(shd->desc.fs.images[i].name);
warning:       |                                                        ~~~~~~~~~~~~~~~~~~~~~~ ^
warning: src/sokol/c\sokol_gfx_imgui.h:1512:36: error: no member named 'name' in 'struct sg_shader_image_desc'
warning:  1512 |             shd->desc.fs.images[i].name = shd->fs_image_name[i].buf;       
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~ ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
warning: emcc: error: 'C:/Users/troye/dev/bin/emsdk/upstream/bin\clang.exe -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=C:\Users\troye\dev\bin\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\fakesdl -Xclang -iwithsysroot/include\compat -O0 -ffunction-sections -fdata-sections -fPIC -g3 -fno-omit-frame-pointer -Isrc/sokol/c/ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DSOKOL_GLES3 -DIMPL -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -c src/sokol/c/sokol_imgui.c -o C:\Users\troye\dev\toxoid\sokol-rust\target\wasm32-unknown-emscripten\debug\build\sokol-403c6e5206adbb21\out\src/sokol/c/sokol_imgui.o' failed (returned 1)
warning: src/sokol/c\sokol_gfx_imgui.h:2880:20: error: no member named 'err_buffer_pool_exhausted' in 'struct sg_trace_hooks'
warning:  2880 |     if (ctx->hooks.err_buffer_pool_exhausted) {
warning:       |         ~~~~~~~~~~ ^
warning: src/sokol/c\sokol_gfx_imgui.h:2881:20: error: no member named 'err_buffer_pool_exhausted' in 'struct sg_trace_hooks'
warning:  2881 |         ctx->hooks.err_buffer_pool_exhausted(ctx->hooks.user_data);        
warning:       |         ~~~~~~~~~~ ^
warning: src/sokol/c\sokol_gfx_imgui.h:2893:20: error: no member named 'err_image_pool_exhausted' in 'struct sg_trace_hooks'
warning:  2893 |     if (ctx->hooks.err_image_pool_exhausted) {
warning:       |         ~~~~~~~~~~ ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
warning: emcc: error: 'C:/Users/troye/dev/bin/emsdk/upstream/bin\clang.exe -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=C:\Users\troye\dev\bin\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\fakesdl -Xclang -iwithsysroot/include\compat -O0 -ffunction-sections -fdata-sections -fPIC -g3 -fno-omit-frame-pointer -Isrc/sokol/c/ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DSOKOL_GLES3 -DIMPL -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -c src/sokol/c/sokol_gfx_imgui.c -o C:\Users\troye\dev\toxoid\sokol-rust\target\wasm32-unknown-emscripten\debug\build\sokol-403c6e5206adbb21\out\src/sokol/c/sokol_gfx_imgui.o' failed (returned 1)

error: failed to run custom build command for `sokol v0.1.0 (C:\Users\troye\dev\toxoid\sokol-rust)`

Caused by:
  process didn't exit successfully: `C:\Users\troye\dev\toxoid\sokol-rust\target\debug\build\sokol-f4e08d814bdb33aa\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=build.rs
  OPT_LEVEL = Some("0")
  TARGET = Some("wasm32-unknown-emscripten")
  HOST = Some("x86_64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=SOKOL_BACKEND
  cargo:rerun-if-env-changed=SOKOL_WAYLAND
  cargo:rerun-if-env-changed=SOKOL_FORCE_EGL
  cargo:rerun-if-env-changed=SOKOL_DEBUG
  cargo:rerun-if-changed=src/sokol/c/sokol_log.c
  cargo:rerun-if-changed=src/sokol/c/sokol_app.c
  cargo:rerun-if-changed=src/sokol/c/sokol_gfx.c
  cargo:rerun-if-changed=src/sokol/c/sokol_glue.c
  cargo:rerun-if-changed=src/sokol/c/sokol_time.c
  cargo:rerun-if-changed=src/sokol/c/sokol_audio.c
  cargo:rerun-if-changed=src/sokol/c/sokol_gl.c
  cargo:rerun-if-changed=src/sokol/c/sokol_debugtext.c
  cargo:rerun-if-changed=src/sokol/c/sokol_shape.c
  cargo:rustc-link-lib=static=sokol-rust
  cargo:rustc-link-search=src/sokol/c/
  cargo:rustc-link-search=target/debug/
  cargo:rustc-link-arg=-sUSE_WEBGL2
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_glue.o" "-c" "src/sokol/c/sokol_glue.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_gl.o" "-c" "src/sokol/c/sokol_gl.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_app.o" "-c" "src/sokol/c/sokol_app.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_debugtext.o" "-c" "src/sokol/c/sokol_debugtext.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_audio.o" "-c" "src/sokol/c/sokol_audio.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_time.o" "-c" "src/sokol/c/sokol_time.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_gfx.o" "-c" "src/sokol/c/sokol_gfx.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_log.o" "-c" "src/sokol/c/sokol_log.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_shape.o" "-c" "src/sokol/c/sokol_shape.c"
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  cargo:rerun-if-env-changed=AR_wasm32-unknown-emscripten
  AR_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=AR_wasm32_unknown_emscripten
  AR_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_AR
  TARGET_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  cargo:rerun-if-env-changed=ARFLAGS_wasm32-unknown-emscripten
  ARFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=ARFLAGS_wasm32_unknown_emscripten
  ARFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_ARFLAGS
  TARGET_ARFLAGS = None
  cargo:rerun-if-env-changed=ARFLAGS
  ARFLAGS = None
  running: "cmd" "/c" "emar.bat" "cq" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\libsokol-rust.a" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_log.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_app.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_gfx.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_glue.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_time.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_audio.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_gl.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_debugtext.o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_shape.o"
  exit code: 0
  running: "cmd" "/c" "emar.bat" "s" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\libsokol-rust.a"
  exit code: 0
  cargo:rustc-link-lib=static=sokol-rust
  cargo:rustc-link-search=native=C:\Users\troye\dev\toxoid\sokol-rust\target\wasm32-unknown-emscripten\debug\build\sokol-403c6e5206adbb21\out
  OPT_LEVEL = Some("0")
  TARGET = Some("wasm32-unknown-emscripten")
  HOST = Some("x86_64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=SOKOL_BACKEND
  cargo:rerun-if-env-changed=SOKOL_WAYLAND
  cargo:rerun-if-env-changed=SOKOL_FORCE_EGL
  cargo:rerun-if-env-changed=SOKOL_DEBUG
  cargo:rerun-if-changed=src/sokol/c/sokol_imgui.c
  cargo:rerun-if-changed=src/sokol/c/sokol_gfx_imgui.c
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  cargo:rerun-if-env-changed=CC_wasm32-unknown-emscripten
  CC_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_emscripten
  CC_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-emscripten
  CFLAGS_wasm32-unknown-emscripten = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_emscripten
  CFLAGS_wasm32_unknown_emscripten = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_imgui.o" "-c" "src/sokol/c/sokol_imgui.c"
  running: "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_gfx_imgui.o" "-c" "src/sokol/c/sokol_gfx_imgui.c"
  cargo:warning=In file included from src/sokol/c/sokol_gfx_imgui.c:9:
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1046:14: error: use of undeclared identifier 'SG_BACKEND_GLES2'; did you mean 'SG_BACKEND_GLES3'?
  cargo:warning= 1046 |         case SG_BACKEND_GLES2:              return "SG_BACKEND_GLES2";
  cargo:warning=      |              ^~~~~~~~~~~~~~~~
  cargo:warning=      |              SG_BACKEND_GLES3
  cargo:warning=src/sokol/c\sokol_gfx.h:1522:5: note: 'SG_BACKEND_GLES3' declared here      
  cargo:warning= 1522 |     SG_BACKEND_GLES3,
  cargo:warning=      |     ^
  cargo:warning=In file included from src/sokol/c/sokol_gfx_imgui.c:9:
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1047:14: error: duplicate case value 'SG_BACKEND_GLES3'
  cargo:warning= 1047 |         case SG_BACKEND_GLES3:              return "SG_BACKEND_GLES3";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1046:14: note: previous case defined here     
  cargo:warning= 1046 |         case SG_BACKEND_GLES2:              return "SG_BACKEND_GLES2";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1086:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_FLOAT'
  cargo:warning= 1086 |         case SG_SAMPLERTYPE_FLOAT:  return "SG_SAMPLERTYPE_FLOAT";  
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1087:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_SINT'; did you mean '_SG_SAMPLERTYPE_NUM'?
  cargo:warning= 1087 |         case SG_SAMPLERTYPE_SINT:   return "SG_SAMPLERTYPE_SINT";   
  cargo:warning=      |              ^~~~~~~~~~~~~~~~~~~
  cargo:warning=      |              _SG_SAMPLERTYPE_NUM
  cargo:warning=src/sokol/c\sokol_gfx.h:1873:5: note: '_SG_SAMPLERTYPE_NUM' declared here   
  cargo:warning= 1873 |     _SG_SAMPLERTYPE_NUM,
  cargo:warning=      |     ^
  cargo:warning=In file included from src/sokol/c/sokol_imgui.c:10:
  cargo:warning=src/sokol/c\sokol_imgui.h:1819:18: error: no member named 'wrap_u' in 'struct sg_image_desc'
  cargo:warning= 1819 |         img_desc.wrap_u = SG_WRAP_CLAMP_TO_EDGE;
  cargo:warning=      |         ~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1820:18: error: no member named 'wrap_v' in 'struct sg_image_desc'
  cargo:warning= 1820 |         img_desc.wrap_v = SG_WRAP_CLAMP_TO_EDGE;
  cargo:warning=      |         ~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1821:18: error: no member named 'min_filter' in 'struct sg_image_desc'
  cargo:warning= 1821 |         img_desc.min_filter = SG_FILTER_LINEAR;
  cargo:warning=      |         ~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1822:18: error: no member named 'mag_filter' in 'struct sg_image_desc'
  cargo:warning= 1822 |         img_desc.mag_filter = SG_FILTER_LINEAR;
  cargo:warning=      |         ~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1847:27: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning= 1847 |     shd_desc.fs.images[0].name = "tex";
  cargo:warning=      |     ~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=In file included from src/sokol/c/sokol_gfx_imgui.c:9:
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1088:14: error: use of undeclared identifier 'SG_SAMPLERTYPE_UINT'; did you mean '_SG_SAMPLERTYPE_NUM'?
  cargo:warning= 1088 |         case SG_SAMPLERTYPE_UINT:   return "SG_SAMPLERTYPE_UINT";   
  cargo:warning=      |              ^~~~~~~~~~~~~~~~~~~
  cargo:warning=      |              _SG_SAMPLERTYPE_NUM
  cargo:warning=src/sokol/c\sokol_gfx.h:1873:5: note: '_SG_SAMPLERTYPE_NUM' declared here   
  cargo:warning= 1873 |     _SG_SAMPLERTYPE_NUM,
  cargo:warning=      |     ^
  cargo:warning=In file included from src/sokol/c/sokol_gfx_imgui.c:9:
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1088:14: error: duplicate case value '_SG_SAMPLERTYPE_NUM'
  cargo:warning= 1088 |         case SG_SAMPLERTYPE_UINT:   return "SG_SAMPLERTYPE_UINT";   
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1087:14: note: previous case defined here     
  cargo:warning= 1087 |         case SG_SAMPLERTYPE_SINT:   return "SG_SAMPLERTYPE_SINT";   
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1849:27: error: no member named 'sampler_type' in 'struct sg_shader_image_desc'
  cargo:warning= 1849 |     shd_desc.fs.images[0].sampler_type = SG_SAMPLERTYPE_FLOAT;      
  cargo:warning=      |     ~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1849:42: error: use of undeclared identifier 'SG_SAMPLERTYPE_FLOAT'
  cargo:warning= 1849 |     shd_desc.fs.images[0].sampler_type = SG_SAMPLERTYPE_FLOAT;      
  cargo:warning=      |                                          ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1166:14: error: use of undeclared identifier 'SG_FILTER_NEAREST_MIPMAP_NEAREST'
  cargo:warning= 1166 |         case SG_FILTER_NEAREST_MIPMAP_NEAREST:  return "SG_FILTER_NEAREST_MIPMAP_NEAREST";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1891:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
  cargo:warning= 1891 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[0];      
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1891:30: error: use of undeclared identifier 'attr'
  cargo:warning= 1891 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[0];      
  cargo:warning=      |                              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1892:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1892 |         attr->offset = offsetof(ImDrawVert, pos);
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1893:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1893 |         attr->format = SG_VERTEXFORMAT_FLOAT2;
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1167:14: error: use of undeclared identifier 'SG_FILTER_NEAREST_MIPMAP_LINEAR'
  cargo:warning= 1167 |         case SG_FILTER_NEAREST_MIPMAP_LINEAR:   return "SG_FILTER_NEAREST_MIPMAP_LINEAR";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1168:14: error: use of undeclared identifier 'SG_FILTER_LINEAR_MIPMAP_NEAREST'
  cargo:warning= 1168 |         case SG_FILTER_LINEAR_MIPMAP_NEAREST:   return "SG_FILTER_LINEAR_MIPMAP_NEAREST";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1896:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
  cargo:warning= 1896 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[1];      
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1896:30: error: use of undeclared identifier 'attr'
  cargo:warning= 1896 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[1];      
  cargo:warning=      |                              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1897:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1897 |         attr->offset = offsetof(ImDrawVert, uv);
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1898:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1898 |         attr->format = SG_VERTEXFORMAT_FLOAT2;
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1169:14: error: use of undeclared identifier 'SG_FILTER_LINEAR_MIPMAP_LINEAR'
  cargo:warning= 1169 |         case SG_FILTER_LINEAR_MIPMAP_LINEAR:    return "SG_FILTER_LINEAR_MIPMAP_LINEAR";
  cargo:warning=      |              ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1901:9: error: use of undeclared identifier 'sg_vertex_attr_desc'
  cargo:warning= 1901 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[2];      
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_imgui.h:1901:30: error: use of undeclared identifier 'attr'
  cargo:warning= 1901 |         sg_vertex_attr_desc* attr = &pip_desc.layout.attrs[2];      
  cargo:warning=      |                              ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1504:36: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning= 1504 |         if (shd->desc.vs.images[i].name) {
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1505:79: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning=src/sokol/c\sokol_imgui.h:1902:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1505 |             shd->vs_image_name[i] = _sg_imgui_make_str(shd->desc.vs.images[i].name);
  cargo:warning=      |                                                        ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning= 1902 |         attr->offset = offsetof(ImDrawVert, col);
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1506:36: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning=      |         ^
  cargo:warning= 1506 |             shd->desc.vs.images[i].name = shd->vs_image_name[i].buf;
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1510:36: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning=src/sokol/c\sokol_imgui.h:1903:9: error: use of undeclared identifier 'attr'
  cargo:warning= 1510 |         if (shd->desc.fs.images[i].name) {
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning= 1903 |         attr->format = SG_VERTEXFORMAT_UBYTE4N;
  cargo:warning=      |         ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1511:79: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning= 1511 |             shd->fs_image_name[i] = _sg_imgui_make_str(shd->desc.fs.images[i].name);
  cargo:warning=      |                                                        ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:1512:36: error: no member named 'name' in 'struct sg_shader_image_desc'
  cargo:warning= 1512 |             shd->desc.fs.images[i].name = shd->fs_image_name[i].buf;
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~ ^
  cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
  cargo:warning=20 errors generated.
  cargo:warning=emcc: error: 'C:/Users/troye/dev/bin/emsdk/upstream/bin\clang.exe -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=C:\Users\troye\dev\bin\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\fakesdl -Xclang -iwithsysroot/include\compat -O0 -ffunction-sections -fdata-sections -fPIC -g3 -fno-omit-frame-pointer -Isrc/sokol/c/ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DSOKOL_GLES3 -DIMPL -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -c src/sokol/c/sokol_imgui.c -o C:\Users\troye\dev\toxoid\sokol-rust\target\wasm32-unknown-emscripten\debug\build\sokol-403c6e5206adbb21\out\src/sokol/c/sokol_imgui.o' failed (returned 1)
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:2880:20: error: no member named 'err_buffer_pool_exhausted' in 'struct sg_trace_hooks'
  cargo:warning= 2880 |     if (ctx->hooks.err_buffer_pool_exhausted) {
  cargo:warning=      |         ~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:2881:20: error: no member named 'err_buffer_pool_exhausted' in 'struct sg_trace_hooks'
  cargo:warning= 2881 |         ctx->hooks.err_buffer_pool_exhausted(ctx->hooks.user_data); 
  cargo:warning=      |         ~~~~~~~~~~ ^
  cargo:warning=src/sokol/c\sokol_gfx_imgui.h:2893:20: error: no member named 'err_image_pool_exhausted' in 'struct sg_trace_hooks'
  cargo:warning= 2893 |     if (ctx->hooks.err_image_pool_exhausted) {
  cargo:warning=      |         ~~~~~~~~~~ ^
  cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
  cargo:warning=20 errors generated.
  exit code: 1
  cargo:warning=emcc: error: 'C:/Users/troye/dev/bin/emsdk/upstream/bin\clang.exe -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=C:\Users\troye\dev\bin\emsdk\upstream\emscripten\cache\sysroot -Xclang -iwithsysroot/include\fakesdl -Xclang -iwithsysroot/include\compat -O0 -ffunction-sections -fdata-sections -fPIC -g3 -fno-omit-frame-pointer -Isrc/sokol/c/ -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DSOKOL_GLES3 -DIMPL -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -c src/sokol/c/sokol_gfx_imgui.c -o C:\Users\troye\dev\toxoid\sokol-rust\target\wasm32-unknown-emscripten\debug\build\sokol-403c6e5206adbb21\out\src/sokol/c/sokol_gfx_imgui.o' failed (returned 1)
  exit code: 1

  --- stderr


  error occurred: Command "cmd" "/c" "emcc.bat" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "src/sokol/c/" "-Wall" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-DSOKOL_GLES3" "-DIMPL" "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS" "-o" "C:\\Users\\troye\\dev\\toxoid\\sokol-rust\\target\\wasm32-unknown-emscripten\\debug\\build\\sokol-403c6e5206adbb21\\out\\src/sokol/c/sokol_imgui.o" "-c" "src/sokol/c/sokol_imgui.c" with args "cmd" did not execute successfully (status code exit code: 1). 
@floooh
Copy link
Owner

floooh commented Jan 7, 2024

Yes not unexpected, there was some confusion around whether sokol_imgui.h should be part of the Rust bindings or not (for instance it's currently not in the other bindings).

The errors look like that the sokol_imgui.h and sokol_gfx_imgui.h C headers are outdated. I will probably need to set aside some time to clean up the Rust bindings, but as I said, Rust is the only binding which even includes those headers, so a quick fix would be to remove those two headers for the time being and at a later time add ImGui support to all language bindings.

@troyedwardsjr
Copy link
Author

troyedwardsjr commented Jan 13, 2024

@floooh If you want a reference, I've included everything but the kitchen sink in Toxoid Engine (a polyglot WASM scripting game engine written in Rust). Spine is up next.

https://github.com/toxoidengine/toxoid/tree/master/crates/toxoid_sokol

2024-01-06.20-40-50.mp4

It's just using raw bindings for now though. High-level bindings are a bit of an ask to maintain, as I'm sure you know.

@troyedwardsjr
Copy link
Author

troyedwardsjr commented Jan 13, 2024

Yes not unexpected, there was some confusion around whether sokol_imgui.h should be part of the Rust bindings or not (for instance it's currently not in the other bindings).

The errors look like that the sokol_imgui.h and sokol_gfx_imgui.h C headers are outdated. I will probably need to set aside some time to clean up the Rust bindings, but as I said, Rust is the only binding which even includes those headers, so a quick fix would be to remove those two headers for the time being and at a later time add ImGui support to all language bindings.

It would be ideal to have separate libs for all utils as well as sokol_gp for convenient 2D rendering. From what I remember though it's a little difficult to get the build.rs / LLVM to play nice with duplicate C implementations.

@waywardmonkeys
Copy link
Contributor

@troyedwardsjr What about the changes in PR #9? Do they help you?

@floooh
Copy link
Owner

floooh commented Jan 22, 2024

Oops, that PR totally fell through the cracks. If anybody can test if this works I'm happy to merge.

@floooh
Copy link
Owner

floooh commented Mar 2, 2024

Slight change of plans: #9 (comment)

...sorry for the inconvenience.

@floooh floooh closed this as completed Mar 2, 2024
@floooh floooh reopened this Mar 2, 2024
@floooh floooh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants