<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Seth,<div><br></div><div>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 <a href="http://deb.sury.org">deb.sury.org</a>). On both I get:</div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div><font size="1" face="monospace, monospace">Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o</font></div></div></div><div><div><div><font size="1" face="monospace, monospace">cc: error: /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory</font></div></div></div><div><div><div><font size="1" face="monospace, monospace">cc: fatal error: no input files</font> </div></div></div></blockquote>ccmake issues the following warnings:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><font face="monospace, monospace" size="1"> PHPUNIT_EXECUTABLE              */usr/local/bin/phpunit                                                                         </font></div></div></div><div><div><font face="monospace, monospace" size="1"> PHP_CONFIG_EXECUTABLE           */usr/bin/php-config                                                                            </font></div></div><div><div><font face="monospace, monospace" size="1"> PHP_LIBRARY                     *PHP_LIBRARY-NOTFOUND </font></div></div></blockquote><font face="arial, helvetica, sans-serif">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.</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Rich</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 20, 2019 at 3:47 AM 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"><u></u><div><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" target="_blank">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" target="_blank">https://api.travis-ci.org/v3/job/515453218/log.txt</a><br></div><div><br></div><div>Seth</div><div><br></div><div id="gmail-m_3783346272302817088sig62266145"><div class="gmail-m_3783346272302817088signature">--<br></div><div class="gmail-m_3783346272302817088signature">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><br></div><div class="gmail-m_3783346272302817088signature">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="gmail-m_3783346272302817088qt"><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" target="_blank">https://travis-ci.org/geographika/mapserver/jobs/515238229</a> - <a href="https://api.travis-ci.org/v3/job/515238229/log.txt" target="_blank">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="gmail-m_3783346272302817088qt-sig62266145"><div class="gmail-m_3783346272302817088qt-signature">--<br></div><div class="gmail-m_3783346272302817088qt-signature">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><br></div><div class="gmail-m_3783346272302817088qt-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="gmail-m_3783346272302817088qt-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="gmail-m_3783346272302817088qt-fastmail-quoted-gmail_quote"><div dir="ltr" class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail_attr">On Wed, Apr 3, 2019 at 4:34 PM Seth G <<a href="mailto:sethg@geographika.co.uk" target="_blank">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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" target="_blank">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="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079sig62266145"><div class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079signature">--<br></div><div class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079signature">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><br></div><div class="gmail-m_3783346272302817088qt-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="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted"><div dir="ltr"><div dir="ltr"><br></div><div><br></div><div class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail_quote"><div class="gmail-m_3783346272302817088qt-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" target="_blank">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail-m_3783346272302817088qt-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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail-m_3783346272302817088qt-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" target="_blank">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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail-m_3783346272302817088qt-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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail_quote"><div><div><br></div><div><br></div><div>Seth<br></div><div><br></div><div id="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329sig62266145"><div class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329signature">--<br></div><div class="gmail-m_3783346272302817088qt-fastmail-quoted-gmail-m_-499092476166380079fastmail-quoted-gmail-m_673518006859057329signature">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><br></div><div class="gmail-m_3783346272302817088qt-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="gmail-m_3783346272302817088qt-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" target="_blank">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="gmail-m_3783346272302817088qt-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" target="_blank">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" target="_blank">mapserver-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">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="gmail-m_3783346272302817088qt-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" target="_blank">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="gmail-m_3783346272302817088qt-fastmail-quoted-gmail_signature"><div dir="ltr"><div>Richard W. Greenwood, PLS<br></div><div><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><br></div></div></div></blockquote><div><br></div><div>_______________________________________________<br></div><div>mapserver-users mailing list<br></div><div><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div></blockquote><div><br></div></div>_______________________________________________<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>