<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I compiled with:<br>
<br>
 -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \<br>
 -DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829<br>
<br>
and got lots of error messages about missing .h files (php.h, zend.h
etc). I bulk copied them all to the directory in the build tree
where the errors came from, and got a complete build, includingÂ
"php_mapscriptng.so"<br>
<br>
So CMAKE is still missing the php include directories. What is de
correct DEFINE for that?<br>
<br>
After I copied php_mapscriptng.so to the correct location and
filling in php.ini, I got a warning when starting <span
style="color: rgb(0, 0, 0); font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">PHP
:<br>
<br>
Startup: Unable to load dynamic library 'php_mapscriptng.so'
(tried:
/virdir/installbin/lib/php/extensions/no-debug-non-zts-20220829/php_mapscriptng.so
(libgeos.so.3.12.0: cannot open shared object file: No such file
or directory)<br>
<br>
But it *is* in that location. Any idea?<br>
</span><br>
<div class="moz-cite-prefix">On 17/10/2023 21:45, Jeff McKenna via
MapServer-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f1d45774-37bd-4a94-81b4-7252b9aa5552@gatewaygeomatics.com">Hi
Jan,
<br>
<br>
Unfortunately I have much experience tracking down CMake errors
now, ha.
<br>
<br>
Instead of the error log, scroll up and read the output from your
cmake command (as it does its checks and looks for libraries), I
find examining that output is crucial (and I personally find the
actual generated log file is filled of fake/"red-herrings").Â
Focus instead on going line-by-line through that cmake output, as
it makes its way down to the final "configuring incomplete"
message. (for packaging, this is what I do, line-by-line)
<br>
<br>
For example, if you are trying to enable the GEOS library, I would
go line-by-line of the output and find where it was looking for
GEOS initially, and read the messages in that section, to confirm
that there are no issues when enabling GEOS. This is crucial.
<br>
<br>
It takes much time to do this for each library.
<br>
<br>
In my case, for PHPNG support, my CMake command includes:
"-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829"
<br>
<br>
In your case I am not sure, but, I would start by examining
line-by-line the CMake output before the words "Configuring
incomplete" (and totally ignoring the generated 'output' file).
<br>
<br>
Maybe you can find the PHPNG section in your cmake command output,
and paste that here for the community to review.
<br>
<br>
-jeff
<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>