[postgis-tickets] [PostGIS] #4833: Compiling Postgis with Proj 8

PostGIS trac at osgeo.org
Sat Jan 23 03:57:44 PST 2021


#4833: Compiling Postgis with Proj 8
-----------------------------------+---------------------------
 Reporter:  jgrocha                |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  low                    |  Milestone:  PostGIS 3.1.1
Component:  build/upgrade/install  |    Version:  master
 Keywords:  autotools              |
-----------------------------------+---------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4833>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list