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

Provide a way to specify where libgs is #15

Open
ryandesign opened this issue Jul 26, 2024 · 2 comments
Open

Provide a way to specify where libgs is #15

ryandesign opened this issue Jul 26, 2024 · 2 comments

Comments

@ryandesign
Copy link
Contributor

You look for libgs in a variety of locations varying depending on the OS:

#ifdef Q_OS_HURD
tryLocationLoop("/usr/lib/i386-gnu/");
#endif // HURD
#ifdef Q_OS_LINUX
#if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__)
// try 64 bit libraries on 64 bit system
tryLocationLoop("/usr/lib64");
tryLocationLoop("/usr/local/lib64");
#endif // 64 bit
tryLocationLoop("/usr/lib");
tryLocationLoop("/usr/local/lib");
#endif // Q_OS_LINUX
#ifdef Q_OS_MACOS
tryLocation("/usr/lib/libgs.dylib");
tryLocation("/usr/local/lib/libgs.dylib");
#endif

but on any OS those locations are not necessarily where libgs is actually located. Please provide a CMake option to specify where libgs is actually located and then use that at runtime.

@ryandesign
Copy link
Contributor Author

In fact I bet there's a CMake find_package incantation that could locate libgs for you or could be overridden by the user in the usual way if desired; then you just tell qgslibloader.cpp to load libgs from that location.

@vlabella
Copy link
Owner

vlabella commented Nov 22, 2024

Option EXTRA_GSLIB_SEARCH_LOCATION has been added to the cmake file to specify extra search location in src/gui/qgslibloader.cpp. it needs testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants