mapserver 7.4 beta phpng build error

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

mapserver 7.4 beta phpng build error

rgreenwood
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Seth G-2
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.

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:

tar xf swig-3.0.12.tar.gz
cd swig-3.0.12 && ./configure --prefix=/usr && make && sudo make install
swig -version

I've run into further errors but mapscriptPHP7_wrap.c is created at least.

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
_______________________________________________
mapserver-users mailing list
https://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

rgreenwood


On Wed, Apr 3, 2019 at 10:39 AM Seth G <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS
www.greenwoodmap.com

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Seth G-2
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 <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

rgreenwood
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 <[hidden email]> 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


--
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 <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS



--
Richard W. Greenwood, PLS
www.greenwoodmap.com

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Seth G-2
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 <[hidden email]> 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


--
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 <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS



--
Richard W. Greenwood, PLS


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Seth G-2
Hi Richard / all,

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. 
I've not been able to get them to build on Travis, not has AlexanderGabriel who set these up originally - see https://github.com/mapserver/mapserver/pull/5675
If anyone has any suggestions after looking at the logs of the Travis output it would be appreciated - https://api.travis-ci.org/v3/job/515453218/log.txt

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote:
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 <[hidden email]> 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


--
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 <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS



--
Richard W. Greenwood, PLS

_______________________________________________
mapserver-users mailing list
https://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

rgreenwood
Seth,

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 deb.sury.org). On both I get:
Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o
cc: error: /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory
cc: fatal error: no input files 
ccmake issues the following warnings:
 PHPUNIT_EXECUTABLE              */usr/local/bin/phpunit                                                                         
 PHP_CONFIG_EXECUTABLE           */usr/bin/php-config                                                                            
 PHP_LIBRARY                     *PHP_LIBRARY-NOTFOUND 
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.

Rich


On Sat, Apr 20, 2019 at 3:47 AM Seth G <[hidden email]> wrote:
Hi Richard / all,

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. 
I've not been able to get them to build on Travis, not has AlexanderGabriel who set these up originally - see https://github.com/mapserver/mapserver/pull/5675
If anyone has any suggestions after looking at the logs of the Travis output it would be appreciated - https://api.travis-ci.org/v3/job/515453218/log.txt

Seth

--
twitter: @geographika


On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote:
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.

--
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 <[hidden email]> 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


--
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 <[hidden email]> 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:

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

--
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
_______________________________________________
mapserver-users mailing list



--
Richard W. Greenwood, PLS



--
Richard W. Greenwood, PLS

_______________________________________________
mapserver-users mailing list

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Richard W. Greenwood, PLS
www.greenwoodmap.com

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Stephen Woodbridge-4
Rich,

Do you have the php-dev package installed?

-Steve W

On 4/21/2019 9:17 AM, Richard Greenwood wrote:

> Seth,
>
> 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 deb.sury.org
> <http://deb.sury.org>). On both I get:
>
>     Building C object
>     mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o
>     cc: error:
>     /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c:
>     No such file or directory
>     cc: fatal error: no input files
>
> ccmake issues the following warnings:
>
>      PHPUNIT_EXECUTABLE             */usr/local/bin/phpunit
>      PHP_CONFIG_EXECUTABLE          */usr/bin/php-config
>      PHP_LIBRARY                    *PHP_LIBRARY-NOTFOUND
>
> 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.
>
> Rich
>
>
> On Sat, Apr 20, 2019 at 3:47 AM Seth G <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi Richard / all,
>
>     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.
>     I've not been able to get them to build on Travis, not has
>     AlexanderGabriel who set these up originally - see
>     https://github.com/mapserver/mapserver/pull/5675
>     If anyone has any suggestions after looking at the logs of the
>     Travis output it would be appreciated -
>     https://api.travis-ci.org/v3/job/515453218/log.txt
>
>     Seth
>
>     --
>     web:http://geographika.co.uk
>     twitter: @geographika
>
>
>     On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote:
>>     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 <[hidden email]
>>>     <mailto:[hidden email]>> 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
>>>>         <[hidden email] <mailto:[hidden email]>>
>>>>         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 <http://www.greenwoodmap.com>
>>>>>             _______________________________________________
>>>>>             mapserver-users mailing list
>>>>>             [hidden email]
>>>>>             <mailto:[hidden email]>
>>>>>             https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>>
>>>>
>>>>         --
>>>>         Richard W. Greenwood, PLS
>>>>         www.greenwoodmap.com <http://www.greenwoodmap.com>
>>>
>>>
>>>
>>>     --
>>>     Richard W. Greenwood, PLS
>>>     www.greenwoodmap.com <http://www.greenwoodmap.com>
>>
>>     _______________________________________________
>>     mapserver-users mailing list
>>     [hidden email]
>>     <mailto:[hidden email]>
>>     https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>     _______________________________________________
>     mapserver-users mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com <http://www.greenwoodmap.com>
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

rgreenwood
Yes I do:
   php7.2-dev/bionic,now 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 amd64 [installed]
The non-SWIG version builds and runs fine. 

And I have SWIG Version 3.0.12 installed.

Thanks,
Rich


On Sun, Apr 21, 2019 at 8:36 AM Stephen Woodbridge <[hidden email]> wrote:
Rich,

Do you have the php-dev package installed?

-Steve W

On 4/21/2019 9:17 AM, Richard Greenwood wrote:
> Seth,
>
> 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 deb.sury.org
> <http://deb.sury.org>). On both I get:
>
>     Building C object
>     mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o
>     cc: error:
>     /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c:
>     No such file or directory
>     cc: fatal error: no input files
>
> ccmake issues the following warnings:
>
>      PHPUNIT_EXECUTABLE             */usr/local/bin/phpunit
>      PHP_CONFIG_EXECUTABLE          */usr/bin/php-config
>      PHP_LIBRARY                    *PHP_LIBRARY-NOTFOUND
>
> 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.
>
> Rich
>
>
> On Sat, Apr 20, 2019 at 3:47 AM Seth G <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi Richard / all,
>
>     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.
>     I've not been able to get them to build on Travis, not has
>     AlexanderGabriel who set these up originally - see
>     https://github.com/mapserver/mapserver/pull/5675
>     If anyone has any suggestions after looking at the logs of the
>     Travis output it would be appreciated -
>     https://api.travis-ci.org/v3/job/515453218/log.txt
>
>     Seth
>
>     --
>     web:http://geographika.co.uk
>     twitter: @geographika
>
>
>     On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote:
>>     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 <[hidden email]
>>>     <mailto:[hidden email]>> 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
>>>>         <[hidden email] <mailto:[hidden email]>>
>>>>         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 <http://www.greenwoodmap.com>
>>>>>             _______________________________________________
>>>>>             mapserver-users mailing list
>>>>>             [hidden email]
>>>>>             <mailto:[hidden email]>
>>>>>             https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>>
>>>>
>>>>         --
>>>>         Richard W. Greenwood, PLS
>>>>         www.greenwoodmap.com <http://www.greenwoodmap.com>
>>>
>>>
>>>
>>>     --
>>>     Richard W. Greenwood, PLS
>>>     www.greenwoodmap.com <http://www.greenwoodmap.com>
>>
>>     _______________________________________________
>>     mapserver-users mailing list
>>     [hidden email]
>>     <mailto:[hidden email]>
>>     https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>     _______________________________________________
>     mapserver-users mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com <http://www.greenwoodmap.com>
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Richard W. Greenwood, PLS
www.greenwoodmap.com

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

jmckenna
Administrator
Hi Rich,

For Windows builds for MS4W I've been compiling SWIG master from source
to handle PHP mapscript with PHP7.  On unix you can use the recent SWIG
4.0-beta1 release:
https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz  To be
honest I'll likely stick with master, as I've now had to use that for
all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in
the works for a long time).  My point is, you may also choose to stick
with master too.

Hope that helps,

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/




On 2019-04-21 5:49 PM, Richard Greenwood wrote:

> Yes I do:
>     php7.2-dev/bionic,now 7.2.17-1+ubuntu18.04.1+deb.sury.org
> <http://deb.sury.org>+3 amd64 [installed]
> The non-SWIG version builds and runs fine.
>
> And I have SWIG Version 3.0.12 installed.
>
> Thanks,
> Rich
>
>
> On Sun, Apr 21, 2019 at 8:36 AM Stephen Woodbridge
> <[hidden email] <mailto:[hidden email]>>
> wrote:
>
>     Rich,
>
>     Do you have the php-dev package installed?
>
>     -Steve W
>
>     On 4/21/2019 9:17 AM, Richard Greenwood wrote:
>      > Seth,
>      >
>      > 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 deb.sury.org
>     <http://deb.sury.org>
>      > <http://deb.sury.org>). On both I get:
>      >
>      >     Building C object
>      >  
>       mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o
>      >     cc: error:
>      >  
>       /rwg/src/mapserver-7.4.0-beta2/build2/mapscript/phpng/mapscriptPHP7_wrap.c:
>      >     No such file or directory
>      >     cc: fatal error: no input files
>      >
>      > ccmake issues the following warnings:
>      >
>      >      PHPUNIT_EXECUTABLE             */usr/local/bin/phpunit
>      >      PHP_CONFIG_EXECUTABLE          */usr/bin/php-config
>      >      PHP_LIBRARY                    *PHP_LIBRARY-NOTFOUND
>      >
>      > 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.
>      >
>      > Rich
>      >
>      >
>      > On Sat, Apr 20, 2019 at 3:47 AM Seth G <[hidden email]
>     <mailto:[hidden email]>
>      > <mailto:[hidden email]
>     <mailto:[hidden email]>>> wrote:
>      >
>      >     Hi Richard / all,
>      >
>      >     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.
>      >     I've not been able to get them to build on Travis, not has
>      >     AlexanderGabriel who set these up originally - see
>      > https://github.com/mapserver/mapserver/pull/5675
>      >     If anyone has any suggestions after looking at the logs of the
>      >     Travis output it would be appreciated -
>      > https://api.travis-ci.org/v3/job/515453218/log.txt
>      >
>      >     Seth
>      >
>      >     --
>      >     web:http://geographika.co.uk
>      >     twitter: @geographika
>      >
>      >
>      >     On Thu, Apr 4, 2019, at 4:05 PM, Seth G wrote:
>      >>     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
>     <[hidden email] <mailto:[hidden email]>
>      >>>     <mailto:[hidden email]
>     <mailto:[hidden email]>>> 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
>      >>>>         <[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>
>      >>>>         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 <http://www.greenwoodmap.com>
>     <http://www.greenwoodmap.com>
>      >>>>>             _______________________________________________
>      >>>>>             mapserver-users mailing list
>      >>>>> [hidden email]
>     <mailto:[hidden email]>
>      >>>>>             <mailto:[hidden email]
>     <mailto:[hidden email]>>
>      >>>>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>      >>>>
>      >>>>
>      >>>>
>      >>>>         --
>      >>>>         Richard W. Greenwood, PLS
>      >>>> www.greenwoodmap.com <http://www.greenwoodmap.com>
>     <http://www.greenwoodmap.com>
>      >>>
>      >>>
>      >>>
>      >>>     --
>      >>>     Richard W. Greenwood, PLS
>      >>> www.greenwoodmap.com <http://www.greenwoodmap.com>
>     <http://www.greenwoodmap.com>
>      >>
>      >>     _______________________________________________
>      >>     mapserver-users mailing list
>      >> [hidden email]
>     <mailto:[hidden email]>
>      >>     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>      >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>      >
>      >     _______________________________________________
>      >     mapserver-users mailing list
>      > [hidden email]
>     <mailto:[hidden email]>
>      >     <mailto:[hidden email]
>     <mailto:[hidden email]>>
>      > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>      >
>      >
>      >
>      > --
>      > Richard W. Greenwood, PLS
>      > www.greenwoodmap.com <http://www.greenwoodmap.com>
>     <http://www.greenwoodmap.com>
>      >
>      > _______________________________________________
>      > mapserver-users mailing list
>      > [hidden email]
>     <mailto:[hidden email]>
>      > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>     ---
>     This email has been checked for viruses by Avast antivirus software.
>     https://www.avast.com/antivirus
>
>     _______________________________________________
>     mapserver-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com <http://www.greenwoodmap.com>
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

jmckenna
Administrator
On 2019-04-25 10:15 AM, Jeff McKenna wrote:

> Hi Rich,
>
> For Windows builds for MS4W I've been compiling SWIG master from source
> to handle PHP mapscript with PHP7.  On unix you can use the recent SWIG
> 4.0-beta1 release:
> https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz  To be
> honest I'll likely stick with master, as I've now had to use that for
> all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in
> the works for a long time).  My point is, you may also choose to stick
> with master too.
>
> Hope that helps,
>
> -jeff
>
>

Ha I guess my long email wasn't precise enough, I should have said:
don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.   (for PHP7
support)  -jeff



--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

Seth G-2
Hi,

I made a few minor changes to the PHP CMakeLists.txt in https://github.com/mapserver/mapserver/pull/5797
I've also added a wiki page detailing a full build process at https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build
This relies on updating the mapscript/phpng/CMakeLists.txt file first.
Richard - if you get a chance to follow these steps and see if it works for you that would be useful.

Jeff - there might be some useful info on Windows PHP builds at https://github.com/mapserver/mapserver/issues/5795
The SWIG 4.0.0 is in beta (and seems to break Python at the moment), but maybe we can move to that when it is officially released to add builds to the Travis and Appveyor builds.

Seth


--
web:http://geographika.co.uk
twitter: @geographika

On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote:

> On 2019-04-25 10:15 AM, Jeff McKenna wrote:
> > Hi Rich,
> >
> > For Windows builds for MS4W I've been compiling SWIG master from source
> > to handle PHP mapscript with PHP7.  On unix you can use the recent SWIG
> > 4.0-beta1 release:
> > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz  To be
> > honest I'll likely stick with master, as I've now had to use that for
> > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in
> > the works for a long time).  My point is, you may also choose to stick
> > with master too.
> >
> > Hope that helps,
> >
> > -jeff
> >
> >
>
> Ha I guess my long email wasn't precise enough, I should have said:
> don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.   (for PHP7
> support)  -jeff
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> https://gatewaygeomatics.com/
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

rgreenwood
I finally got PHPNG to build. As Jeff suggested, I built and installed SWIG 4.0 beta but that didn't help. I compared my configure flags against Seth's at
and it appears -DWITH_PYTHON=ON is what I was missing. Does that make sense to anybody? It certainly doesn't to me.

I made a small edit to wiki/PHPNG-SWIG-MapScript-Linux-Build adding "../" to the end of the cmake command.

Thanks Seth and Jeff.

Rich


On Thu, Apr 25, 2019 at 4:32 PM Seth G <[hidden email]> wrote:
Hi,

I made a few minor changes to the PHP CMakeLists.txt in https://github.com/mapserver/mapserver/pull/5797
I've also added a wiki page detailing a full build process at https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build
This relies on updating the mapscript/phpng/CMakeLists.txt file first.
Richard - if you get a chance to follow these steps and see if it works for you that would be useful.

Jeff - there might be some useful info on Windows PHP builds at https://github.com/mapserver/mapserver/issues/5795
The SWIG 4.0.0 is in beta (and seems to break Python at the moment), but maybe we can move to that when it is officially released to add builds to the Travis and Appveyor builds.

Seth


--
web:http://geographika.co.uk
twitter: @geographika

On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote:
> On 2019-04-25 10:15 AM, Jeff McKenna wrote:
> > Hi Rich,
> >
> > For Windows builds for MS4W I've been compiling SWIG master from source
> > to handle PHP mapscript with PHP7.  On unix you can use the recent SWIG
> > 4.0-beta1 release:
> > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz  To be
> > honest I'll likely stick with master, as I've now had to use that for
> > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has been in
> > the works for a long time).  My point is, you may also choose to stick
> > with master too.
> >
> > Hope that helps,
> >
> > -jeff
> >
> >
>
> Ha I guess my long email wasn't precise enough, I should have said:
> don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.   (for PHP7
> support)  -jeff
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> https://gatewaygeomatics.com/
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Richard W. Greenwood, PLS
www.greenwoodmap.com

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: mapserver 7.4 beta phpng build error

jmckenna
Administrator
Hi Rich,

A small update: SWIG 4.0 was released yesterday.

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/



On 2019-04-25 11:13 PM, Richard Greenwood wrote:

> I finally got PHPNG to build. As Jeff suggested, I built and installed
> SWIG 4.0 beta but that didn't help. I compared my configure flags
> against Seth's at
> https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build
> and it appears -DWITH_PYTHON=ON is what I was missing. Does that make
> sense to anybody? It certainly doesn't to me.
>
> I made a small edit to wiki/PHPNG-SWIG-MapScript-Linux-Build adding
> "*../*" to the end of the cmake command.
>
> Thanks Seth and Jeff.
>
> Rich
>
>
> On Thu, Apr 25, 2019 at 4:32 PM Seth G <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi,
>
>     I made a few minor changes to the PHP CMakeLists.txt in
>     https://github.com/mapserver/mapserver/pull/5797
>     I've also added a wiki page detailing a full build process at
>     https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build
>     This relies on updating the mapscript/phpng/CMakeLists.txt file first.
>     Richard - if you get a chance to follow these steps and see if it
>     works for you that would be useful.
>
>     Jeff - there might be some useful info on Windows PHP builds at
>     https://github.com/mapserver/mapserver/issues/5795
>     The SWIG 4.0.0 is in beta (and seems to break Python at the moment),
>     but maybe we can move to that when it is officially released to add
>     builds to the Travis and Appveyor builds.
>
>     Seth
>
>
>     --
>     web:http://geographika.co.uk
>     twitter: @geographika
>
>     On Thu, Apr 25, 2019, at 3:30 PM, Jeff McKenna wrote:
>      > On 2019-04-25 10:15 AM, Jeff McKenna wrote:
>      > > Hi Rich,
>      > >
>      > > For Windows builds for MS4W I've been compiling SWIG master
>     from source
>      > > to handle PHP mapscript with PHP7.  On unix you can use the
>     recent SWIG
>      > > 4.0-beta1 release:
>      > > https://github.com/swig/swig/archive/rel-4.0.0-beta1.tar.gz  To be
>      > > honest I'll likely stick with master, as I've now had to use
>     that for
>      > > all builds since 2016 for PHP7 mapscript (SWIG 4.0 release has
>     been in
>      > > the works for a long time).  My point is, you may also choose
>     to stick
>      > > with master too.
>      > >
>      > > Hope that helps,
>      > >
>      > > -jeff
>      > >
>      > >
>      >
>      > Ha I guess my long email wasn't precise enough, I should have said:
>      > don't use SWIG 3.0.12, use SWIG-master or 4.0-beta1.   (for PHP7
>      > support)  -jeff
>      >
>      >

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users