Skip to content

Commit 54ec899

Browse files
docs: Update contributors guide about Windows DLL path (#291)
1 parent 94ce7db commit 54ec899

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/contributors-guide.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ Configure environment variables (PowerShell example — update paths as needed):
119119
$env:VCPKG_ROOT = 'C:\dev\vcpkg'
120120
$env:CMAKE_TOOLCHAIN_FILE = "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
121121
122-
# pkg-config/ msys path (hash may vary)
123-
$env:PATH = "${env:VCPKG_ROOT}/downloads/tools/msys2/<msys-hash>/mingw64/bin/;$env:PATH"
122+
# Add pkg-config/ msys path (hash may vary) for using pkg-config command
123+
$env:PATH = "${env:VCPKG_ROOT}/downloads/tools/msys2/<msys-hash>/mingw64/bin/;${env:PATH}"
124+
# Add path to DLLs (without this, the build still succeeds, but loading fails)
125+
$env:PATH = "${env:VCPKG_ROOT}/installed/x64-windows/bin/;${env:PATH}"
126+
# Add other pkg-config related settings
124127
$env:PKG_CONFIG_SYSROOT_DIR = "${env:VCPKG_ROOT}/downloads/tools/msys2/<msys-hash>/mingw64/"
125-
$env:PKG_CONFIG_PATH = "${env:VCPKG_ROOT}/installed/x64-windows-dynamic-release/lib/pkgconfig/"
128+
$env:PKG_CONFIG_PATH = "${env:VCPKG_ROOT}/installed/x64-windows/lib/pkgconfig/"
126129
```
127130
128131

0 commit comments

Comments
 (0)