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

Non-default libproj #43

Open
anthonynorth opened this issue Dec 11, 2023 · 1 comment
Open

Non-default libproj #43

anthonynorth opened this issue Dec 11, 2023 · 1 comment

Comments

@anthonynorth
Copy link
Collaborator

Allow users to link to the non-default libproj, but still require libproj >= 6.3.1.

@jeroen's anticonf already has this capability (example in jeroen/curl) and is much simpler than autoconf, so perhaps it's worth adopting.

@mdsumner
Copy link
Member

I never understood this properly before, but I'm having success with setting PKG_LIBS and PKG_CPPFLAGS and LD_LIBRARY_PATH env vars to point to a local build for a user, even with a distro-installed PROJ lib.

So,

export PKG_LIBS="-L/home/user/lib -lproj"
export PKG_CPPFLAGS="-I/home/user/include"
export LD_LIBRARY_PATH="/home/user/lib:$LD_LIBRARY_PATH"

is working for me in this gh version of PROJ and proj4.

I'll keep exploring, I haven't tested all cases or things I'm unsure of.

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