<!DOCTYPE html><html><head><title></title><style type="text/css">#qt p.qt-MsoNormal,#qt p.qt-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}

p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Richard / all,<br></div><div><br></div><div>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. <br></div><div>I've not been able to get them to build on Travis, not has AlexanderGabriel who set these up originally - see <a href="https://github.com/mapserver/mapserver/pull/5675">https://github.com/mapserver/mapserver/pull/5675</a><br></div><div>If anyone has any suggestions after looking at the logs of the Travis output it would be appreciated - <a href="https://api.travis-ci.org/v3/job/515453218/log.txt">https://api.travis-ci.org/v3/job/515453218/log.txt</a><br></div><div><br></div><div>Seth</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 4:05 PM, Seth G wrote:<br></div><blockquote type="cite" id="qt"><div>mapscriptPHP7_wrap.c is created by SWIG so won't exist unless SWIG runs successfully. <br></div><div><br></div><div>I'm trying to get it setup on Travis so you can see a full build output, but was getting errors.<br></div><div><br></div><div>You can have a look at <a href="https://travis-ci.org/geographika/mapserver/jobs/515238229">https://travis-ci.org/geographika/mapserver/jobs/515238229</a> - <a href="https://api.travis-ci.org/v3/job/515238229/log.txt">https://api.travis-ci.org/v3/job/515238229/log.txt</a> which may help - mapscriptPHP7_wrap.c is created but not currently compiling afterwards. <br></div><div><br></div><div id="qt-sig62266145"><div class="qt-signature">--<br></div><div class="qt-signature">web:http://geographika.co.uk<br></div><div class="qt-signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote:<br></div><blockquote id="qt-fastmail-quoted" type="cite"><div dir="ltr"><div dir="ltr"><div>Seth,<br></div><div><br></div><div>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: <br></div><div>   /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory<br></div><div>I can't find the file mapscriptPHP7_wrap.c<br></div><div><br></div><div>Thanks,<br></div><div>Rich<br></div><div><br></div><div><br></div></div></div><div><br></div><div class="qt-fastmail-quoted-gmail_quote"><div dir="ltr" class="qt-fastmail-quoted-gmail_attr">On Wed, Apr 3, 2019 at 4:34 PM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="qt-fastmail-quoted-gmail_quote" 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;"><div><u></u><br></div><div><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="qt-fastmail-quoted-gmail-m_-499092476166380079sig62266145"><div class="qt-fastmail-quoted-gmail-m_-499092476166380079signature">--<br></div><div class="qt-fastmail-quoted-gmail-m_-499092476166380079signature">web:<a href="http://geographika.co.uk">http://geographika.co.uk</a><br></div><div class="qt-fastmail-quoted-gmail-m_-499092476166380079signature">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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted"><div dir="ltr"><div dir="ltr"><br></div><div><br></div><div class="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail_quote"><div class="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail_quote"><div><div><br></div><div><br></div><div>Seth<br></div><div><br></div><div id="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329sig62266145"><div class="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329signature">--<br></div><div class="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329signature">web:<a href="http://geographika.co.uk">http://geographika.co.uk</a><br></div><div class="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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="qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-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></div></blockquote></div><div><br></div><div><br></div><div>-- <br></div><div dir="ltr" class="qt-fastmail-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></blockquote><div><br></div><div>_______________________________________________<br></div><div>mapserver-users mailing list<br></div><div>mapserver-users@lists.osgeo.org<br></div><div>https://lists.osgeo.org/mailman/listinfo/mapserver-users<br></div></blockquote><div><br></div></body></html>