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

[imgui] build failure #24970

Closed
nrmu9 opened this issue May 28, 2022 · 1 comment · Fixed by #24999
Closed

[imgui] build failure #24970

nrmu9 opened this issue May 28, 2022 · 1 comment · Fixed by #24999
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@nrmu9
Copy link

nrmu9 commented May 28, 2022

Host Environment

  • OS: Windows
  • Compiler: Ninja

To Reproduce
Steps to reproduce the behavior:
vcpkg install imgui[core,win32-binding,dx12-binding,dx11-binding] --recurse

Failure logs

C:\Windows\System32>vcpkg install imgui[core,win32-binding,dx12-binding,dx11-binding] --recurse
Computing installation plan...
The following packages will be built and installed:
    imgui[core,dx11-binding,dx12-binding,win32-binding]:x86-windows -> 1.87
Detecting compiler hash for triplet x86-windows...
Restored 0 packages from C:\Users\low\AppData\Local\vcpkg\archives in 116.5 us. Use --debug to see more details.
Starting package 1/1: imgui:x86-windows
Building package imgui[core,dx11-binding,dx12-binding,win32-binding]:x86-windows...
-- Note: imgui only supports static library linkage. Building static library.
-- Using cached ocornut-imgui-v1.87.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/imgui/src/v1.87-1654d039d7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/ocornut-imgui-v1.87.tar.gz
-- Using source at C:/vcpkg/buildtrees/imgui/src/v1.87-1654d039d7.clean
-- Found external ninja('1.10.2').
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
    Command failed: C:/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: C:/vcpkg/buildtrees/imgui/x86-windows-dbg
    See logs for more information:
      C:\vcpkg\buildtrees\imgui\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:112 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
  ports/imgui/portfile.cmake:70 (vcpkg_cmake_install)
  scripts/ports.cmake:146 (include)


error: building imgui:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles 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+imgui
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[imgui]+Build+error
including:
  package: imgui[core,dx11-binding,dx12-binding,win32-binding]:x86-windows -> 1.87
    vcpkg-tool version: 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb
    vcpkg-scripts version: 0d7603c4e 2022-05-09 (3 weeks ago)

Additionally, attach any relevant sections from the log files above.

install-x86-windows-dbg-out.log

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.
I tried searching Google, nothing. I tried choosing different packages. Same error. However when I installed only core and win32-binding it worked. But I need DirectX now too.

@LilyWangLL LilyWangLL added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label May 30, 2022
@LilyWangLL
Copy link
Contributor

Thanks for posting this issue. Feature dx12-binding doesn't support Win32, you can see detail from upstream issue: ocornut/imgui#1641
You can install imgui[dx12-binding]:x64-windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants