microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.27k stars 6.42k forks source link

[utf8-range] Build error on x86-windows-static #41218

Open tweiss80 opened 1 month ago

tweiss80 commented 1 month ago

I first build on windows: vcpkg install grpc:x86-windows-static It fails at utf8-range. Error: Package 'absl_strings', required by 'utf8_range', not found

I get the same error with: vcpkg install utf8-range:x86-windows-static

Visual Studio 2019 is installed. On another machine where Visual Studio 2022 I could make a successful build

Log: ` Installing 4/9 utf8-range:x86-windows-static@4.25.1... Building utf8-range:x86-windows-static@4.25.1... C:\VcPkg\triplets\community\x86-windows-static.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed. -- Using cached protocolbuffers-protobuf-v4.25.1.tar.gz. -- Cleaning sources at C:/VcPkg/buildtrees/utf8-range/src/v4.25.1-192031af76.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/VcPkg/downloads/protocolbuffers-protobuf-v4.25.1.tar.gz -- Applying patch fix-cmake.patch -- Using source at C:/VcPkg/buildtrees/utf8-range/src/v4.25.1-192031af76.clean -- Found external ninja('1.10.2'). -- Configuring x86-windows-static -- Building x86-windows-static-dbg -- Building x86-windows-static-rel -- Fixing pkgconfig file: C:/UTMS.neXt/UDK/VcPkg/packages/utf8-range_x86-windows-static/lib/pkgconfig/utf8_range.pc -- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst. -- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst. -- Using msys root at C:/UTMS.neXt/UDK/VcPkg/downloads/tools/msys2/1e74ca60daa10104 CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:134 (message):

C:/VcPkg/downloads/tools/msys2/1e74ca60daa10104/mingw64/bin/pkg-config.exe --exists utf8_range failed with error code: 1

  ENV{PKG_CONFIG_PATH}: "C:/VcPkg/packages/utf8-range_x86-windows-static/lib/pkgconfig;C:/VcPkg/packages/utf8-range_x86-windows-static/share/pkgconfig;C:/VcPkg/installed/x86-windows-static/lib/pkgconfig;C:/VcPkg/installed/x86-windows-static/share/pkgconfig"
  output: Package absl_strings was not found in the pkg-config search path.

Perhaps you should add the directory containing `absl_strings.pc'

to the PKG_CONFIG_PATH environment variable

Package 'absl_strings', required by 'utf8_range', not found Call Stack (most recent call first): scripts/cmake/vcpkg_fixup_pkgconfig.cmake:196 (z_vcpkg_fixup_pkgconfig_check_files) ports/utf8-range/portfile.cmake:22 (vcpkg_fixup_pkgconfig) scripts/ports.cmake:192 (include)

error: building utf8-range:x86-windows-static failed with: BUILD_FAILED `

dg0yt commented 1 month ago

Try reinstalling abseil. It must create C:/VcPkg/installed/x86-windows-static[/debug]/lib/pkgconfig/absl_strings.pc.