[postgis-devel] [postgis-users] Problem compiling postgis

Paul Ramsey pramsey at cleverelephant.ca
Fri Jun 2 11:54:18 PDT 2023


Am I reading this right, we have flatgeobuf vendored in? Bjorn could
you update our copy to what you think it a good state?

On Fri, Jun 2, 2023 at 10:07 AM Even Rouault <even.rouault at spatialys.com> wrote:
>
> cf MapServer fix for similar issue: https://github.com/MapServer/MapServer/pull/6833 (the issue was fixed in upstream flatbuffers)
>
> Le 02/06/2023 à 19:00, Paul Ramsey a écrit :
>
> Wait, we now have an implicit abseil dependency from flatgeobuf?
>
>
> On Jun 2, 2023, at 9:48 AM, Pankaj K Garg <garg at zeemaps.com> wrote:
>
> I cannot compile Postgis 3.3.3 (or 3.2.3) on Mac OS Ventura 13.4.
>
> I installed abseil using brew. Abseil mandates the use of at least C++14. PostGIS is trying the build flatgeobuf with C++11.
>
> Will appreciate any help or pointers.
>
> Thanks.
>
> Pankaj
>
>
> ---- Making all in postgis
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../deps/flatgeobuf all
> gcc -std=c++11 -x c++ -I../../liblwgeom -I../../liblwgeom -I./include  -I/usr/local/Cellar/geos/3.11.2/include -I/usr/local/Cellar/proj/9.2.0_1/include -I/usr/local/Cellar/libtiff/4.5.0/include -I/usr/local/Cellar/zstd/1.5.5/include -I/usr/local/Cellar/jpeg-turbo/2.1.5.1/include  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include  -I/usr/local/Cellar/json-c/0.16/include -I/usr/local/Cellar/json-c/0.16/include/json-c -I/usr/local/Cellar/pcre2/10.42/include -DNDEBUG    -fno-common -DPIC -c -o flatgeobuf_c.o flatgeobuf_c.cpp
> In file included from flatgeobuf_c.cpp:26:
> In file included from ./feature_generated.h:7:
> In file included from ./include/flatbuffers/flatbuffers.h:22:
> In file included from ./include/flatbuffers/array.h:20:
> In file included from ./include/flatbuffers/base.h:237:
> In file included from /usr/local/include/absl/strings/string_view.h:39:
> In file included from /usr/local/include/absl/base/attributes.h:37:
> In file included from /usr/local/include/absl/base/config.h:86:
> /usr/local/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."
> #error "C++ versions less than C++14 are not supported."
>  ^
> 1 error generated.
> make[2]: *** [flatgeobuf_c.o] Error 1
> make[1]: *** [../deps/flatgeobuf/libflatgeobuf.la] Error 2
> make: *** [all] Error 1
> 9:42 postgis-3.3.3 %
>
> ________________________________
>
> ZeeMaps                                                                                                                      http://www.zeemaps.com
> 21060 Homestead Road, Suite 150                                                                                   support at zeemaps.com
> Cupertino, CA 95014                                                                                                                      408 914-2955
> Like us on Facebook: http://www.facebook.com/zeemaps               Follow us on Twitter: http://twitter.com/zeemaps
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>
> --
> http://www.spatialys.com
> My software is free, but my time generally not.


More information about the postgis-devel mailing list