[geos-devel] PHP Bindings fir Windows 10 with Wamp and PHP 7.x

Tim Balschmiter Tim.Balschmiter at rostock.de
Wed May 22 06:03:05 PDT 2019


Hi Community,

The php-bindings of Sandro (https://git.osgeo.org/gitea/geos/php-geos)
is working finde on my ubuntu system, but i can´t get it work on Windows
10.
I´ve installe geos with the OSGeo4W-Package and i´ve install wamp with
php 7.3.1 (the same as on my ubuntu). Now, i installed cygwin (as an
building tool).

Maybe one of you can help me by building it on Win10 or has a
PHP-Bindingpackage, which is working on Winows10.

When i run: $ ./autogen.sh, i get the following output:
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731

After this i´m getting the following by runing ./configure  :
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
checking target system type... x86_64-pc-cygwin
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
-I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20180731
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to
regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable geos support... yes, shared
checking for geos-config... yes, shared
checking for geos-config... no
configure: error: Cannot find geos_c.h. Please specify correct GEOS
installation path

i do not find the place to configure the path for geos_c.h . Maybe you
can help me.
In my opinion a lot of people are interessted in a solution ;-).



thanks a lot for reading my mail
best regards
Tim

p.s. i only need it for desktop pc, where i can not change the OS.





More information about the geos-devel mailing list