[glew] build error on x64-linux
- Dominant language
- CMake
- Stars
- 27.5k
- Forks
- 7.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 321
Description
Package: glew:x64-linux@2.3.0
**Host Environment**
- Host: x64-linux
- Compiler: GNU 14.2.1
- CMake Version: 4.2.1
- vcpkg-tool version: 2025-12-16-44bb3ce006467fc13ba37ca099f64077b8bbf84d
vcpkg-scripts version: af752f2 2026-01-01 (4 days ago)
**To Reproduce**
`vcpkg install `
**Failure logs**
```
Downloading https://github.com/nigels-com/glew/releases/download/glew-2.3.0/glew-2.3.0.tgz -> glew-2.3.0.tgz
Successfully downloaded glew-2.3.0.tgz
-- Extracting source /__w/hgs/hgs/vcpkg/downloads/glew-2.3.0.tgz
-- Applying patch fix-LNK2019.patch
-- Using source at /__w/hgs/hgs/vcpkg/buildtrees/glew/src/glew-d5d238893e.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /__w/hgs/hgs/vcpkg/packages/glew_x64-linux/lib/pkgconfig/glew.pc
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:134 (message):
/bin/pkg-config --exists glew failed with error code: 1
ENV{PKG_CONFIG_PATH}: "/__w/hgs/hgs/vcpkg/packages/glew_x64-linux/lib/pkgconfig:/__w/hgs/hgs/vcpkg/packages/glew_x64-linux/share/pkgconfig:/__w/hgs/hgs/vcpkg_installed/x64-linux/lib/pkgconfig:/__w/hgs/hgs/vcpkg_installed/x64-linux/share/pkgconfig:/usr/local/lib/pkgconfig"
output: Package glu was not found in the pkg-config search path.
Perhaps you should add the directory containing `glu.pc'
to the PKG_CONFIG_PATH environment variable
Package 'glu', required by 'glew', not found
Call Stack (most recent call first):
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:196 (z_vcpkg_fixup_pkgconfig_check_files)
ports/glew/portfile.cmake:37 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:206 (include)
```
**Additional context**
vcpkg.json
```
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "hgs",
"version-string": "1.0.0",
"dependencies": [
{
"name": "gdal",
"default-features": false,
"features": [
"curl",
"expat",
"jpeg",
"lerc",
"libxml2",
"lzma",
"netcdf",
"png",
"qhull",
"sqlite3",
"zstd"
]
},
{
"name": "libxml2",
"default-features": false
},
"netcdf-c",
"netcdf-cxx4",
"proj",
{
"name": "tiff",
"features": [
"zstd"
]
},
"vtk"
]
}
```
Contributor guide
Research direction
Start with ports/glew/portfile.cmake and the vcpkg_fixup_pkgconfig call shown in the failure stack. Reproduce with vcpkg install glew:x64-linux, then inspect the generated glew.pc and its glu requirement; done means the port installs successfully and pkg-config validation passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100