[mapserver-users] mapserver 7.4 beta phpng build error
Seth G
sethg at geographika.co.uk
Thu Apr 4 07:05:35 PDT 2019
mapscriptPHP7_wrap.c is created by SWIG so won't exist unless SWIG runs successfully.
I'm trying to get it setup on Travis so you can see a full build output, but was getting errors.
You can have a look at https://travis-ci.org/geographika/mapserver/jobs/515238229 - https://api.travis-ci.org/v3/job/515238229/log.txt which may help - mapscriptPHP7_wrap.c is created but not currently compiling afterwards.
--
web:http://geographika.co.uk
twitter: @geographika
On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote:
> Seth,
>
> 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:
> /rwg/src/mapserver-branch-7-4/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory
> I can't find the file mapscriptPHP7_wrap.c
>
> Thanks,
> Rich
>
>
>
> On Wed, Apr 3, 2019 at 4:34 PM Seth G <sethg at geographika.co.uk> wrote:
>> __
>> There are now 2 PHP MapScripts. See https://mapserver.org/development/rfc/ms-rfc-117.html for details.
>> 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.
>>
>> These can be build by setting the following 2 flags:
>>
>> WITH_PHP "Enable PHP mapscript support" OFF
>> WITH_PHPNG "Enable PHPNG (SWIG) mapscript support" OFF
>>
>>
>> --
>> web:http://geographika.co.uk
>> twitter: @geographika
>>
>>
>> On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote:
>>>
>>>
>>> On Wed, Apr 3, 2019 at 10:39 AM Seth G <sethg at geographika.co.uk> wrote:
>>>> __
>>>> Hi Richard,
>>>>
>>>> If you had previous errors it may be best to delete the whole /rwg/src/mapserver/build/ and start the build from scratch again.
>>>
>>> I did do that.
>>>
>>>>
>>>> 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:
>>>>
>>>> sudo wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz
>>>> tar xf swig-3.0.12.tar.gz
>>>> cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install
>>>> swig -version
>>>
>>> Not sure I'm following you. Do I need to have swig installed? I don't.
>>>
>>>>
>>>> I've run into further errors but mapscriptPHP7_wrap.c is created at least.
>>>
>>> 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?
>>>
>>>>
>>>>
>>>> Seth
>>>>
>>>> --
>>>> web:http://geographika.co.uk
>>>> twitter: @geographika
>>>>
>>>>
>>>> On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote:
>>>>> I get the following error:
>>>>>
>>>>> Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o
>>>>> cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory
>>>>> cc: fatal error: no input files
>>>>>
>>>>> 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 https://github.com/mapserver/mapserver/releases/tag/rel-7-4-0-beta1
>>>>> as well as git cloning.
>>>>>
>>>>> I'm not well versed with this stuff so apologizes in advanced if I'm missing the obvious.
>>>>>
>>>>> Rich
>>>>>
>>>>> --
>>>>> Richard W. Greenwood, PLS
>>>>> www.greenwoodmap.com
>>>>> _______________________________________________
>>>>> mapserver-users mailing list
>>>>> mapserver-users at lists.osgeo.org
>>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>>>
>>> --
>>> Richard W. Greenwood, PLS
>>> www.greenwoodmap.com
>>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190404/713441cf/attachment.htm>
More information about the MapServer-users
mailing list