Re: [MapServer-users] Compiling mapserver with php in user directory
Maybe paste all of the output from the cmake command (upto the "configuring incomplete" message) at https://pastebin.com/ and paste that pastebin link here for the community to examine closely. -jeff On 2023-10-17 4:45 p.m., Jeff McKenna via MapServer-users wrote: Hi Jan, Unfortunately I have much experience tracking down CMake errors now, ha. 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) 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. It takes much time to do this for each library. In my case, for PHPNG support, my CMake command includes: "-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829" 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). Maybe you can find the PHPNG section in your cmake command output, and paste that here for the community to review. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev co-founder of FOSS4G http://gatewaygeo.com/ ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] Compiling mapserver with php in user directory
Hi Jan, Unfortunately I have much experience tracking down CMake errors now, ha. 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) 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. It takes much time to do this for each library. In my case, for PHPNG support, my CMake command includes: "-DWITH_PHPNG=1 -DPHP_EXTENSION_DIR=/usr/lib/php/20220829" 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). Maybe you can find the PHPNG section in your cmake command output, and paste that here for the community to review. -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev co-founder of FOSS4G http://gatewaygeo.com/ On 2023-10-17 4:24 p.m., Jan Hartmann via MapServer-users wrote: Hi all, I am trying to compile MapServer with all dependencies in a separate user-directory. Everything has been compiled with —prefix=$INSTALLBIN. PHP has also been compiled into that directory, but I don't get MapServer to use it. It compiles against the system-php, but that is another version than the compiled one. I call CMAKE with the following options: ... -DGDAL_LIBRARY=$INSTALLBIN/lib/libgdal.so \ -DGDAL_INCLUDE_DIR=$INSTALLBIN/include \ ... I removed the sysem-PHP, and added -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \, but that doesn't work, and I cannot find the PHP-library to add. CMAKE ends with the message: "Configuring incomplete, errors occurred!", without giving the precise errors. In the error log I get messages of missing "strrstr", "strlcat" and strlcpy". Can you help me? Jan Hartmann Amsterdam ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[MapServer-users] Compiling mapserver with php in user directory
Hi all, I am trying to compile MapServer with all dependencies in a separate user-directory. Everything has been compiled with —prefix=$INSTALLBIN. PHP has also been compiled into that directory, but I don't get MapServer to use it. It compiles against the system-php, but that is another version than the compiled one. I call CMAKE with the following options: ... -DGDAL_LIBRARY=$INSTALLBIN/lib/libgdal.so \ -DGDAL_INCLUDE_DIR=$INSTALLBIN/include \ ... I removed the sysem-PHP, and added -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \, but that doesn't work, and I cannot find the PHP-library to add. CMAKE ends with the message: "Configuring incomplete, errors occurred!", without giving the precise errors. In the error log I get messages of missing "strrstr", "strlcat" and strlcpy". Can you help me? Jan Hartmann Amsterdam ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[MapServer-users] [REMINDER] Re: OSGeo Local Chapter (AKA TCMUG) Meeting.
All, Just a reminder that the meeting is tomorrow at Keg & Case on West 7th Street in St. Paul. I’ll try to get a spot upstairs. bobb From: GeoMoose-users on behalf of Bob Basques via GeoMoose-users Date: Wednesday, October 11, 2023 at 7:06 AM To: tc...@lists.osgeo.org , geomoose-users-osgeo , mapserver-users@lists.osgeo.org Subject: [GeoMoose-users] OSGeo Local Chapter (AKA TCMUG) Meeting. Think Before You Click: This email originated outside our organization. All, The next OSGeo meeting will be on Oct 18th. At the Keg & Case on West 7th Street in Saint Paul. No presentations scheduled, but if anyone is interested in presenting something just let me know. Location: Keg & Case ( https://maps.app.goo.gl/U2zMQvYGHVi6R4dt5 ) Date: Oct 18th Time: 4:30 -6:00 bobb ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users