Ninja build fails on Windows at `Linking target tools/dav1d.exe`
When configuring AppVeyor for automated builds on Windows I encountered the following error during ninja -C build
: (see this build i.e.)
[84/105] Linking target tools/dav1d.exe.
FAILED: tools/dav1d.exe
clang @tools/dav1d.exe.rsp
LINK : warning LNK4044: unrecognized option '/O1'; ignored
LINK : warning LNK4044: unrecognized option '/-start-group'; ignored
LINK : warning LNK4044: unrecognized option '/-end-group'; ignored
Creating library tools/dav1d.lib and object tools/dav1d.exp
dav1d.c.obj : error LNK2019: unresolved external symbol fileno referenced in function main
dav1d.c.obj : error LNK2019: unresolved external symbol isatty referenced in function main
tools/dav1d.exe : fatal error LNK1120: 2 unresolved externals
clang.exe: error: linker command failed with exit code 1120 (use -v to see invocation)
[85/105] Compiling C object tests/59830eb@@checkasm_bitdepth_8@sta/checkasm_cdef.c.obj.
[86/105] Compiling C object tests/59830eb@@checkasm_bitdepth_8@sta/checkasm_ipred.c.obj.
ninja: build stopped: subcommand failed.
Command exited with code 1
On a smaller note, when not using the meson --default-library static
flag I got the following error during meson build, which refers to this block of code. Is that error expected? (see this AppVeyor build)
src\meson.build:158:4: ERROR: Could not find Windows resource compiler