Open Rdna123 opened 2 years ago
When building directly works fine, when building as a subproject it produces the before given error
me too
I think I have the same issue, having installed SDL2-2.24.2
with meson wrap install sdl2
and trying to build with Clang CC=clang CXX=clang++ meson build-clang
and meson compile -C build-clang
.
It works fine when using MSVC through x64 Native Tools Command Prompt for VS 2017
, by running meson setup builddir
and meson compile -C builddir
.
Using Git Bash on Window.
$ meson -v
0.63.2
$ clang --version
clang version 15.0.2
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
First I had problems compiling because of errors and such. I just used -Wno-error=...
to stop all the warnings from causing errors. I also removed the 2nd argument in some functions requiring a single argument and renamed an undeclared symbol.
Now I only get linker errors:
I have the same issue too:
I get
subprojects\SDL2-2.30.6\libsdl2_test.a : fatal error LNK1107: invalid or corrupt file: cannot read at 0x7CEA
when building sdl2 as described in the meson tutorial.
I'm on windows 11, clang 18.1.8, meson 1.4.2 and SDL2 2.30.6.
Using sdl2 example from meson website. Error: