Skip to content
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

unable to determine default plugin path #8012

Closed
tbonfort opened this issue Jun 26, 2023 · 0 comments
Closed

unable to determine default plugin path #8012

tbonfort opened this issue Jun 26, 2023 · 0 comments

Comments

@tbonfort
Copy link
Member

From what I have researched, it is currently not possible to reliably determine the default gdalplugins lib path for out-of-source drivers/plugins (due to "lib" vs "lib64" directory names).

Could gdal-config be extended with a --plugindir option to print it out ? (as there doesn't seem to be a standard option to print this out with pkg-config)

Furthermore, there seems to be some inconsistencies in the generated gdal.pc file (note the invalid but unused value for $libdir)

CONFIG_VERSION=3.8.0
CONFIG_INST_PREFIX=/opt
CONFIG_INST_LIBS=-L/opt/lib64 -lgdal
CONFIG_INST_CFLAGS=-I/opt/include
CONFIG_INST_DATA=/opt/share/gdal
prefix=${CONFIG_INST_PREFIX}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
datadir=${CONFIG_INST_DATA}

Name: libgdal
Description: Geospatial Data Abstraction Library
Version: ${CONFIG_VERSION}
Libs: ${CONFIG_INST_LIBS}
Libs.private: -ldl -lssl -lcrypto -lzstd -ljxl -lgeos_c -lcurl -lproj -lstdc++ -lm
Cflags: ${CONFIG_INST_CFLAGS}
@rouault rouault self-assigned this Jul 3, 2023
rouault added a commit to rouault/gdal that referenced this issue Jul 3, 2023
rouault added a commit that referenced this issue Jul 17, 2023
 gdal-config: add a --plugindir switch (fixes #8012)
jeffypooo pushed a commit to IgnisTechnologies/gdal that referenced this issue Aug 9, 2023
jeffypooo pushed a commit to IgnisTechnologies/gdal that referenced this issue Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants