<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">
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">
I think I figured out what I was missing earlier regarding the build. Those lines you provided me for the Swig setup provided a successful build for cmake to compile. </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">
As of right now, I have:<br>
<br>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">mapserv -v</span></p>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">MapServer version 8.0.0</span></p>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">php -v</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures"></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">PHP 8.0.23</span></p>
</span>
<p></p>
<p class="p1" style="margin:0px;font:11px Menlo"><br>
</p>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important">With a warning </span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important">
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">PHP Warning:<span class="Apple-converted-space"> 
</span>PHP Startup: Unable to load dynamic library 'php_mapscriptng.so' (tried: /usr/local/lib/php/pecl/20190902/php_mapscriptng.so (dlopen(/usr/local/lib/php/pecl/20190902/php_mapscriptng.so, 9): image not found), /usr/local/lib/php/pecl/20190902/php_mapscriptng.so.so
 (dlopen(/usr/local/lib/php/pecl/20190902/php_mapscriptng.so.so, 9): image not found)) in Unknown on line 0</span></p>
<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
and</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">
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">swig -version</span></p>
<p class="p1" style="margin:0px;font:11px Menlo"><span class="s1" style="font-variant-ligatures:no-common-ligatures">SWIG Version 4.1.0</span></p>
</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">
<span style="background-color:rgb(255, 255, 255);display:inline !important">However, I think I'm still missing something (possibly related to the PHP warning above). The page is unable load due to -- I'm guessing the Swig Mapscript library being unable to be
 referenced. I looked in the README files provided within the MapServer directory and within the README.rst it says: </span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof">"<i>The main MapScript SWIG interface file is ``mapscript/mapscript.i``.  This</i>
<div><i>file includes specific class interface files from ``mapscript/swiginc`` and</i></div>
<i>language specific code from the language directories.</i>"</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof">So I added that in an include statement at the top of the PHP index file but it still doesn't work. Is the mapscript.i file what is supposed to replace the mapscript.php
 file? <span style="background-color:rgb(255, 255, 255);display:inline !important">I know you are on the Windows side of things so hopefully if you don't know the answer to this question then maybe someone else will.</span><br>
<br>
And thank you for the link to the wiki page. I have a very detailed guide (that I have been polishing as I go along) that I will add to that page for other mac users.
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof">Thanks,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
bg<span style="background-color:rgb(255, 255, 255);display:inline !important" class="elementToProof"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<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> Wednesday, September 28, 2022 3:16 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>
I've added a wiki page for this, that includes macOS specific steps to <br>
compile SWIG from source, at <br>
<a href="https://github.com/MapServer/MapServer/wiki/Compiling-SWIG-from-source" data-auth="NotApplicable">https://github.com/MapServer/MapServer/wiki/Compiling-SWIG-from-source</a><br>
<br>
I strongly encourage you to edit and enhance that page, make <br>
corrections, and/or create new wiki pages and share them here, to record <br>
your steps so that others can learn from your journey.<br>
<br>
(you can then add your new pages to the "Tips, Tricks, Howtos" section <br>
of <a href="https://github.com/MapServer/MapServer/wiki" data-auth="NotApplicable">
https://github.com/MapServer/MapServer/wiki</a> )<br>
<br>
Thanks,<br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
GatewayGeo: Developers of MS4W, MapServer Consulting and Training<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" data-auth="NotApplicable">http://gatewaygeo.com/</a><br>
<br>
<br>
<br>
<br>
<br>
On 2022-09-28 12:48 p.m., b g wrote:<br>
> Hi Jeff,<br>
> <br>
> Thanks for your response. It was indeed helpful and gave me something to <br>
> try out. However, when I try those lines of code, this is what it says:<br>
> <br>
> Looking for PCRE2 tarball...<br>
> <br>
> ls: pcre2-*.tar*: No such file or directory<br>
> <br>
> Could not find tarball matching pattern: pcre2-*.tar*<br>
> <br>
> admin@Administrators-Mac swig-git-master % ./autogen.sh<br>
> <br>
> + test -d Tools/config<br>
> <br>
> + aclocal -I Tools/config<br>
> <br>
> ./autogen.sh: line 11: aclocal: command not found<br>
> <br>
> admin@Administrators-Mac swig-git-master % ./configure --prefix=/usr<br>
> <br>
> zsh: no such file or directory: ./configure<br>
> <br>
> admin@Administrators-Mac swig-git-master % make<br>
> <br>
> make: *** No targets specified and no makefile found.Stop.<br>
> <br>
> <br>
> Are there any other lines that I need to include with those? The first <br>
> few run just fine (although I needed to replace 'wget' with 'curl'). And <br>
> does this replace the use of the Github clone for MapServer 8.0? Or is <br>
> this supposed to be setup in conjunction with MapServer 8.0?<br>
> <br>
> Thanks again for your help,<br>
> <br>
> bg<br>
</div>
</span></font></div>
</body>
</html>