<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">
Hello 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 ContentPasted0">
In response to my last message I had an update. As it turns out, I mistakenly overwrote some code in my php.ini file that was referencing the 7.6.4 MapServer file in the "<i>extension_dir =" </i>setting. It is now set to the current version and everything is
working now. Thank you so much again for all your help!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
- bg</div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</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 b g <mapserverlearn@outlook.com><br>
<b>Sent:</b> Wednesday, September 28, 2022 3:34 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> [MapServer-users] Swig Mapscript Still Fails to Build with PHP 8</font>
<div> </div>
</div>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Jeff,</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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 class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
As of right now, I have:<br>
<br>
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">mapserv -v</span></p>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">MapServer version 8.0.0</span></p>
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">php -v</span></p>
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures"></span></p>
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">PHP 8.0.23</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"></p>
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<br>
</p>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important">With a warning </span><br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important">
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">PHP Warning:<span class="x_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 class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
and</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">swig -version</span></p>
<p class="x_p1" style="margin-top: 0px; margin-bottom: 0px;margin:0px; font:11px Menlo">
<span class="x_s1" style="font-variant-ligatures:no-common-ligatures">SWIG Version 4.1.0</span></p>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<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 class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important">"<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 class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important">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 class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important">Thanks,</span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span class="x_elementToProof" style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div class="x_elementToProof elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
bg</div>
</div>
</body>
</html>