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