[gdal-dev] PROJ6?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] PROJ6?

Alan Stewart-2

Just updated and gdal\makefile.vc now requires PROJ6. I assume this is version 6 of proj4.org? This does not seem to be available on their website.

 

Alan Stewart

Senior Software Engineer

TerraGo Technologies

3200 Windy Hill Road, Suite 1550W

Atlanta, GA 30339 USA

O.  +1 678.391.9615

 

<a href="applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.terragotech.com">www.terragotech.com

 


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: PROJ6?

Even Rouault-2
On vendredi 1 février 2019 19:57:45 CET Alan Stewart wrote:
> OJ6. I assume this is version 6 of proj4.org? This does not seem to be
> available on their website.

PROJ 6 is not yet released. You need to use the master branch of
https://github.com/OSGeo/proj.4/

(In case you missed it, this is as consequence of the recently adopted
https://trac.osgeo.org/gdal/wiki/rfc73_proj6_wkt2_srsbarn )

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: PROJ6?

Darafei "Komяpa" Praliaskouski
Hello,

I can't rebuild gdal master with proj master as update of PostGIS env. 
Build scripts are unchanged and are from https://github.com/postgis/postgis-build-env. Here's tail of build log:

checking whether SSE is available at compile time... yes
checking whether SSSE3 is available at compile time... yes
checking whether AVX is available at compile time... yes
checking to enable LTO (link time optimization) build... no
checking whether we should hide internal symbols... no
checking for local include/lib path... none
checking for pthread_create in -lpthread... yes
checking for PTHREAD_MUTEX_RECURSIVE... yes
checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes
checking for pthread_spinlock_t... yes
checking for 5 args mremap()... yes
checking for _SC_PHYS_PAGES... yes
checking for deflateInit_ in -lz... yes
checking for inflateCopy in -lz... yes
using pre-installed libz
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... /bin/bash: ./config.rpath: No such file or directory
done                                                                                                                                                                                                                                                                                         
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...  
        extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
using ICONV_CPP_CONST=""
checking for PROJ >= 6 library... checking for proj_create_from_wkt in -lproj... no
checking for internal_proj_create_from_wkt in -lproj... no
checking for internal_proj_create_from_wkt in -linternalproj... no
configure: error: PROJ 6 symbols not found
The command '/bin/sh -c git clone --depth 1 --branch ${GDAL_BRANCH} https://github.com/OSGeo/gdal &&     cd gdal/gdal &&     ./autogen.sh && ./configure && make -j${BUILD_THREADS} && make install &&     cd /src && rm -rf gdal' returned a non-zero code: 1                               
Traceback (most recent call last):
 File "build.py", line 84, in <module>
   '.'
 File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
   raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'build', '--pull', '--build-arg', 'BUILD_DATE=20190201', '--build-arg', 'POSTGRES_BRANCH=master', '--build-arg', 'GEOS_BRANCH=master', '--build-arg', 'GDAL_BRANCH=master', '--build-arg', 'PROJ_BRANCH=master', '-t', 'postgis/postgis-b
uild-env:latest', '.']' returned non-zero exit status 1.


On Fri, Feb 1, 2019 at 11:18 PM Even Rouault <[hidden email]> wrote:
On vendredi 1 février 2019 19:57:45 CET Alan Stewart wrote:
> OJ6. I assume this is version 6 of proj4.org? This does not seem to be
> available on their website.

PROJ 6 is not yet released. You need to use the master branch of
https://github.com/OSGeo/proj.4/

(In case you missed it, this is as consequence of the recently adopted
https://trac.osgeo.org/gdal/wiki/rfc73_proj6_wkt2_srsbarn )

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


--
Darafei Praliaskouski

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: PROJ6?

michael.smith.erdc

You need to change your build order, you need to build proj before you build gdal.

 

 

-- 

Michael Smith

Remote Sensing/GIS Center

US Army Corps of Engineers

 

 

From: gdal-dev <[hidden email]> on behalf of Komяpa Darafei Praliaskouski <[hidden email]>
Date: Friday, February 1, 2019 at 3:21 PM
To: Even Rouault <[hidden email]>
Cc: <[hidden email]>, Alan Stewart <[hidden email]>
Subject: Re: [gdal-dev] PROJ6?

 

Hello,

 

I can't rebuild gdal master with proj master as update of PostGIS env. 

Build scripts are unchanged and are from https://github.com/postgis/postgis-build-env. Here's tail of build log:

 

checking whether SSE is available at compile time... yes
checking whether SSSE3 is available at compile time... yes
checking whether AVX is available at compile time... yes
checking to enable LTO (link time optimization) build... no
checking whether we should hide internal symbols... no
checking for local include/lib path... none
checking for pthread_create in -lpthread... yes
checking for PTHREAD_MUTEX_RECURSIVE... yes
checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes
checking for pthread_spinlock_t... yes
checking for 5 args mremap()... yes
checking for _SC_PHYS_PAGES... yes
checking for deflateInit_ in -lz... yes
checking for inflateCopy in -lz... yes
using pre-installed libz
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... /bin/bash: ./config.rpath: No such file or directory
done                                                                                                                                                                                                                                                                                         
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...  
        extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
using ICONV_CPP_CONST=""
checking for PROJ >= 6 library... checking for proj_create_from_wkt in -lproj... no
checking for internal_proj_create_from_wkt in -lproj... no
checking for internal_proj_create_from_wkt in -linternalproj... no
configure: error: PROJ 6 symbols not found
The command '/bin/sh -c git clone --depth 1 --branch ${GDAL_BRANCH} https://github.com/OSGeo/gdal &&     cd gdal/gdal &&     ./autogen.sh && ./configure && make -j${BUILD_THREADS} && make install &&     cd /src && rm -rf gdal' returned a non-zero code: 1                               
Traceback (most recent call last):
 File "build.py", line 84, in <module>
   '.'
 File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
   raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'build', '--pull', '--build-arg', 'BUILD_DATE=20190201', '--build-arg', 'POSTGRES_BRANCH=master', '--build-arg', 'GEOS_BRANCH=master', '--build-arg', 'GDAL_BRANCH=master', '--build-arg', 'PROJ_BRANCH=master', '-t', 'postgis/postgis-b
uild-env:latest', '.']' returned non-zero exit status 1.

 

On Fri, Feb 1, 2019 at 11:18 PM Even Rouault <[hidden email]> wrote:

On vendredi 1 février 2019 19:57:45 CET Alan Stewart wrote:
> OJ6. I assume this is version 6 of proj4.org? This does not seem to be
> available on their website.

PROJ 6 is not yet released. You need to use the master branch of
https://github.com/OSGeo/proj.4/

(In case you missed it, this is as consequence of the recently adopted
https://trac.osgeo.org/gdal/wiki/rfc73_proj6_wkt2_srsbarn )

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


 

--

Darafei Praliaskouski

_______________________________________________ gdal-dev mailing list [hidden email] https://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: PROJ6?

Even Rouault-2
In reply to this post by Darafei "Komяpa" Praliaskouski
On vendredi 1 février 2019 23:20:58 CET Darafei "Komяpa" Praliaskouski wrote:
> https://github.com/postgis/postgis-build-env

Looking at https://github.com/postgis/postgis-build-env/blob/master/Dockerfile 
, it looks like you're building PROJ after GDAL. This should be the other way
round. GDAL used to be able to load PROJ with dlopen() mechanism, but this is
no longer the case, so proper compilation order is now needed.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: PROJ6?

Darafei "Komяpa" Praliaskouski
Thanks Even, Michael! 

Changed order, left rebuilding and left for Moscow. Hope it finishes well without oversight. 

On пт, 1 лют 2019, 23:25 Even Rouault <[hidden email]> wrote:
On vendredi 1 février 2019 23:20:58 CET Darafei "Komяpa" Praliaskouski wrote:
> https://github.com/postgis/postgis-build-env

Looking at https://github.com/postgis/postgis-build-env/blob/master/Dockerfile
, it looks like you're building PROJ after GDAL. This should be the other way
round. GDAL used to be able to load PROJ with dlopen() mechanism, but this is
no longer the case, so proper compilation order is now needed.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
--
Darafei Praliaskouski
Support me: http://patreon.com/komzpa

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev