-
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
cannot linking GDAL compiled from vcpkg #14632
Comments
I can't repro it using your sample code:
Can you print the macro Thanks. |
with
got
|
Does this issue related to #9068? |
probably yes, I will figue this out. this may take much time |
Maybe #13449 could fix this issue. |
yes, I'm already figued out that my issue is completely related to this. glad to see we have plan to solve this.
thank you for all these helping information, but when would this pr could be merged, it looks taking much time already. |
@epiciskandar As soon as possible. |
Please wait for #13449 merge. |
What am I doing?
trying using GDAL installed from vcpkg. the project is based on CMake.
How GDAL being installed
What does the project look like
to make question simple, I reproduced with a test project:
./
|--CMakeLists.txt (1)
|--/build
|--/test
.....|--CMakeLists.txt (2)
.....|--test.cpp (3)
the file (1):
the file (2):
the file (3):
How to cmake and make
3.18.4
What did I try
target_link_libraries()
, works. however, these manually linked .so continue complaining moreundefined reference error
needed by themselveslink_directories(/usr/lib64)
, no luck (yes, link_directories is before add_executable)Environment
CentOS 7.8
gcc-8.2
cmake 3.17.3 (from dnf)
cmake 3.18.4 (from official website)
latest vcpkg
GDAL 2.4.1#13 from vcpkg
The text was updated successfully, but these errors were encountered: