<div dir="ltr"><div dir="ltr"><div dir="ltr">I finally got PHPNG to build. As Jeff suggested, I built and installed SWIG 4.0 beta but that didn't help. I compared my configure flags against Seth's at<div><a href="https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build</a><br></div><div>and it appears -DWITH_PYTHON=ON is what I was missing. Does that make sense to anybody? It certainly doesn't to me.</div><div><br></div><div>I made a small edit to wiki/PHPNG-SWIG-MapScript-Linux-Build adding "<b><font face="monospace, monospace">../</font></b>" to the end of the cmake command.</div><div><br></div><div>Thanks Seth and Jeff.</div><div><br></div><div>Rich</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 4:32 PM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I made a few minor changes to the PHP CMakeLists.txt in <a href="https://github.com/mapserver/mapserver/pull/5797" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/pull/5797</a><br>
I've also added a wiki page detailing a full build process at <a href="https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build</a><br>
This relies on updating the mapscript/phpng/CMakeLists.txt file first. <br>
Richard - if you get a chance to follow these steps and see if it works for you that would be useful. <br>
<br>
Jeff - there might be some useful info on Windows PHP builds at <a href="https://github.com/mapserver/mapserver/issues/5795" rel="noreferrer" target="_blank">https://github.com/mapserver/mapserver/issues/5795</a><br>
The SWIG 4.0.0 is in beta (and seems to break Python at the moment), but maybe we can move to that when it is officially released to add builds to the Travis and Appveyor builds. <br>
<br>
Seth<br>
<br>
<br>
--<br>
web:<a href="http://geographika.co.uk" rel="noreferrer" target="_blank">http://geographika.co.uk</a><br>
twitter: @geographika<br>
<br>
On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote:<br>
> On 2019-04-25 10:15 AM, Jeff McKenna wrote:<br>
> > Hi Rich,<br>
> > <br>
> > For Windows builds for MS4W I've been compiling SWIG master from source <br>
> > to handle PHP mapscript with PHP7.  On unix you can use the recent SWIG <br>
> > 4.0-beta1 release: <br>
> > <a href="https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz" rel="noreferrer" target="_blank">https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz</a>  To be <br>
> > honest I'll likely stick with master, as I've now had to use that for <br>
> > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in <br>
> > the works for a long time).  My point is, you may also choose to stick <br>
> > with master too.<br>
> > <br>
> > Hope that helps,<br>
> > <br>
> > -jeff<br>
> > <br>
> > <br>
> <br>
> Ha I guess my long email wasn't precise enough, I should have said: <br>
> don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.   (for PHP7 <br>
> support)  -jeff<br>
> <br>
> <br>
> <br>
> -- <br>
> Jeff McKenna<br>
> MapServer Consulting and Training Services<br>
> <a href="https://gatewaygeomatics.com/" rel="noreferrer" target="_blank">https://gatewaygeomatics.com/</a><br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>