-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Modify glib port to use 2.58.3 with patches for static lib #12094
Comments
I need to pass these pre-processor defines to the glib sources. I cannot figure out how to do that. |
Please attach the |
I was able to use the patches offered by magicfoo https://github.com/microsoft/vcpkg/pull/9031/files# in order to do a static build of the current 2.52.3 version. |
|
I tried building a static glib version today. Got this error:
However, I know I have successfully built glib as static library by hand before, and there are even patches that allow this (like the one here: https://gitlab.gnome.org/GNOME/glib/-/issues/692) It would be great to have one of those patches in vcpkg |
Thanks for everyone joining the discussion. Since it's duplicated to #3409, let's track this issue there. |
I have patches for glib 2.58.3 that have worked previously for a static build. I have modified portfile.cmake to incorporate these patches.
I am stuck at the error
glib-changes.zip
-- Downloading https://ftp.gnome.org/pub/gnome/sources/glib/2.58/glib-2.58.3.tar.xz...
-- Extracting source C:/Users/Administrator/vcpkg/downloads/glib-2.58.3.tar.xz
-- Applying patch 0001.patch
-- Applying patch 0002.patch
-- Using source at C:/Users/Administrator/vcpkg/buildtrees/glib/src/2.58.3-27c0cc6a70
-- Configuring x86-windows-static
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: ninja -v
Working Directory: C:/Users/Administrator/vcpkg/buildtrees/glib/x86-windows-static-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\Administrator\vcpkg\buildtrees\glib\config-x86-windows-static-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:299 (vcpkg_execute_required_process)
ports/glib/portfile.cmake:38 (vcpkg_configure_cmake)
scripts/ports.cmake:73 (include)
Error: Building package glib:x86-windows-static failed with: BUILD_FAILED
The text was updated successfully, but these errors were encountered: