-
Notifications
You must be signed in to change notification settings - Fork 282
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
Autoconf script will break if proj version jumps to double digit #2270
Comments
Great thinking - thanks for the PR! |
Still fails for wasm - any ideas what to do? |
Looking at https://github.com/r-spatial/lwgeom/blob/7cd821b7aaf63b6bf149a8f97981b8d98336795b/configure.ac#L148 Which are caused by a duplicated
The wasm linker is a bit more pedantic than other linkers, and doesn't allow duplicated flags. The problem is that # pkg-config --libs proj
-lproj -lstdc++ -lsqlite3 -lpthread -ltiff -lcurl -ldl |
That now passes, but hangs on geos; I looked at the successful wasm build of sf, but could not find the configure step being executed there (which has the same code as the thing that now hangs lwgeom wasm build). |
Trying to make cross compiling work, I found that there are several places in your configure where you are version checking PROJ using
cut -c 1
orcut -c 1,2
which assumes both major and minor have exactly 1 digit.So if proj ever jumps to version 10, then your configure script treats this as version 1. This also applies to lwgeom.
While we are at it:
The script seems to lookup the
proj_version
several times using a mix of methods. When cross compiling we should be assuming the version that is given by pkgconfig:sf/configure.ac
Lines 355 to 356 in 1ea4d8b
We cannot run test programs like this in a cross environment:
sf/configure.ac
Lines 468 to 470 in 1ea4d8b
So perhaps the script can also be simplified a bit lookup the proj version only once, and only fall back on running a test program if no pkg-config --modversion version was found ?
The text was updated successfully, but these errors were encountered: