-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gdal builds, but no instructions for how to link it are given #8377
Comments
Hi @lakinwecker There's a FindGDAL module shipped with CMake, which will define target
|
Thanks for that. Should this package print that out at the end of the installation process? I'm still running in to some linking issues after including the above, but I will file those as a separate issue once I have confirmed it's not something wrong with my environment. |
In addition, in order to get this to link, I have to add:
Without this, I get:
|
Are you using the most recent version of our curl port? I could have sworn I fixed that issue... |
AFAIK, I am. I pulled from master today and updated everything. Is there some output I can provide to prove it? |
No I believe you. It just means I missed something. |
Well, I'm happy to test stuff. Feel free to ping me if you want me to test out any PRs, etc. |
@lakinwecker How I can find |
Currently the usage file was provided for gdal, you can use it as following.
|
For Linux, gdal is completely broken, #9068. I'm working on it, but there is no point in relying on pkgconfig or cmake files as long as there is no control about dependencies from the system used when building port gdal. |
GDAL builds, but no instructions on how to link are provided
When you build gdal on linux (or windows) you are not given any further instructions on how to use it or link with it. Considering that gdal links with quite a few different libraries, it's difficult to know which ones to link with and how. Some of them are static libraries inside of the vcpkg installed directory.
Considering that I need to build this and link against this library on both windows and linux in the upcoming weeks, I'd be happy to work on this. I'm not really sure where to start though. gdal isn't CMake based, but it does seem to provide some amount of pkg-config information. What is the usual process for ports that are not cmake based?
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of how to link with gdal.
Failure logs
Additional context
None.
The text was updated successfully, but these errors were encountered: