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

[glib] fails with "BASE_DIRS is required" on Windows #38817

Open
winterz opened this issue May 19, 2024 · 5 comments
Open

[glib] fails with "BASE_DIRS is required" on Windows #38817

winterz opened this issue May 19, 2024 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@winterz
Copy link
Contributor

winterz commented May 19, 2024

Operating system

Windows

Compiler

msvc

Steps to reproduce the behavior

In manifest-mode on Windows with triplet x64-windows (the default)

Failure logs

- Using meson: C:/Users/allen/AppData/Local/vcpkg/downloads/tools/meson-1.3.2-d646d3/meson.py
-- Using cached glib-2.78.4.tar.xz.
-- Cleaning sources at C:/projects/libical/libical/build-vcpkg-cl/vcpkg_installed/vcpkg/blds/glib/src/glib-2-322e03f702.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/allen/AppData/Local/vcpkg/downloads/glib-2.78.4.tar.xz
-- Applying patch use-libiconv-on-windows.patch
-- Applying patch libintl.patch
-- Using source at C:/projects/libical/libical/build-vcpkg-cl/vcpkg_installed/vcpkg/blds/glib/src/glib-2-322e03f702.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg
CMake Error at scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake:5 (message):
  BASE_DIRS is required.
Call Stack (most recent call first):
  C:/projects/libical/libical/build-vcpkg-cl/vcpkg_installed/x64-windows/share/vcpkg-tool-meson/vcpkg_configure_meson.cmake:430 (z_vcpkg_setup_pkgconfig_path)
  C:/Users/allen/AppData/Local/vcpkg/registries/git-trees/d73077209c5fcb5a0340baf7d8ba76d128c1ab27/portfile.cmake:42 (vcpkg_configure_meson)
  scripts/ports.cmake:170 (include)

Additional context

I tried installing pkgconf but that didn't help.

@winterz winterz added the category:port-bug The issue is with a library, which is something the port should already support label May 19, 2024
@dg0yt
Copy link
Contributor

dg0yt commented May 19, 2024

Update your vcpkg baseline.

@winterz
Copy link
Contributor Author

winterz commented May 19, 2024

here's my vcpkg.json

{
    "dependencies": [
        "icu",
        "glib",
        "libxml2",
        {
            "name": "berkeleydb",
            "platform": "windows"
        }
    ],
    "builtin-baseline": "7eb700c9688daed6d8bdcdc571ebe3eedea6a774"
}

sha 7eb700c is the newest that I can see

@dg0yt
Copy link
Contributor

dg0yt commented May 19, 2024

And this the offending line for that commit:

message(FATAL_ERROR "CONFIG is required.")

... That error message no longer exists.

Does git pull help?

@winterz
Copy link
Contributor Author

winterz commented May 19, 2024

oh.. wait I'm using the Windows vcpkg that comes with MSVC.
ie.

c:\>echo %VCPKG_ROOT%
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\vcpkg

indeed, this vcpkg has an old scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake

is it possible to upgrade the vcpkg in-place or do I need to use my own vcpkg installation?

@dg0yt
Copy link
Contributor

dg0yt commented May 19, 2024

Use your own vcpkg installation.

@MonicaLiu0311 MonicaLiu0311 self-assigned this May 20, 2024
@MonicaLiu0311 MonicaLiu0311 added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants