Yes I do: php7.2-dev/bionic,now 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 amd64 [ installed] The non-SWIG version builds and runs fine.
And I have SWIG Version 3.0.12 installed. Thanks, Rich On Sun, Apr 21, 2019 at 8:36 AM Stephen Woodbridge < stephenwoodbridg...@gmail.com> wrote: > Rich, > > Do you have the php-dev package installed? > > -Steve W > > On 4/21/2019 9:17 AM, Richard Greenwood wrote: > > Seth, > > > > I don't think this helps your issue with Travis, but just for the > > record, I still can't get PHPNG to build on Ubuntu 18.04. The legacy > > PHP builds fine. I've tried building PHPNG on two Ubuntu 18.04 > > machines with slightly different PHP configurations (one has PHP 7.2 > > from the Ubuntu repo, the other has PHP 7.2 from deb.sury.org > > <http://deb.sury.org>). On both I get: > > > > Building C object > > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > > cc: error: > > > /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: > > No such file or directory > > cc: fatal error: no input files > > > > ccmake issues the following warnings: > > > > PHPUNIT_EXECUTABLE */usr/local/bin/phpunit > > PHP_CONFIG_EXECUTABLE */usr/bin/php-config > > PHP_LIBRARY *PHP_LIBRARY-NOTFOUND > > > > I've taken a few guesses at setting paths for PHP_LIBRARY but no luck > > and I don't really know what I'm doing. > > > > Rich > > > > > > On Sat, Apr 20, 2019 at 3:47 AM Seth G <se...@geographika.co.uk > > <mailto:se...@geographika.co.uk>> wrote: > > > > Hi Richard / all, > > > > The new PHP SWIG bindings seem to be fine to compile locally, and > > as they are part of ms4w, and I believe the Debian builds are > > working well. > > I've not been able to get them to build on Travis, not has > > AlexanderGabriel who set these up originally - see > > https://github.com/mapserver/mapserver/pull/5675 > > If anyone has any suggestions after looking at the logs of the > > Travis output it would be appreciated - > > https://api.travis-ci.org/v3/job/515453218/log.txt > > > > Seth > > > > -- > > web:http://geographika.co.uk > > twitter: @geographika > > > > > > On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote: > >> mapscriptPHP7_wrap.c is created by SWIG so won't exist unless > >> SWIG runs successfully. > >> > >> I'm trying to get it setup on Travis so you can see a full build > >> output, but was getting errors. > >> > >> You can have a look at > >> https://travis-ci.org/geographika/mapserver/jobs/515238229 - > >> https://api.travis-ci.org/v3/job/515238229/log.txt which may help > >> - mapscriptPHP7_wrap.c is created but not currently compiling > >> afterwards. > >> > >> -- > >> web:http://geographika.co.uk > >> twitter: @geographika > >> > >> > >> On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > >>> Seth, > >>> > >>> I understand that there are two php versions and the native one > >>> builds fine for me. But the swig one (phpng) does not. I > >>> installed swig 3.0.12. My build fails with error: > >>> > /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>> No such file or directory > >>> I can't find the file mapscriptPHP7_wrap.c > >>> > >>> Thanks, > >>> Rich > >>> > >>> > >>> > >>> On Wed, Apr 3, 2019 at 4:34 PM Seth G <se...@geographika.co.uk > >>> <mailto:se...@geographika.co.uk>> wrote: > >>> > >>> > >>> There are now 2 PHP MapScripts. See > >>> https://mapserver.org/development/rfc/ms-rfc-117.html for > >>> details. > >>> The "native" one has been updated to work with PHP7 in the > >>> MapServer 7.4 release, and also a new SWIG based PHP > >>> MapScript is now available. The first does not require SWIG, > >>> the latter does. > >>> > >>> These can be build by setting the following 2 flags: > >>> > >>> WITH_PHP "Enable PHP mapscript support" OFF > >>> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF > >>> > >>> > >>> -- > >>> web:http://geographika.co.uk > >>> twitter: @geographika > >>> > >>> > >>> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > >>>> > >>>> > >>>> On Wed, Apr 3, 2019 at 10:39 AM Seth G > >>>> <se...@geographika.co.uk <mailto:se...@geographika.co.uk>> > >>>> wrote: > >>>> > >>>> > >>>> Hi Richard, > >>>> > >>>> If you had previous errors it may be best to delete the > >>>> whole /rwg/src/mapserver/build/ and start the build > >>>> from scratch again. > >>>> > >>>> > >>>> I did do that. > >>>> > >>>> > >>>> Also to note is PHP 7 support was only added in > >>>> SWIG-3.0.11. I'm trying to get this set up on Travis > >>>> and can do so with the following command: > >>>> > >>>> sudo wget > >>>> > http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz > >>>> tar xf swig-3.0.12.tar.gz > >>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && > >>>> sudo make install > >>>> swig -version > >>>> > >>>> > >>>> Not sure I'm following you. Do I need to have swig > >>>> installed? I don't. > >>>> > >>>> > >>>> I've run into further errors but mapscriptPHP7_wrap.c > >>>> is created at least. > >>>> > >>>> > >>>> Again, not sure I'm following you. Is mapscriptPHP7_wrap.c > >>>> supposed to be in the source files that I download or git > >>>> clone, or is it created in the build process? > >>>> > >>>> > >>>> > >>>> Seth > >>>> > >>>> -- > >>>> web:http://geographika.co.uk > >>>> twitter: @geographika > >>>> > >>>> > >>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > >>>>> I get the following error: > >>>>> > >>>>> Building C object > >>>>> > mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o > >>>>> cc: error: > >>>>> > /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: > >>>>> No such file or directory > >>>>> cc: fatal error: no input files > >>>>> > >>>>> If i'm reading the error message correctly it's not > >>>>> finding "mapscriptPHP7_wrap.c". I don't have > >>>>> "mapscriptPHP7_wrap.c". I tried the file at > >>>>> > https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1 > >>>>> as well as git cloning. > >>>>> > >>>>> I'm not well versed with this stuff so apologizes in > >>>>> advanced if I'm missing the obvious. > >>>>> > >>>>> Rich > >>>>> > >>>>> -- > >>>>> Richard W. Greenwood, PLS > >>>>> www.greenwoodmap.com <http://www.greenwoodmap.com> > >>>>> _______________________________________________ > >>>>> mapserver-users mailing list > >>>>> mapserver-users@lists.osgeo.org > >>>>> <mailto:mapserver-users@lists.osgeo.org> > >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>>> > >>>> > >>>> -- > >>>> Richard W. Greenwood, PLS > >>>> www.greenwoodmap.com <http://www.greenwoodmap.com> > >>> > >>> > >>> > >>> -- > >>> Richard W. Greenwood, PLS > >>> www.greenwoodmap.com <http://www.greenwoodmap.com> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> <mailto:mapserver-users@lists.osgeo.org> > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > <mailto:mapserver-users@lists.osgeo.org> > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Richard W. Greenwood, PLS > > www.greenwoodmap.com <http://www.greenwoodmap.com> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard W. Greenwood, PLS www.greenwoodmap.com
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users