Opened 4 years ago
Closed 4 years ago
#4833 closed defect (fixed)
Compiling Postgis with Proj 8
Reported by: | jgrocha | Owned by: | strk |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 3.1.2 |
Component: | build | Version: | master |
Keywords: | autotools | Cc: |
Description
autotools are not able to detect libproj with last proj version 8.
My current workaround is:
sed -i 's/pj_get_release/proj_create_from_wkt/' configure.ac
The difference between these symbols (as far as I can see) is:
$ nm --demangle -g /usr/local/lib/libproj.so.19.2.0 | grep "proj_create_from_wkt" 0000000000200260 T proj_create_from_wkt $ nm --demangle -g /usr/local/lib/libproj.so.19.2.0 | grep "pj_get_release" 0000000000268b60 T pj_get_release()
I've compiled proj with:
cd ~/dev/PROJ git pull ./autogen.sh ./configure make -j8 sudo make install sudo ldconfig
Compiling Postgis:
cd ~/dev/cpp/postgis git pull upstream master ./autogen.sh ./configure # or ./configure --with-projdir=/usr/local
Attachments (1)
Change History (5)
by , 4 years ago
Attachment: | configure.patch added |
---|
comment:1 by , 4 years ago
The configure script is generated from configure.ac, see if you can patch that one.
comment:2 by , 4 years ago
The patch is to fix configure.ac, not the generated configure script.
$ cat configure.patch diff --git a/configure.ac b/configure.ac index 9ac7051bb..0e22e08c1 100644 --- a/configure.ac +++ b/configure.ac @@ -902,7 +902,7 @@ AC_SUBST([PROJ_LDFLAGS]) dnl Ensure we can link against libproj LIBS_SAVE="$LIBS" LIBS="$PROJ_LDFLAGS" -AC_CHECK_LIB([proj], [pj_get_release], +AC_CHECK_LIB([proj], [proj_create_from_wkt], [], [AC_MSG_ERROR([could not find libproj - you may need to specify the directory of a PROJ installation using --with-projdir])], [])
comment:3 by , 4 years ago
Milestone: | PostGIS 3.1.1 → PostGIS 3.1.2 |
---|
Note:
See TracTickets
for help on using tickets.
git diff > configure.patch