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

building libheif:x86-windows failed with: BUILD_FAILED #43079

Open
RGG2000 opened this issue Jan 3, 2025 · 1 comment
Open

building libheif:x86-windows failed with: BUILD_FAILED #43079

RGG2000 opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@RGG2000
Copy link

RGG2000 commented Jan 3, 2025

Operating system

window 11

Compiler

No response

Steps to reproduce the behavior

PS D:\3rd\vcpkg> ./vcpkg install libheif:x86-windows
Computing installation plan...
The following packages will be built and installed:
    libheif[core,hevc]:[email protected]#2
Detecting compiler hash for triplet x86-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890".
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x86/cl.exe
Restored 0 package(s) from C:\Users\zhr\AppData\Local\vcpkg\archives in 111 us. Use --debug to see more details.
Installing 1/1 libheif[core,hevc]:[email protected]#2...
Building libheif[core,hevc]:[email protected]#2...
-- Using cached strukturag-libheif-v1.19.5.tar.gz.
-- Cleaning sources at D:/3rd/vcpkg/buildtrees/libheif/src/v1.19.5-40e1b31b71.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/3rd/vcpkg/downloads/strukturag-libheif-v1.19.5.tar.gz
-- Applying patch gdk-pixbuf.patch
-- Applying patch fix-gcc8.patch
-- Using source at D:/3rd/vcpkg/buildtrees/libheif/src/v1.19.5-40e1b31b71.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/3rd/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j17
    Working Directory: D:/3rd/vcpkg/buildtrees/libheif/x86-windows-dbg
    See logs for more information:
      D:\3rd\vcpkg\buildtrees\libheif\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/libheif/portfile.cmake:25 (vcpkg_cmake_install)
  scripts/ports.cmake:196 (include)


error: building libheif:x86-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libheif:x86-windows: 8.5 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libheif
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[libheif]+Build+error+on+x86-windows&body=Copy+issue+body+from+D%3A%2F3rd%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Failure logs

install-x86-windows-dbg-out.log

Additional context

No response

@RGG2000 RGG2000 added the category:port-bug The issue is with a library, which is something the port should already support label Jan 3, 2025
@autoantwort
Copy link
Contributor

D:\3rd\vcpkg\buildtrees\libheif\src\v1.19.5-40e1b31b71.clean\libheif\bitstream.cc(26): fatal error C1083: Cannot open include file: 'bit': No such file or directo

My guess would be that the bit header is C++20 and C:/Program Files (x86)/Microsoft Visual Studio/2019 does not support C++20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants