Skip to content

[gdal] Fix usage and add dependencies on UNIX#16088

Closed
JackBoosY wants to merge 8 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/fix-gdal-usage-linux
Closed

[gdal] Fix usage and add dependencies on UNIX#16088
JackBoosY wants to merge 8 commits intomicrosoft:masterfrom
JackBoosY:dev/jack/fix-gdal-usage-linux

Conversation

@JackBoosY
Copy link
Contributor

@JackBoosY JackBoosY commented Feb 7, 2021

Since gdal relies on many ports, and using static gdal library under Unix also needs to use these dependencies, fix the dependencies in Unix.
Add required dependencies giflib and zstd.

Depends on #16085.
Related: #15375.

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support info:internal labels Feb 7, 2021
@JackBoosY JackBoosY added the depends:different-pr This PR or Issue depends on a PR which has been filed label Feb 7, 2021
@JackBoosY JackBoosY changed the title [gdal] Fix usage on UNIX [gdal] Fix usage and add dependencies on UNIX Feb 8, 2021
@JackBoosY JackBoosY removed the depends:different-pr This PR or Issue depends on a PR which has been filed label Feb 9, 2021

select_library_configurations(GDAL)

if (UNIX)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably switch based on static/dynamic, not on UNIX. This likely means the file should be renamed to vcpkg-cmake-wrapper.cmake.in, this line should become if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static"), and we should use configure_file( @ONLY).

Copy link
Contributor Author

@JackBoosY JackBoosY Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ras0219 I think this suitable for WINDOWS & dynamic and UNIX & (dynamic | static).
What do you think about?

@JackBoosY
Copy link
Contributor Author

Waiting for merge #16138.

@JackBoosY JackBoosY added depends:different-pr This PR or Issue depends on a PR which has been filed and removed depends:different-pr This PR or Issue depends on a PR which has been filed labels Feb 9, 2021
@JackBoosY
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ras0219-msft
Copy link
Contributor

This may also be fixed by #15808

@ras0219-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JackBoosY
Copy link
Contributor Author

JackBoosY commented Feb 19, 2021

@ras0219-msft Since your PR may last a long time, do I need to continue this PR?

@vicroms
Copy link
Member

vicroms commented Mar 25, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JackBoosY
Copy link
Contributor Author

Replaced by #15808.

@JackBoosY JackBoosY closed this Apr 13, 2021
@JackBoosY JackBoosY deleted the dev/jack/fix-gdal-usage-linux branch May 26, 2022 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[gdal:x64-windows-static] missing geos dependencies

5 participants