microsoft / vcpkg

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

[raylib] Build Error: Fixing pkgconfig file #42332

Open nikita-skakun opened 1 week ago

nikita-skakun commented 1 week ago

Package: raylib:x64-linux@5.5

Host Environment

To Reproduce

vcpkg install

Failure logs

raylib currently requires the following libraries from the system package manager:
    libgl1-mesa-dev
    libx11-dev
    libxcursor-dev
    libxinerama-dev
    libxrandr-dev
These can be installed on Ubuntu systems via sudo apt install libgl1-mesa-dev libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev
Downloading raysan5-raylib-5.5.tar.gz
Successfully downloaded raysan5-raylib-5.5.tar.gz.
-- Extracting source /root/Projects/vcpkg/downloads/raysan5-raylib-5.5.tar.gz
-- Applying patch android.diff
-- Applying patch fix-link-path.patch
-- Using source at /root/Projects/vcpkg/buildtrees/raylib/src/5.5-966575b391.clean
-- De-vendoring 'cgltf.h'
-- De-vendoring 'dr_flac.h'
-- De-vendoring 'dr_mp3.h'
-- De-vendoring 'dr_wav.h'
-- De-vendoring 'miniaudio.h'
-- De-vendoring 'qoi.h'
-- De-vendoring 'sdefl.h'
-- De-vendoring 'sinfl.h'
-- De-vendoring 'stb_image.h'
-- De-vendoring 'stb_image_resize2.h'
-- De-vendoring 'stb_image_write.h'
-- De-vendoring 'stb_perlin.h'
-- De-vendoring 'stb_rect_pack.h'
-- De-vendoring 'stb_truetype.h'
-- De-vendoring 'stb_vorbis.c'
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /root/Projects/vcpkg/packages/raylib_x64-linux/lib/pkgconfig/raylib.pc
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:134 (message):

  /nix/store/f1gamyykr0f8n4afy910ass2jx2g9zkv-pkg-config-wrapper-0.29.2/bin/pkg-config
  --exists raylib failed with error code: 1

      ENV{PKG_CONFIG_PATH}: "/root/Projects/vcpkg/packages/raylib_x64-linux/lib/pkgconfig:/root/Projects/vcpkg/packages/raylib_x64-linux/share/pkgconfig:/root/Projects/celestium/vcpkg_installed/x64-linux/lib/pkgconfig:/root/Projects/celestium/vcpkg_installed/x64-linux/share/pkgconfig"
      output: Package raylib was not found in the pkg-config search path.

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

  to the PKG_CONFIG_PATH environment variable

  No package 'raylib' found
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:196 (z_vcpkg_fixup_pkgconfig_check_files)
  buildtrees/versioning_/versions/raylib/293c69f77a430e6d7ed786224cd81e412c0c2db2/portfile.cmake:79 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:196 (include)

Additional context

vcpkg.json ``` { "name": "celestium", "version": "0.1.0", "dependencies": [ { "name": "raylib", "version>=": "5.5", "default-features": false } ], "builtin-baseline": "10b7a178346f3f0abef60cecd5130e295afd8da4" } ```

I Have Tried Using latest vcpkg, installing versions 5.5 and 5.0 of raylib, all with the same error.

dg0yt commented 6 days ago

Check your system. What is /nix/store/f1gamyykr0f8n4afy910ass2jx2g9zkv-pkg-config-wrapper-0.29.2/bin/pkg-config really doing? Any sysroot interfering?