njaard/libavif-rs

MSBUILD : error MSB1009: Project file does not exist.

Closed this issue · 7 comments

Windows builds started to fail in CI with the error:

MSBUILD : error MSB1009: Project file does not exist.

I'm also getting this error on my machine even when building commit 4bd4ced.

It seems that libaom hasn't been built in CI, so this incompatibility has slipped through. Once I've made aom a separate crate, it got build by default, exposing the issue.

You're using msbuild to build something, I don't think we support or require msbuild in any configuration.

I'm not using msbuild intentionally, it's just cmake choosing it for some reason.

I think it's because aom's cmake build script doesn't define "install" target when msvc is used:

https://aomedia.googlesource.com/aom/+/refs/heads/master/build/cmake/aom_install.cmake#30

if(NOT (MSVC OR XCODE))
…

# Setup the install rules.
    install(
      FILES ${AOM_INSTALL_INCS}

and Rust cmake crate defaults to install target: https://docs.rs/cmake/0.1.44/cmake/struct.Config.html#method.build_target

this will default to "install" if not specified.

Maybe none of our test configurations have msbuild in path?

May I see your build log?

admin@PC C:\Users\admin\libavif-rs>git checkout 4bd4ced -f
warning: unable to rmdir libaom-sys/vendor: Directory not empty
Note: checking out '4bd4ced'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 4bd4ced... ci: set fail-fast: false for test jobs

admin@PC C:\Users\admin\libavif-rs>git reset --hard
HEAD is now at 4bd4ced ci: set fail-fast: false for test jobs

admin@PC C:\Users\admin\libavif-rs>git submodule update --init --recursive


admin@PC C:\Users\admin\libavif-rs>cargo build -vv --no-default-features --features=codec-aom
   Compiling cc v1.0.58
   Compiling libc v0.2.74
     Running `set CARGO=\\?\C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_MANIFEST_D
IR=C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.58&& set CARGO_PKG_AUTHORS="Alex Crichton <alex@alexcri
chton.com>"&& set CARGO_PKG_DESCRIPTION="A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust
code.
"&& set CARGO_PKG_HOMEPAGE=https://github.com/alexcrichton/cc-rs&& set CARGO_PKG_NAME=cc&& set CARGO_PKG_REPOSITORY=https://gith
ub.com/alexcrichton/cc-rs&& set CARGO_PKG_VERSION=1.0.58&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set C
ARGO_PKG_VERSION_PATCH=58&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\admin\libavif-rs\target\debug\deps;C:\Users\admin\.r
ustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\admin\.cargo\bin;C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-
windows-msvc\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbe
m;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:
\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\SSHD\AppData\Local\Mi
crosoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\P
rogram Files\LLVM\bin;C:\Program Files\NASM;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsP
owerShell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry
\perl\bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\
AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\Microsoft VS Code\bin;"&& rustc --crate-name cc
--edition=2018 C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.58\src\lib.rs --error-format=json --json=di
agnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -Cembed-bitcode=no -C debuginfo=2
 -C debug-assertions=on -C metadata=6f587bf209bfce0c -C extra-filename=-6f587bf209bfce0c --out-dir C:\Users\admin\libavif-rs\tar
get\debug\deps -L dependency=C:\Users\admin\libavif-rs\target\debug\deps --cap-lints warn`
     Running `set CARGO=\\?\C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_MANIFEST_D
IR=C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.74&& set CARGO_PKG_AUTHORS="The Rust Project Develope
rs"&& set CARGO_PKG_DESCRIPTION="Raw FFI bindings to platform libraries like libc.
"&& set CARGO_PKG_HOMEPAGE=https://github.com/rust-lang/libc&& set CARGO_PKG_NAME=libc&& set CARGO_PKG_REPOSITORY=https://github
.com/rust-lang/libc&& set CARGO_PKG_VERSION=0.2.74&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=2&& set CARGO_P
KG_VERSION_PATCH=74&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\admin\libavif-rs\target\debug\deps;C:\Users\admin\.rustup\
toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\admin\.cargo\bin;C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-window
s-msvc\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W
indows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\WINDO
WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\SSHD\AppData\Local\Microsof
t\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program
 Files\LLVM\bin;C:\Program Files\NASM;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerSh
ell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\
bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppDat
a\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\Microsoft VS Code\bin;"&& rustc --crate-name build_scr
ipt_build C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.74\build.rs --error-format=json --json=diagnos
tic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=2 -Cembed-bitcode=no -C debuginfo=2 -C debug-assertions=on
--cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=019dfa43a600e056 -C extra-filename=-019dfa43a600e056 --out-dir C
:\Users\admin\libavif-rs\target\debug\build\libc-019dfa43a600e056 -L dependency=C:\Users\admin\libavif-rs\target\debug\deps --ca
p-lints warn`
   Compiling cmake v0.1.44
     Running `set CARGO=\\?\C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_MANIFEST_D
IR=C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.44&& set CARGO_PKG_AUTHORS="Alex Crichton <alex@alex
crichton.com>"&& set CARGO_PKG_DESCRIPTION="A build dependency for running `cmake` to build a native library
"&& set CARGO_PKG_HOMEPAGE=https://github.com/alexcrichton/cmake-rs&& set CARGO_PKG_NAME=cmake&& set CARGO_PKG_REPOSITORY=https:
//github.com/alexcrichton/cmake-rs&& set CARGO_PKG_VERSION=0.1.44&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=
1&& set CARGO_PKG_VERSION_PATCH=44&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\admin\libavif-rs\target\debug\deps;C:\Users
\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\admin\.cargo\bin;C:\Users\admin\.rustup\toolchains\stable-x
86_64-pc-windows-msvc\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\Sys
tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\G
it\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\SSHD\AppData
\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake
\bin;C:\Program Files\LLVM\bin;C:\Program Files\NASM;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32
\WindowsPowerShell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\S
trawberry\perl\bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Use
rs\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\Microsoft VS Code\bin;"&& rustc --crate
-name cmake C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.44\src\lib.rs --error-format=json --json=di
agnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -Cembed-bitcode=no -C debuginfo=2 -C debug-
assertions=on -C metadata=990ba16ed7e350b4 -C extra-filename=-990ba16ed7e350b4 --out-dir C:\Users\admin\libavif-rs\target\debug\
deps -L dependency=C:\Users\admin\libavif-rs\target\debug\deps --extern cc=C:\Users\admin\libavif-rs\target\debug\deps\libcc-6f5
87bf209bfce0c.rmeta --cap-lints warn`
     Running `C:\Users\admin\libavif-rs\target\debug\build\libc-019dfa43a600e056\build-script-build`
[libc 0.2.74] cargo:rustc-cfg=freebsd11
[libc 0.2.74] cargo:rustc-cfg=libc_priv_mod_use
[libc 0.2.74] cargo:rustc-cfg=libc_union
[libc 0.2.74] cargo:rustc-cfg=libc_const_size_of
[libc 0.2.74] cargo:rustc-cfg=libc_align
[libc 0.2.74] cargo:rustc-cfg=libc_core_cvoid
[libc 0.2.74] cargo:rustc-cfg=libc_packedN
     Running `set CARGO=\\?\C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_MANIFEST_D
IR=C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.74&& set CARGO_PKG_AUTHORS="The Rust Project Develope
rs"&& set CARGO_PKG_DESCRIPTION="Raw FFI bindings to platform libraries like libc.
"&& set CARGO_PKG_HOMEPAGE=https://github.com/rust-lang/libc&& set CARGO_PKG_NAME=libc&& set CARGO_PKG_REPOSITORY=https://github
.com/rust-lang/libc&& set CARGO_PKG_VERSION=0.2.74&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=2&& set CARGO_P
KG_VERSION_PATCH=74&& set CARGO_PKG_VERSION_PRE=&& set OUT_DIR=C:\Users\admin\libavif-rs\target\debug\build\libc-68baeb193885bd4
1\out&& set PATH="C:\Users\admin\libavif-rs\target\debug\deps;C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bi
n;C:\Users\admin\.cargo\bin;C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Program Files (x86)\Common Fi
les\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\
Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\SSHD\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\
Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Program Files\NASM;C:\WI
NDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\NVIDIA Corporati
on\NVIDIA NvDLISR;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\WINDOWS\system32\config\systemprofil
e\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Fi
les\CMake\bin;C:\Program Files\Microsoft VS Code\bin;"&& rustc --crate-name libc C:\Users\admin\.cargo\registry\src\github.com-1
ecc6299db9ec823\libc-0.2.74\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep
-info,metadata,link -C opt-level=2 -Cembed-bitcode=no -C debuginfo=2 -C debug-assertions=on --cfg "feature=\"default\"" --cfg "f
eature=\"std\"" -C metadata=6afcb42ba7810142 -C extra-filename=-6afcb42ba7810142 --out-dir C:\Users\admin\libavif-rs\target\debu
g\deps -L dependency=C:\Users\admin\libavif-rs\target\debug\deps --cap-lints warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg
libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN`
   Compiling libavif-sys v0.5.0 (C:\Users\admin\libavif-rs\libavif-sys)
     Running `set CARGO=\\?\C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_MANIFEST_D
IR=C:\Users\admin\libavif-rs\libavif-sys&& set CARGO_PKG_AUTHORS="Charles Samuels <ks@ks.ax>:Paolo Barbolini <paolo@paolo565.org
>"&& set CARGO_PKG_DESCRIPTION="Unsafe wrapper around libavif, the image codec"&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_NAME=l
ibavif-sys&& set CARGO_PKG_REPOSITORY=https://github.com/njaard/libavif-rs&& set CARGO_PKG_VERSION=0.5.0&& set CARGO_PKG_VERSION
_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=5&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\admin
\libavif-rs\target\debug\deps;C:\Users\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\admin\.cargo\bin;C:\U
sers\admin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Wind
ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corpo
ration\PhysX\Common;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Windows
PowerShell\v1.0\;C:\Users\SSHD\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Micros
oft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Program Files\NASM;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
DOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Strawberry\
c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\Window
sApps;C:\Users\admin\.cargo\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin;C:\Program Files\M
icrosoft VS Code\bin;"&& rustc --crate-name build_script_build --edition=2018 libavif-sys\build.rs --error-format=json --json=di
agnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=2 -Cembed-bitcode=no -C debuginfo=2 -C debug-assertion
s=on --cfg "feature=\"codec-aom\"" -C metadata=cdf00317fd0e9abc -C extra-filename=-cdf00317fd0e9abc --out-dir C:\Users\admin\lib
avif-rs\target\debug\build\libavif-sys-cdf00317fd0e9abc -C incremental=C:\Users\admin\libavif-rs\target\debug\incremental -L dep
endency=C:\Users\admin\libavif-rs\target\debug\deps --extern cmake=C:\Users\admin\libavif-rs\target\debug\deps\libcmake-990ba16e
d7e350b4.rlib`
     Running `C:\Users\admin\libavif-rs\target\debug\build\libavif-sys-cdf00317fd0e9abc\build-script-build`
[libavif-sys 0.5.0] running: "cmake" "C:\\Users\\admin\\libavif-rs\\libavif-sys\\aom" "-G" "Visual Studio 15 2017" "-Thost=x64"
"-Ax64" "-DENABLE_DOCS=0" "-DENABLE_EXAMPLES=0" "-DENABLE_TESTDATA=0" "-DENABLE_TESTS=0" "-DENABLE_TOOLS=0" "-DCMAKE_INSTALL_PRE
FIX=C:\\Users\\admin\\libavif-rs\\target\\debug\\build\\libavif-sys-8e1e2af2e49cd091\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro
" "-DCMAKE_C_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_RELEASE= -nologo -M
D -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Release
"
[libavif-sys 0.5.0] -- The C compiler identification is MSVC 19.11.25506.0
[libavif-sys 0.5.0] -- The CXX compiler identification is MSVC 19.11.25506.0
[libavif-sys 0.5.0] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC
/14.11.25503/bin/HostX64/x64/cl.exe
[libavif-sys 0.5.0] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC
/14.11.25503/bin/HostX64/x64/cl.exe -- works
[libavif-sys 0.5.0] -- Detecting C compiler ABI info
[libavif-sys 0.5.0] -- Detecting C compiler ABI info - done
[libavif-sys 0.5.0] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MS
VC/14.11.25503/bin/HostX64/x64/cl.exe
[libavif-sys 0.5.0] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MS
VC/14.11.25503/bin/HostX64/x64/cl.exe -- works
[libavif-sys 0.5.0] -- Detecting CXX compiler ABI info
[libavif-sys 0.5.0] -- Detecting CXX compiler ABI info - done
[libavif-sys 0.5.0] -- Detecting CXX compile features
[libavif-sys 0.5.0] -- Detecting CXX compile features - done
[libavif-sys 0.5.0] -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.13.1.windows.1")
[libavif-sys 0.5.0] -- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.30.2")
[libavif-sys 0.5.0] -- Looking for pthread.h
[libavif-sys 0.5.0] -- Looking for pthread.h - not found
[libavif-sys 0.5.0] -- Found Threads: TRUE
[libavif-sys 0.5.0] --- aom_configure: Detected CPU: x86_64
[libavif-sys 0.5.0] Checking C compiler flag support for: -D_WIN32_WINNT=0x0601
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Checking C++ compiler flag support for: -D_WIN32_WINNT=0x0601
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Running C compiler test: inline_check_1
[libavif-sys 0.5.0] -- Performing Test C_TEST_COMPILED
[libavif-sys 0.5.0] -- Performing Test C_TEST_COMPILED - Success
[libavif-sys 0.5.0] Running CXX compiler test: inline_check_1
[libavif-sys 0.5.0] -- Performing Test CXX_TEST_COMPILED
[libavif-sys 0.5.0] -- Performing Test CXX_TEST_COMPILED - Success
[libavif-sys 0.5.0] Running C compiler test: unistd_check
[libavif-sys 0.5.0] -- Performing Test C_TEST_COMPILED
[libavif-sys 0.5.0] -- Performing Test C_TEST_COMPILED - Failed
[libavif-sys 0.5.0] C Compiler test unistd_check failed.
[libavif-sys 0.5.0] Running CXX compiler test: unistd_check
[libavif-sys 0.5.0] -- Performing Test CXX_TEST_COMPILED
[libavif-sys 0.5.0] -- Performing Test CXX_TEST_COMPILED - Failed
[libavif-sys 0.5.0] CXX Compiler test unistd_check failed.
[libavif-sys 0.5.0] Checking C compiler flag support for: /W3
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Checking C++ compiler flag support for: /W3
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Checking C compiler flag support for: /wd4996
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test C_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Checking C++ compiler flag support for: /wd4996
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED
[libavif-sys 0.5.0] -- Performing Test CXX_FLAG_SUPPORTED - Success
[libavif-sys 0.5.0] Use of uninitialized value $version_extra in concatenation (.) or string at C:/Users/admin/libavif-rs/libavi
f-sys/aom/build/cmake/version.pl line 88.
[libavif-sys 0.5.0] -- Found PythonInterp: C:/Users/admin/AppData/Local/Microsoft/WindowsApps/python.exe (found version "3.8.5")

[libavif-sys 0.5.0] -- Configuring done
[libavif-sys 0.5.0] -- Generating done
[libavif-sys 0.5.0] -- Build files have been written to: C:/Users/admin/libavif-rs/target/debug/build/libavif-sys-8e1e2af2e49cd0
91/out/build
[libavif-sys 0.5.0] running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
[libavif-sys 0.5.0] Microsoft (R) Build Engine version 15.3.409.57025 for .NET Framework
[libavif-sys 0.5.0] Copyright (C) Microsoft Corporation. All rights reserved.
[libavif-sys 0.5.0]
[libavif-sys 0.5.0] MSBUILD : error MSB1009: Project file does not exist.
[libavif-sys 0.5.0] Switch: install.vcxproj
[libavif-sys 0.5.0] thread 'main' panicked at '
[libavif-sys 0.5.0] command did not execute successfully, got: exit code: 1
[libavif-sys 0.5.0]
[libavif-sys 0.5.0] build script failed, must exit now', C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.
1.44\src\lib.rs:885:5
[libavif-sys 0.5.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: failed to run custom build command for `libavif-sys v0.5.0 (C:\Users\admin\libavif-rs\libavif-sys)`

Caused by:
  process didn't exit successfully: `C:\Users\admin\libavif-rs\target\debug\build\libavif-sys-cdf00317fd0e9abc\build-script-buil
d` (exit code: 101)
--- stdout
running: "cmake" "C:\\Users\\admin\\libavif-rs\\libavif-sys\\aom" "-G" "Visual Studio 15 2017" "-Thost=x64" "-Ax64" "-DENABLE_DO
CS=0" "-DENABLE_EXAMPLES=0" "-DENABLE_TESTDATA=0" "-DENABLE_TESTS=0" "-DENABLE_TOOLS=0" "-DCMAKE_INSTALL_PREFIX=C:\\Users\\admin
\\libavif-rs\\target\\debug\\build\\libavif-sys-8e1e2af2e49cd091\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_R
ELEASE= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_
ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_RELEASE= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is MSVC 19.11.25506.0
-- The CXX compiler identification is MSVC 19.11.25506.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hos
tX64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hos
tX64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/H
ostX64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/H
ostX64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.13.1.windows.1")
-- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.30.2")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test C_FLAG_SUPPORTED
-- Performing Test C_FLAG_SUPPORTED - Success
-- Performing Test CXX_FLAG_SUPPORTED
-- Performing Test CXX_FLAG_SUPPORTED - Success
-- Performing Test C_TEST_COMPILED
-- Performing Test C_TEST_COMPILED - Success
-- Performing Test CXX_TEST_COMPILED
-- Performing Test CXX_TEST_COMPILED - Success
-- Performing Test C_TEST_COMPILED
-- Performing Test C_TEST_COMPILED - Failed
-- Performing Test CXX_TEST_COMPILED
-- Performing Test CXX_TEST_COMPILED - Failed
-- Performing Test C_FLAG_SUPPORTED
-- Performing Test C_FLAG_SUPPORTED - Success
-- Performing Test CXX_FLAG_SUPPORTED
-- Performing Test CXX_FLAG_SUPPORTED - Success
-- Performing Test C_FLAG_SUPPORTED
-- Performing Test C_FLAG_SUPPORTED - Success
-- Performing Test CXX_FLAG_SUPPORTED
-- Performing Test CXX_FLAG_SUPPORTED - Success
-- Found PythonInterp: C:/Users/admin/AppData/Local/Microsoft/WindowsApps/python.exe (found version "3.8.5")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/admin/libavif-rs/target/debug/build/libavif-sys-8e1e2af2e49cd091/out/build
running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: install.vcxproj

--- stderr
--- aom_configure: Detected CPU: x86_64
Checking C compiler flag support for: -D_WIN32_WINNT=0x0601
Checking C++ compiler flag support for: -D_WIN32_WINNT=0x0601
Running C compiler test: inline_check_1
Running CXX compiler test: inline_check_1
Running C compiler test: unistd_check
C Compiler test unistd_check failed.
Running CXX compiler test: unistd_check
CXX Compiler test unistd_check failed.
Checking C compiler flag support for: /W3
Checking C++ compiler flag support for: /W3
Checking C compiler flag support for: /wd4996
Checking C++ compiler flag support for: /wd4996
Use of uninitialized value $version_extra in concatenation (.) or string at C:/Users/admin/libavif-rs/libavif-sys/aom/build/cmak
e/version.pl line 88.
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', C:\Users\admin\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.44\src\lib.rs:885:
5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I do:

cd "C:/Users/admin/libavif-rs/target/debug/build/libavif-sys-8e1e2af2e49cd091/out/build"
"cmake" "--build" "." "--target" "install" "--config" "Release" "--"

it reproduces the error.

In that dir there is aom.vcxproj, but no install.vcxproj.

If I change "--target" "install" to "--target" "aom", it does build something.

I can reproduce it by just doing --no-default-features --feature=codec-aom