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

Can't compile on Windows using Vistual Studio #2663

Open
Dingo64 opened this issue Mar 4, 2025 · 3 comments
Open

Can't compile on Windows using Vistual Studio #2663

Dingo64 opened this issue Mar 4, 2025 · 3 comments

Comments

@Dingo64
Copy link

Dingo64 commented Mar 4, 2025

git clone -b v1.2.0 https://github.com/AOMediaCodec/libavif.git  --recursive --shallow-submodules
cmake -S libavif -B libavif/build -DAVIF_CODEC_AOM=SYSTEM -DAVIF_BUILD_APPS=ON
cmake --build libavif/build --parallel

gives:

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at CMakeLists.txt:194 (message):
  Cannot find libyuv.  Make sure it's installed on the system, or pass
  -DAVIF_LIBYUV=LOCAL (to fetch and build it locally) or -DAVIF_LIBYUV=OFF
  (to disable it)
Call Stack (most recent call first):
  CMakeLists.txt:217 (check_avif_option)

@vrabaud
Copy link
Collaborator

vrabaud commented Mar 4, 2025

Hi, indeed, libyuv is now required by default. I updated the readme in #2664 . You can install it through vcpkg. Does that work for you?

@Dingo64
Copy link
Author

Dingo64 commented Mar 4, 2025

I don't know. I tried:
vcpkg install libyuv
but it just shows available command line options

@vrabaud
Copy link
Collaborator

vrabaud commented Mar 4, 2025

You should install libyuv in the same way you installed aom.

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

2 participants