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

Paul Ramsey pramsey at cleverelephant.ca
Fri Jun 2 10:00:50 PDT 2023


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20230602/0bf997e3/attachment.htm>


More information about the postgis-devel mailing list