[proj] windows: fix sqlite3 tool not finding deps #31040
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In a dynamic build, sqlite3.exe doesn't find libz.dll, which causes an error when building proj during proj.db generation. Fix this by adding the installed bin dir to the path before building proj.
./vcpkg x-add-version --all
and committing the result.Package: proj[core,net,tiff,tools]:x64-windows -> 9.2.0
Host Environment
vcpkg-scripts version: dcf61b2 2023-04-15 (6 days ago)
To Reproduce
vcpkg install
Failure logs
D:\Users\rcoup\kart\vcpkg-vendor\vcpkg\buildtrees\proj\install-x64-windows-rel-out.log
Additional context
vcpkg.json
Some spelunking reveals:
0xc0000135
(STATUS_DLL_NOT_FOUND
)${CURRENT_HOST_INSTALLED_DIR}/tools/sqlite3.exe
binary shows it loadszlib1.dll
${CURRENT_HOST_INSTALLED_DIR}/bin/