Nazariglez / notan

Cross-platform multimedia layer
https://nazariglez.github.io/notan-web/
Apache License 2.0
763 stars 53 forks source link

Can't compile notan_macro in Windows #316

Closed MrAdhit closed 4 months ago

MrAdhit commented 4 months ago

I'm using Windows 21H2 (19044.4046), and cannot compile notan_macro for some reason? Here's the error log

error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\link.exe" "/DEF:C:\\Users\\***\\AppData\\Local\\Temp\\rustc49wemX\\lib.def" "/NOLOGO" "C:\\Users\\***\\AppData\\Local\\Temp\\rustc49wemX\\symbols.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.0.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.1.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.2.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.3.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.4.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.5.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.6.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.7.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.notan_macro.4dfcb72b918b08e5-cgu.8.rcgu.o" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.3xqettyewo3hrkng.rcgu.rmeta" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.3jurzmnrgcrr3im3.rcgu.o" "/LIBPATH:H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps" "/LIBPATH:C:\\Users\\***\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.52.1\\lib" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\build\\spirv_cross-0fb80df4b7fa41b6\\out" "/LIBPATH:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libglsl_to_spirv-e8f876b726ba7933.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libtempfile-5a88898715dde743.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libfastrand-83f632126f71638e.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libwindows_sys-488a20dcb7184886.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libwindows_targets-d3bfe7abf330a92a.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libcfg_if-fd3486bfba9b44a7.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum-ad643d158a1f3561.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_iter-92aa64cc4e4bbb17.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_rational-b4b0a7049d2a27d7.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_complex-1fbd3da527a9e65e.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_bigint-9470d596c0a3938f.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_integer-faf569bd9a572f1c.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libnum_traits-1a3ba5d608a28a7f.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libspirv_cross-e09c1e9de810555e.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libsyn-bee6fd83a3dff37d.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libquote-0a6af04a34d4c6fc.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libproc_macro2-90d899f773d8ac11.rlib" "H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\libunicode_ident-9763c502fdfe0584.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libproc_macro-f8524a445031a690.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-4c5d092b901daedc.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-c1d0337b7fc45efe.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-6d37ce9e793737f0.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-54c5af2eb7310822.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-6be25f581644e237.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-3bed8915f2af4b48.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-beec6f2f96f7d444.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-99164f8878459c2d.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-3ee616106607257a.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-f01f1b5b0462925e.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-747897f502f49f1a.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-0a7d9524c210bd3d.rlib" "C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-d0b7cd1e3991caf1.rlib" "windows.0.52.0.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "ntdll.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.dll" "/OPT:REF,NOICF" "/DLL" "/IMPLIB:H:\\Important\\Project\\Rust\\yetanothergame\\target\\debug\\deps\\notan_macro-1513efe02c15cb56.dll.lib" "/DEBUG" "/NATVIS:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\***\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: LINK : fatal error LNK1181: cannot open input file 'windows.0.52.0.lib'

error: could not compile `notan_macro` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
MrAdhit commented 4 months ago

Okay, so I manage to fix that problem by adding this Windows crate for some reason.