<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>There are now 2 PHP MapScripts. See <a href="https://mapserver.org/development/rfc/ms-rfc-117.html">https://mapserver.org/development/rfc/ms-rfc-117.html</a> for details. <br></div><div>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. <br></div><div><br></div><div>These can be build by setting the following 2 flags:<br></div><div><br></div><div>WITH_PHP "Enable PHP mapscript support" OFF<br></div><div>WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF<br></div><div><br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:http://geographika.co.uk<br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div dir="ltr"><div dir="ltr"><br></div><div><br></div><div class="fastmail-quoted-gmail_quote"><div class="fastmail-quoted-gmail_attr" dir="ltr">On Wed, Apr 3, 2019 at 10:39 AM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote"><div><u></u><br></div><div><div>Hi Richard,<br></div><div><br></div><div>If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again. <br></div></div></blockquote><div> <br></div><div>I did do that.<br></div><div><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote"><div><div><br></div><div>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:<br></div><div><br></div><div>sudo wget <a href="http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz">http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz</a><br></div><div>tar xf swig-3.0.12.tar.gz<br></div><div>cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install<br></div><div>swig -version<br></div></div></blockquote><div><br></div><div>Not sure I'm following you. Do I need to have swig installed? I don't.<br></div><div> <br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote"><div><div><br></div><div>I've run into further errors but mapscriptPHP7_wrap.c is created at least. <br></div></div></blockquote><div><br></div><div>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? <br></div><div> <br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote"><div><div><br></div><div><br></div><div>Seth<br></div><div><br></div><div id="fastmail-quoted-gmail-m_673518006859057329sig62266145"><div class="fastmail-quoted-gmail-m_673518006859057329signature">--<br></div><div class="fastmail-quoted-gmail-m_673518006859057329signature">web:<a href="http://geographika.co.uk">http://geographika.co.uk</a><br></div><div class="fastmail-quoted-gmail-m_673518006859057329signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote:<br></div><blockquote id="fastmail-quoted-gmail-m_673518006859057329fastmail-quoted" type="cite"><div dir="ltr"><div dir="ltr"><div>I get the following error:<br></div><div><br></div><div><div> Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o<br></div><div>cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory<br></div><div>cc: fatal error: no input files<br></div><div><br></div><div>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 <a href="https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1">https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1</a><br></div><div>as well as git cloning.<br></div><div><br></div><div>I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious.<br></div><div><br></div><div>Rich<br></div><div><br></div><div>-- <br></div><div dir="ltr" class="fastmail-quoted-gmail-m_673518006859057329fastmail-quoted-gmail_signature"><div dir="ltr"><div>Richard W. Greenwood, PLS<br></div><div><a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a><br></div></div></div></div></div></div><div>_______________________________________________<br></div><div>mapserver-users mailing list<br></div><div><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div></blockquote><div><br></div></div></blockquote></div><div><br></div><div><br></div><div>-- <br></div><div class="fastmail-quoted-gmail_signature" dir="ltr"><div dir="ltr"><div>Richard W. Greenwood, PLS<br></div><div><a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a><br></div></div></div></div></blockquote><div><br></div></body></html>