<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Jeff, </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for your response. It was indeed helpful and gave me something to try out. However, when I try those lines of code, this is what it says:<br>
<br>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">Looking for PCRE2 tarball...</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">ls: pcre2-*.tar*: No such file or directory</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">Could not find tarball matching pattern: pcre2-*.tar*</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">admin@Administrators-Mac swig-git-master % ./autogen.sh</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">+ test -d Tools/config</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">+ aclocal -I Tools/config</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">./autogen.sh: line 11: aclocal: command not found</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">admin@Administrators-Mac swig-git-master % ./configure --prefix=/usr</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">zsh: no such file or directory: ./configure</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">admin@Administrators-Mac swig-git-master % make</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">make: *** No targets specified and no makefile found.<span class="Apple-converted-space">
</span>Stop.</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Are there any other lines that I need to include with those? The first few run just fine (although I needed to replace 'wget' with 'curl'). And does this replace the use of the Github clone for MapServer 8.0? Or is this supposed to be setup in conjunction with
MapServer 8.0?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks again for your help,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
bg</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Jeff McKenna <jmckenna@gatewaygeomatics.com><br>
<b>Sent:</b> Tuesday, September 27, 2022 6:11 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [MapServer-users] Swig Mapscript Still Fails to Build with PHP 8</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText elementToProof">Hi BG,<br>
<br>
Thanks for starting this discussion here, as many other readers will <br>
help & learn from your situation; I first want to wish you a warm <br>
welcome from the MapServer community :)<br>
<br>
As Seth mentioned, I spent a lot of effort setting up the automated PHP <br>
8 + MapServer 8 builds "on the cloud", and some of those steps can be <br>
used by you directly.<br>
<br>
But to step back a bit, first thing to mention is that PHP 8 with <br>
MapServer 8 is best handled through the SWIG library "master" branch, <br>
and this is likely one of your issues (the Homebrew formula you are <br>
using for SWIG is probably SWIG 4.0.x, and you need the upcoming 4.1.0 <br>
release, or build its master branch from source).<br>
<br>
Regarding the SWIG 4.1.0 upcoming release (and its heavy demand), see my <br>
call for help at <br>
<a href="https://lists.osgeo.org/pipermail/mapserver-dev/2022-September/016881.html" data-auth="NotApplicable">https://lists.osgeo.org/pipermail/mapserver-dev/2022-September/016881.html</a><br>
<br>
Regarding you possibly compiling SWIG 'master' branch, you can follow my <br>
exact steps to do this on these lines: <br>
<a href="https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh#L38-L47" data-auth="NotApplicable">https://github.com/MapServer/MapServer/blob/main/ci/travis/before_install.sh#L38-L47</a>
<br>
(maybe other Mac devs can update those steps here in this discussion <br>
thread for you)<br>
<br>
I personally think all this will take some time before all packagers <br>
catch up to these changes, to make it smooth for their users. In this <br>
case some time is required before the next SWIG can be released, and <br>
then propagated to all those FOSS4G packages that we love.<br>
<br>
Its for this exact reason that I have put almost my entire career into <br>
MS4W, to prevent users from facing these same build challenges (and <br>
there are many challenges, ha).<br>
<br>
I'm not sure that I've helped with this response, other than giving you <br>
some background info.<br>
<br>
Don't be discouraged, you will indeed fall in love with MapServer :)<br>
<br>
Thanks,<br>
<br>
-jeff<br>
<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
GatewayGeo: Developers of MS4W, MapServer Consulting and Training<br>
co-founder of FOSS4G<br>
</div>
<div class="PlainText elementToProof"><a href="http://gatewaygeo.com/" data-auth="NotApplicable">http://gatewaygeo.com/</a><br>
</div>
</span></font></div>
</body>
</html>