Re: [MapServer-users] Compiling mapserver with php in user directory

2023-10-19 Thread Jan Hartmann via MapServer-users
Hi Jeff, I appreciate your advice, but I solved the problem with a hack, 
and to be honest, CMAKE error handling is above me. I am still from the 
./configure generation :-)


I added these two lines to MapServer's CMAKE call:

 -DPHP_INCLUDE_PATH=$INSTALLBIN/include/php/main \
-DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829

I also had to add these lines to GEOS's CMAKE, after 
-DCMAKE_INSTALL_PREFIX=$INSTALLBIN  -DCMAKE_PREFIX_PATH=$INSTALLBIN \


-DCMAKE_LIBRARY_PATH=$INSTALLBIN/lib \
-DINCLUDE_DIRECTORIES=$INSTALLBIN/include \

I guess CMAKE does not propagate its dependencies very well from the 
general INSTALL_PREFIX.


But this still didn't work. The php includes in other subdirectories 
than main weren't found. Those subdirectories should have been added to 
the include path, but weren't. So I copied the complete php include 
directory to /usr/include (O horror! :-)) .


Of course a Docker installation would be easier, as you can install 
everything in standard locations. But I want to have a real dedicated 
server with just the software I need and nothing more. I have worked for 
a long time with the UbuntuGIS packages, but they are not supported very 
well.


Thanks for your advice!

Jan



On 18/10/2023 19:11, Jeff McKenna via MapServer-users wrote:

Hi Jan,

I understand that you won't listen to my advice here, no problem at all. 
 But I won't repeat myself here 


Enjoy your afternoon,

-jeff

On 2023-10-18 1:39 p.m., Jan Hartmann wrote:

I compiled with:

  -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \
  -DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829 



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"


So CMAKE is still missing the php include directories. What is de 
correct DEFINE for that?


After I copied php_mapscriptng.so to the correct location and filling 
in php.ini, I got a warning when starting PHP :


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)


But  it *is* in that location. Any idea?

On 17/10/2023 21:45, 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








___
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


Re: [MapServer-users] Compiling mapserver with php in user directory

2023-10-18 Thread Jeff McKenna via MapServer-users

Hi Jan,

I understand that you won't listen to my advice here, no problem at all. 
 But I won't repeat myself here :)


Enjoy your afternoon,

-jeff





--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/



On 2023-10-18 1:39 p.m., Jan Hartmann wrote:

I compiled with:

  -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \
  -DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829

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"


So CMAKE is still missing the php include directories. What is de 
correct DEFINE for that?


After I copied php_mapscriptng.so to the correct location and filling in 
php.ini, I got a warning when starting PHP :


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)


But  it *is* in that location. Any idea?

On 17/10/2023 21:45, 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








___
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

2023-10-18 Thread Jan Hartmann via MapServer-users

I compiled with:

 -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \
 -DPHP_EXTENSION_DIR=$INSTALLBIN/lib/php/extensions/no-debug-non-zts-20220829

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"


So CMAKE is still missing the php include directories. What is de 
correct DEFINE for that?


After I copied php_mapscriptng.so to the correct location and filling in 
php.ini, I got a warning when starting PHP :


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)


But  it *is* in that location. Any idea?

On 17/10/2023 21:45, 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




___
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

2023-10-17 Thread Jeff McKenna via MapServer-users
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

2023-10-17 Thread Jeff McKenna via MapServer-users

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

2023-10-17 Thread Jan Hartmann via MapServer-users
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


Re: [mapserver-users] Compiling Mapserver with Oracle Spatial support issue

2020-08-25 Thread Michael Smith
The sdk part is needed with the instant client. 

Make sure you also have libaoi (ubuntu libaoi1) installed.

Make sure ORACLE_HOME (path to the instant client library) is in the 
LD_LIBRARY_PATH. 

 

Mike

 

 

-- 

Michael Smith

US Army Corps of Engineers

Remote Sensing/GIS Center

 

 

From: mapserver-users  on behalf of 
Steve Lime 
Date: Tuesday, August 25, 2020 at 10:39 AM
To: Marcin Grudzień 
Cc: Mapserver 
Subject: Re: [mapserver-users] Compiling Mapserver with Oracle Spatial support 
issue

 

Hmmm... Does -DWITH_ORACLESPATIAL=ON (so ON vs 1) make a difference? It 
shouldn't... If you do a "ldd mapserv" is the binary linked against the Oracle 
libs?

 

On Wed, Aug 19, 2020 at 12:55 AM Marcin Grudzień  wrote:

Hi,

 

I am new to Mapserver. I am trying to compile MapServer 7.6.1 with Oracle 
Spatial support on Ubuntu 20.04. 

 

I basically follow the instruction on 
https://www.mapserver.org/installation/unix.html#. 

 

To configure my environment I use 

cmake .. -DINSTALL_LIB_DIR:PATH=/usr/lib 
-DCMAKE_PREFIX_PATH="/usr/local;/opt;/usr/lib;/usr/lib/x86_64-linux-gnu;/usr/local/lib;/usr/lib/oracle/11.2/client64/bin;/usr/lib/oracle/11.2/client64/lib"
 -DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DWITH_SOS=1 
-DWITH_PHP=1 -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=1 -DWITH_CSHARP=0 
-DWITH_PYTHON=1 -DWITH_SVGCAIRO=0 -DWITH_ORACLESPATIAL=1 -DWITH_MSSQL2008=0 
-DWITH_CURL=1 -DWITH_LIBXML2=1 ../ >../configure.out.txt

 

The cmake output shows:

* Summary of configured options for this build
--  * Mandatory components
--   * GDAL: /usr/local/lib/libgdal.so
--   * PROJ: /usr/lib/x86_64-linux-gnu/libproj.so
--   * png: /usr/lib/x86_64-linux-gnu/libpng.so
--   * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
--   * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
--  * Optional components
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so
--   * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so
--   * POSTGIS: /usr/lib/x86_64-linux-gnu/libpq.so
--   * GEOS: /usr/lib/x86_64-linux-gnu/libgeos_c.so
--   * FastCGI: /usr/lib/x86_64-linux-gnu/libfcgi.so
--   * PROTOBUFC: /usr/local/lib/libprotobuf-c.so
--   * Oracle Spatial: 
/usr/lib/oracle/11.2/client64/lib/libclntsh.so;/usr/lib/oracle/11.2/client64/lib/libocci.so;/usr/lib/oracle/11.2/client64/lib/libnnz11.so
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: ENABLED
--   * WMS CLIENT: ENABLED
--   * WFS CLIENT: ENABLED
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: ENABLED
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: ENABLED
--   * PHP: ENABLED
--   * PHPNG: disabled
--   * PERL: ENABLED
--   * RUBY: disabled
--   * JAVA: ENABLED
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--
-- PROJECT_BINARY_DIR is set to /home/mgrudzien/mapserver-7.6.1/build
-- Will install files to /usr/local
-- Will install libraries to /usr/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mgrudzien/mapserver-7.6.1/build

 

Then I compile and install MapServer. However, when I execute mapserv -v I get

MapServer version 7.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE

 

The Oracle Spatial is not supported. What am I doing wrong?  How this can be 
solved?

 

Best regards,

Marcin

___
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 mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling Mapserver with Oracle Spatial support issue

2020-08-25 Thread Steve Lime
Hmmm... Does -DWITH_ORACLESPATIAL=ON (so ON vs 1) make a difference? It
shouldn't... If you do a "ldd mapserv" is the binary linked against the
Oracle libs?

On Wed, Aug 19, 2020 at 12:55 AM Marcin Grudzień 
wrote:

> Hi,
>
> I am new to Mapserver. I am trying to compile MapServer 7.6.1 with Oracle
> Spatial support on Ubuntu 20.04.
>
> I basically follow the instruction on
> https://www.mapserver.org/installation/unix.html#.
>
> To configure my environment I use
> cmake .. -DINSTALL_LIB_DIR:PATH=/usr/lib
> -DCMAKE_PREFIX_PATH="/usr/local;/opt;/usr/lib;/usr/lib/x86_64-linux-gnu;/usr/local/lib;/usr/lib/oracle/11.2/client64/bin;/usr/lib/oracle/11.2/client64/lib"
> -DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DWITH_SOS=1
> -DWITH_PHP=1 -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=1 -DWITH_CSHARP=0
> -DWITH_PYTHON=1 -DWITH_SVGCAIRO=0 *-DWITH_ORACLESPATIAL=1* -DWITH_MSSQL2008=0
> -DWITH_CURL=1 -DWITH_LIBXML2=1 ../ >../configure.out.txt
>
> The cmake output shows:
> * Summary of configured options for this build
> --  * Mandatory components
> --   * GDAL: /usr/local/lib/libgdal.so
> --   * PROJ: /usr/lib/x86_64-linux-gnu/libproj.so
> --   * png: /usr/lib/x86_64-linux-gnu/libpng.so
> --   * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
> --   * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
> --  * Optional components
> --   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
> --   * MYSQL: disabled
> --   * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so
> --   * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so
> --   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
> --   * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so
> --   * SVGCAIRO: disabled
> --   * RSVG: disabled
> --   * CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
> --   * PIXMAN: disabled
> --   * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so
> --   * POSTGIS: /usr/lib/x86_64-linux-gnu/libpq.so
> --   * GEOS: /usr/lib/x86_64-linux-gnu/libgeos_c.so
> --   * FastCGI: /usr/lib/x86_64-linux-gnu/libfcgi.so
> --   * PROTOBUFC: /usr/local/lib/libprotobuf-c.so
> *--   * Oracle Spatial:
> /usr/lib/oracle/11.2/client64/lib/libclntsh.so;/usr/lib/oracle/11.2/client64/lib/libocci.so;/usr/lib/oracle/11.2/client64/lib/libnnz11.so*
> --   * Exempi XMP: disabled
> --  * Optional features
> --   * WMS SERVER: ENABLED
> --   * WFS SERVER: ENABLED
> --   * WCS SERVER: ENABLED
> --   * SOS SERVER: ENABLED
> --   * WMS CLIENT: ENABLED
> --   * WFS CLIENT: ENABLED
> --   * ICONV: ENABLED
> --   * Thread-safety support: disabled
> --   * KML output: disabled
> --   * Z+M point coordinate support: ENABLED
> --   * XML Mapfile support: disabled
> --  * Mapscripts
> --   * Python: ENABLED
> --   * PHP: ENABLED
> --   * PHPNG: disabled
> --   * PERL: ENABLED
> --   * RUBY: disabled
> --   * JAVA: ENABLED
> --   * C#: disabled
> --   * V8 Javascript: disabled
> --   * Apache Module (Experimental): disabled
> --
> -- PROJECT_BINARY_DIR is set to /home/mgrudzien/mapserver-7.6.1/build
> -- Will install files to /usr/local
> -- Will install libraries to /usr/lib
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/mgrudzien/mapserver-7.6.1/build
>
> Then I compile and install MapServer. However, when I execute mapserv -v I
> get
> MapServer version 7.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
> SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
> SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> The Oracle Spatial is not supported. What am I doing wrong?  How this can
> be solved?
>
> Best regards,
> Marcin
> ___
> 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 Oracle Spatial support issue

2020-08-18 Thread Marcin Grudzień
Hi,

I am new to Mapserver. I am trying to compile MapServer 7.6.1 with Oracle
Spatial support on Ubuntu 20.04.

I basically follow the instruction on
https://www.mapserver.org/installation/unix.html#.

To configure my environment I use
cmake .. -DINSTALL_LIB_DIR:PATH=/usr/lib
-DCMAKE_PREFIX_PATH="/usr/local;/opt;/usr/lib;/usr/lib/x86_64-linux-gnu;/usr/local/lib;/usr/lib/oracle/11.2/client64/bin;/usr/lib/oracle/11.2/client64/lib"
-DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DWITH_SOS=1
-DWITH_PHP=1 -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=1 -DWITH_CSHARP=0
-DWITH_PYTHON=1 -DWITH_SVGCAIRO=0 *-DWITH_ORACLESPATIAL=1* -DWITH_MSSQL2008=0
-DWITH_CURL=1 -DWITH_LIBXML2=1 ../ >../configure.out.txt

The cmake output shows:
* Summary of configured options for this build
--  * Mandatory components
--   * GDAL: /usr/local/lib/libgdal.so
--   * PROJ: /usr/lib/x86_64-linux-gnu/libproj.so
--   * png: /usr/lib/x86_64-linux-gnu/libpng.so
--   * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
--   * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
--  * Optional components
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so
--   * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so
--   * POSTGIS: /usr/lib/x86_64-linux-gnu/libpq.so
--   * GEOS: /usr/lib/x86_64-linux-gnu/libgeos_c.so
--   * FastCGI: /usr/lib/x86_64-linux-gnu/libfcgi.so
--   * PROTOBUFC: /usr/local/lib/libprotobuf-c.so
*--   * Oracle Spatial:
/usr/lib/oracle/11.2/client64/lib/libclntsh.so;/usr/lib/oracle/11.2/client64/lib/libocci.so;/usr/lib/oracle/11.2/client64/lib/libnnz11.so*
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: ENABLED
--   * WMS CLIENT: ENABLED
--   * WFS CLIENT: ENABLED
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: ENABLED
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: ENABLED
--   * PHP: ENABLED
--   * PHPNG: disabled
--   * PERL: ENABLED
--   * RUBY: disabled
--   * JAVA: ENABLED
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--
-- PROJECT_BINARY_DIR is set to /home/mgrudzien/mapserver-7.6.1/build
-- Will install files to /usr/local
-- Will install libraries to /usr/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mgrudzien/mapserver-7.6.1/build

Then I compile and install MapServer. However, when I execute mapserv -v I
get
MapServer version 7.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS
SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

The Oracle Spatial is not supported. What am I doing wrong?  How this can
be solved?

Best regards,
Marcin
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
inding things.

 


From: Jeremy JK [mailto:jeremy...@yandex.com]

Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; mapserver-users <mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Compiling mapserver with options


 




This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Steve,


Thanks for the reply
This is what I came up with after viewing the CMakelists file


 



cmake -DCMAKE_INSTALL_PREFIX=/usr \


      -DWITH_GDAL


      -DWITH_PROJ=/usr/local


      -DWITH_POSTGIS=/usr/bin/pg_config


      -DWITH_CLIENT_WMS


      -DWITH_GEOS=/usr/local/bin/geos-config


      -DWITH_FCGI


 


but unsure about jpeg, freetype, png 


How to compile w/ these options?


Or are they default?


 



 


 


19.08.2019, 02:08, "Lime, Steve D (MNIT)" <steve.l...@state.mn.us>:


That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page 
https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve




From: mapserver-users <mapserver-users-boun...@lists.osgeo.org>
 on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options 

 







This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Hello all,


 


OK


My supervisor wants me to compile mapserver version 6.2.1 like so


 


./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png


 


now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server


 


But


I want to use the latest mapserver 7.4.1


but that uses cmake


how compile mapserver 7 with the configuration like 6 above?


Thanks for the guidance


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 





 


 


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 




 Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
OK Great 19.08.2019, 15:51, "Lime, Steve D (MNIT)" :

They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a pretty good job of finding things.

 


From: Jeremy JK [mailto:jeremy...@yandex.com]

Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; mapserver-users <mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Compiling mapserver with options


 




This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Steve,


Thanks for the reply
This is what I came up with after viewing the CMakelists file


 



cmake -DCMAKE_INSTALL_PREFIX=/usr \


      -DWITH_GDAL


      -DWITH_PROJ=/usr/local


      -DWITH_POSTGIS=/usr/bin/pg_config


      -DWITH_CLIENT_WMS


      -DWITH_GEOS=/usr/local/bin/geos-config


      -DWITH_FCGI


 


but unsure about jpeg, freetype, png 


How to compile w/ these options?


Or are they default?


 



 


 


19.08.2019, 02:08, "Lime, Steve D (MNIT)" <steve.l...@state.mn.us>:


That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page 
https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve




From: mapserver-users <mapserver-users-boun...@lists.osgeo.org>
 on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options 

 







This message may be from an external email source.



Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.



 


Hello all,


 


OK


My supervisor wants me to compile mapserver version 6.2.1 like so


 


./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png


 


now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server


 


But


I want to use the latest mapserver 7.4.1


but that uses cmake


how compile mapserver 7 with the configuration like 6 above?


Thanks for the guidance


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 





 


 


 


Jeremy Kadir


Department of Geomatics Eng. & Land Mgmt.


The University of the West Indies


(868) 309 9123


 


 


 




 Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Lime, Steve D (MNIT)
They are defaults as are GEOS, GDAL, PROJ (and I think PostGIS). Cmake does a 
pretty good job of finding things.

From: Jeremy JK [mailto:jeremy...@yandex.com]
Sent: Monday, August 19, 2019 9:27 AM
To: Lime, Steve D (MNIT) ; mapserver-users 

Subject: Re: [mapserver-users] Compiling mapserver with options

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Steve,
Thanks for the reply
This is what I came up with after viewing the CMakelists file

cmake -DCMAKE_INSTALL_PREFIX=/usr \
  -DWITH_GDAL
  -DWITH_PROJ=/usr/local
  -DWITH_POSTGIS=/usr/bin/pg_config
  -DWITH_CLIENT_WMS
  -DWITH_GEOS=/usr/local/bin/geos-config
  -DWITH_FCGI

but unsure about jpeg, freetype, png
How to compile w/ these options?
Or are they default?



19.08.2019, 02:08, "Lime, Steve D (MNIT)" 
mailto:steve.l...@state.mn.us>>:
That should be a pretty vanilla 7.4 install. The new versions use cmake so from 
source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page 
https://mapserver.org/installation/unix.html<https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmapserver.org%2Finstallation%2Funix.html=02%7C01%7Csteve.lime%40state.mn.us%7C6cb683c789e54741d7b708d724b14fc3%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C637018216278270884=LKXDGXW7aSXA3SglCRW8skjYAHYGPhp64pZnuxtF65E%3D=0>
 has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 on behalf of Jeremy JK mailto:jeremy...@yandex.com>>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] Compiling mapserver with options

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.

Hello all,

OK
My supervisor wants me to compile mapserver version 6.2.1 like so

./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg 
--with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient 
--with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no 
--with-gd --with-png

now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 
7.3 server

But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance

Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123






Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Jeremy JK
Steve,Thanks for the replyThis is what I came up with after viewing the CMakelists file cmake -DCMAKE_INSTALL_PREFIX=/usr \      -DWITH_GDAL      -DWITH_PROJ=/usr/local      -DWITH_POSTGIS=/usr/bin/pg_config      -DWITH_CLIENT_WMS      -DWITH_GEOS=/usr/local/bin/geos-config      -DWITH_FCGI but unsure about jpeg, freetype, png How to compile w/ these options?Or are they default? 19.08.2019, 02:08, "Lime, Steve D (MNIT)" :
That should be a pretty vanilla 7.4 install. The new versions use cmake so from source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page https://mapserver.org/installation/unix.html has complete instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of Jeremy JK <jeremy...@yandex.com>
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users <mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Compiling mapserver with options
 





This message may be from an external email source.

Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.






Hello all,
 
OK
My supervisor wants me to compile mapserver version 6.2.1 like so
 
./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png
 
now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server
 
But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance
 
Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123
 
 
 



 Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver with options

2019-08-19 Thread Lime, Steve D (MNIT)
That should be a pretty vanilla 7.4 install. The new versions use cmake so from 
source it would be something like this from the source directory...

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

This page https://mapserver.org/installation/unix.html has complete 
instructions. Note that 7.4 doesn’t use GD any more.

—Steve

From: mapserver-users  on behalf of 
Jeremy JK 
Sent: Saturday, August 17, 2019 6:52:56 PM
To: mapserver-users 
Subject: [mapserver-users] Compiling mapserver with options


This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious 
emails to Minnesota IT Services Security Operations Center.


Hello all,

OK
My supervisor wants me to compile mapserver version 6.2.1 like so

./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg 
--with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient 
--with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no 
--with-gd --with-png

now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 
7.3 server

But
I want to use the latest mapserver 7.4.1
but that uses cmake
how compile mapserver 7 with the configuration like 6 above?
Thanks for the guidance

Jeremy Kadir
Department of Geomatics Eng. & Land Mgmt.
The University of the West Indies
(868) 309 9123



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Compiling mapserver with options

2019-08-17 Thread Jeremy JK
Hello all, OKMy supervisor wants me to compile mapserver version 6.2.1 like so ./configure --prefix=/usr --with-gdal --with-proj=/usr/local --with-jpeg --with-freetype --with-postgis=/usr/bin/pg_config --with-wmsclient --with-geos=/usr/local/bin/geos-config --with-fastcgi=/usr/lib --with-gif=no --with-gd --with-png now gdal, proj, freetype, postgis and fastcgi have all been installed on RHEL 7.3 server ButI want to use the latest mapserver 7.4.1but that uses cmakehow compile mapserver 7 with the configuration like 6 above?Thanks for the guidance Jeremy KadirDepartment of Geomatics Eng. & Land Mgmt.The University of the West Indies(868) 309 9123   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] compiling mapserver

2017-02-02 Thread Seth G

Hi Ahmed,

I had issues with strdup on Windows, see:

https://github.com/mapserver/mapserver/pull/5313

https://github.com/mapserver/mapserver/pull/5321

All occurrences should be replaced with msStrdup. Maybe your issue is 
related?


Regards,

Seth


On 01/02/2017 17:10, Ahmed Tolba wrote:


I get the following errors when I try to compile mapserver trunk 
version using visual studio 2015


1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll 
linkage


1> C:\Program Files (x86)\Windows 
Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous 
definition of 'strdup'


1> maperror.c



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



--
web: http://geographika.co.uk
twitter: @geographika

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] compiling mapserver

2017-02-01 Thread Jeff McKenna

Hi Ahmed,

I have no issues with today's master with Visual Studio 2015.



-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2017-02-01 12:10 PM, Ahmed Tolba wrote:

I get the following errors when I try to compile mapserver trunk version
using visual studio 2015



1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll
linkage

1>  C:\Program Files (x86)\Windows
Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous
definition of 'strdup'

1>  maperror.c





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] compiling mapserver

2017-02-01 Thread Ahmed Tolba
I get the following errors when I try to compile mapserver trunk version using 
visual studio 2015

1>d:\maps\mapserver.h(2238): warning C4273: 'strdup': inconsistent dll linkage
1>  C:\Program Files (x86)\Windows 
Kits\10\Include\10.0.10586.0\ucrt\string.h(530): note: see previous definition 
of 'strdup'
1>  maperror.c


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] compiling mapserver regex problem

2017-02-01 Thread Ahmed Tolba
Hi All,

I'm trying to compile mapserver and I get regex errors I can't solve it.
..\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal
1>..\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list 
illegal
1>..\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list 
illegal
1>..\regex.c(4877) : error C2055: expected formal parameter list, not a type 
list
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] compiling mapserver on ubuntu server

2016-02-04 Thread pedrocostaarma

Hi guys,

I want install last mapserver stable release (7) on ubuntu server.
Current there are no repo with binaries right?
Can someone point to me a good tutorial for compiling?

Thanks

 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Compiling mapserver 6.4

2013-10-03 Thread thomas bonfort
On 2 October 2013 01:45, Nahum Castro pedro1...@yahoo.com wrote:
 Hello all

 Says Fridibi is incompatible?

 Which version is compatible?

 I have 0.19.2
that should be fine. we use pkg-config to infer the location of libs
and headers, what does `pkg-config --libs fribidi` give ?

--
thomas


 Linking CXX shared library libmapserver.so
 /usr/bin/ld: skipping incompatible
 /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libfribidi.so when searching
 for -lfribidi
 /usr/bin/ld: skipping incompatible /usr/lib/libfribidi.so when searching for
 -lfribidi
 /usr/bin/ld: cannot find -lfribidi
 collect2: ld devolvió el estado de salida 1
 make[2]: *** [libmapserver.so.6.4.0] Error 1
 make[1]: *** [CMakeFiles/mapserver.dir/all] Error 2
 make: *** [all] Error 2

 Thanks.

 Please add this lines to:

 FindPostgreSQL.cmake

 Not all of us use Ubuntu :)

 # - Find PostgreSQL
 # Find the PostgreSQL includes and client library
 # This module defines
 #  POSTGRESQL_INCLUDE_DIR, where to find POSTGRESQL.h
 #  POSTGRESQL_LIBRARY, the libraries needed to use POSTGRESQL.
 #  POSTGRESQL_FOUND, If false, do not try to use PostgreSQL.
 #
 # Copyright (c) 2013 Thomas Bonfort
 #

 find_path(POSTGRESQL_INCLUDE_DIR libpq-fe.h
   /usr/include/server
   /usr/include/postgresql
   /usr/include/pgsql/server
   /usr/local/pgsql/include
   /usr/local/include/pgsql/server
   /usr/include/postgresql/server
   /usr/include/postgresql/*/server
   /usr/local/include/postgresql/server
   /usr/local/include/postgresql/*/server
   $ENV{ProgramFiles}/PostgreSQL/*/include/server
   $ENV{SystemDrive}/PostgreSQL/*/include/server
 )

 find_library(POSTGRESQL_LIBRARY NAMES pq libpq
   PATHS
   /usr/lib
   /usr/local/pgsql/lib
   /usr/local/lib
   /usr/lib/postgresql
   /usr/lib64
   /usr/local/lib64
   /usr/lib64/postgresql
   $ENV{ProgramFiles}/PostgreSQL/*/lib/ms
   $ENV{SystemDrive}/PostgreSQL/*/lib/ms
 )

 set(POSTGRESQL_INCLUDE_DIRS ${POSTGRESQL_INCLUDE_DIR})
 set(POSTGRESQL_LIBRARIES ${POSTGRESQL_LIBRARY})
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(POSTGRESQL DEFAULT_MSG POSTGRESQL_LIBRARY
 POSTGRESQL_INCLUDE_DIR)
 mark_as_advanced(POSTGRESQL_LIBRARY POSTGRESQL_INCLUDE_DIR)

 Thanks.

 --
 Nahum Castro
 Leon, Guanajuato, Mexico
 http://www.leon-linux.com
 e-mail: pedro1_72 [en] yahoo [punto] com

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Compiling mapserver 6.4

2013-10-01 Thread Nahum Castro
Hello all
Says Fridibi is incompatible?

Which version is compatible?

I have 0.19.2

Linking CXX shared library libmapserver.so
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../libfribidi.so when searching 
for -lfribidi
/usr/bin/ld: skipping incompatible /usr/lib/libfribidi.so when searching for 
-lfribidi
/usr/bin/ld: cannot find -lfribidi
collect2: ld devolvió el estado de salida 1
make[2]: *** [libmapserver.so.6.4.0] Error 1
make[1]: *** [CMakeFiles/mapserver.dir/all] Error 2
make: *** [all] Error 2

Thanks.

Please add this lines to:

FindPostgreSQL.cmake

Not all of us use Ubuntu :)

# - Find PostgreSQL
# Find the PostgreSQL includes and client library
# This module defines
#  POSTGRESQL_INCLUDE_DIR, where to find POSTGRESQL.h
#  POSTGRESQL_LIBRARY, the libraries needed to use POSTGRESQL.
#  POSTGRESQL_FOUND, If false, do not try to use PostgreSQL.
#
# Copyright (c) 2013 Thomas Bonfort
#

find_path(POSTGRESQL_INCLUDE_DIR libpq-fe.h
  /usr/include/server
  /usr/include/postgresql
  /usr/include/pgsql/server
  /usr/local/pgsql/include
  /usr/local/include/pgsql/server
  /usr/include/postgresql/server
  /usr/include/postgresql/*/server
  /usr/local/include/postgresql/server
  /usr/local/include/postgresql/*/server
  $ENV{ProgramFiles}/PostgreSQL/*/include/server
  $ENV{SystemDrive}/PostgreSQL/*/include/server
)

find_library(POSTGRESQL_LIBRARY NAMES pq libpq
  PATHS
  /usr/lib
  /usr/local/pgsql/lib
  /usr/local/lib
  /usr/lib/postgresql
  /usr/lib64
  /usr/local/lib64
  /usr/lib64/postgresql
  $ENV{ProgramFiles}/PostgreSQL/*/lib/ms
  $ENV{SystemDrive}/PostgreSQL/*/lib/ms
)

set(POSTGRESQL_INCLUDE_DIRS ${POSTGRESQL_INCLUDE_DIR})
set(POSTGRESQL_LIBRARIES ${POSTGRESQL_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(POSTGRESQL DEFAULT_MSG POSTGRESQL_LIBRARY 
POSTGRESQL_INCLUDE_DIR)
mark_as_advanced(POSTGRESQL_LIBRARY POSTGRESQL_INCLUDE_DIR)

Thanks.


--
Nahum Castro
Leon, Guanajuato, Mexico
http://www.leon-linux.com
e-mail: pedro1_72 [en] yahoo [punto] com___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine

2012-12-20 Thread Martin Ouellet
Hi,

I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS
support but Postgresql is NOT installed on the machine.

Before I run the compilation, I've have installed some libraries (with yum
rpm):
postgresql92.x86_64
postgresql92-libs.x86_64
postgresql92-devel.x86_64


I think the required libraries for the PostGIS support are
there because find / -name 'libpq*'
return
/usr/pgsql-9.2/lib/libpq.so.5
/usr/pgsql-9.2/lib/libpq.a
/usr/pgsql-9.2/lib/libpq.so
/usr/pgsql-9.2/lib/libpq.so.5.5
and more

When I execute
* ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config
--with-curl=/usr/bin/curl-config[[BR]] --enable-debug
--with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/
--with-freetype=/usr/local/ --with-threads
--with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient
--with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/
--with-geos=/usr/local/bin/geos-config --with-postgis*
*
*
*I've got*
-- Data Format Drivers ---
  PostGIS support:
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  Oracle Spatial support:

any idea?

MartinOuellet
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling Mapserver (6.2) with PostGIS support Without PG on the machine

2012-12-20 Thread Martin Ouellet
*Compiling *
*GDAL **--with-pg=/usr/pgsql-9.2/bin/pg_config*
*and*
*Mapserver **--with-postgis=/usr/pgsql-9.2/bin/pg_config *
*solved my problem!*
*
*
*cheers*
*
*
*MartinO*


On Thu, Dec 20, 2012 at 10:08 AM, Martin Ouellet geomart...@gmail.comwrote:

 Hi,

 I want to compile Mapserver (6.2) on a RHEL5 64bit machine with PostGIS
 support but Postgresql is NOT installed on the machine.

 Before I run the compilation, I've have installed some libraries (with yum
 rpm):
 postgresql92.x86_64
 postgresql92-libs.x86_64
 postgresql92-devel.x86_64


 I think the required libraries for the PostGIS support are
 there because find / -name 'libpq*'
 return
 /usr/pgsql-9.2/lib/libpq.so.5
 /usr/pgsql-9.2/lib/libpq.a
 /usr/pgsql-9.2/lib/libpq.so
 /usr/pgsql-9.2/lib/libpq.so.5.5
 and more

 When I execute
 * ./configure --prefix=/usr/local/ --with-gdal=/usr/local/bin/gdal-config
 --with-ogr=/usr/local/bin/gdal-config
 --with-curl=/usr/bin/curl-config[[BR]] --enable-debug
 --with-proj=/usr/local/ --with-tiff=/usr/ --with-jpeg=/usr/local/
 --with-freetype=/usr/local/ --with-threads
 --with-xml2-config=/usr/bin/xml2-config --with-png=/usr/ --with-wmsclient
 --with-wmsserver --with-wfs --with-wfsclient --with-gif=/usr/
 --with-geos=/usr/local/bin/geos-config --with-postgis*
 *
 *
 *I've got*
 -- Data Format Drivers ---
   PostGIS support:
   ArcSDE support:
   OGR support:   -DUSE_OGR
   GDAL support:  -DUSE_GDAL
   Oracle Spatial support:

 any idea?

 MartinOuellet

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] compiling mapserver error : can not find gd.lib

2012-08-31 Thread Sowmya Tiramdasu
Hi, 

 

  I am trying to compile mapserver from sources on windows 7 computer. I am
facing the following problem. Can anyone please guide me. 

 

I used the link given in the Mapserver manual to download the GD library
package (http://www.boutell.com/gd/http/gdwin32.zip.)

 

When I am trying to compile mapserver this is the error I am getting. When I
try to look for gd.lib I do not have it :(


-

LINK : fatal error LNK1181: cannot open input file
'C:\Projects\gdwin32\gd.lib'

NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio
10.0

\VC\BIN\link.EXE' : return code '0x49d'

Stop.




Where can I get gd.lib?

 

Thanks , 

Sowmya. 

___

Sowmya Tiramdasu

QCoherent Software

9668 Madison Blvd., Suite 202

Madison, AL 35758

(256) 461-8289 Telephone 

(256) 461-8249 Fax

 http://www.geocue.com/ www.geocue.com

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Compiling Mapserver 6.0.3 errors for Cairo Support

2012-07-24 Thread daz4805
Hi,

I am trying to compile a 6.0.3 version of Mapserver and I am getting issues
with Cairo support in the compilation process.

Please see the log below for what is generated from my nmake /f makefile.vc
command.

Please could somebody give me an idea of what might be wrong? 

Thanks,

Darren

http://osgeo-org.1560.n6.nabble.com/file/n4990439/compile_log.bmp 



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-6-0-3-errors-for-Cairo-Support-tp4990439.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Compiling Mapserver

2012-02-06 Thread Paul Maddock
Hi all,

When using the command ./configure for setting up mapserver-6.0.1 bash kicks 
out:

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

I've run...
sudo apt-get install build-essential
sudo apt-get install g++
sudo apt-get install libc6-dev
...and still no dice.

Any suggestions?

Many Thanks,
Paul Maddock
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling Mapserver

2012-02-06 Thread Alan Boudreault

Have you checked the config.log file?

On 12-02-06 05:41 PM, Paul Maddock wrote:

Hi all,

When using the command ./configure for setting up mapserver-6.0.1 bash
kicks out:

checking for gcc... gcc

checking for C compiler default output file name... configure: error: C
compiler cannot create executables

See `config.log' for more details.

I’ve run…

sudo apt-get install build-essential

sudo apt-get install g++

sudo apt-get install libc6-dev

…and still no dice.

Any suggestions?

Many Thanks,

Paul Maddock



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Alan Boudreault
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling Mapserver

2012-02-06 Thread Jeff Lake

um how about
gcc thats what its checking for ..
and you evidently haven't installed

-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com


On 2/6/2012 5:41 PM, Paul Maddock wrote:


Hi all,

When using the command ./configure for setting up mapserver-6.0.1 bash 
kicks out:


checking for gcc... gcc

checking for C compiler default output file name... configure: error: 
C compiler cannot create executables


See `config.log' for more details.

I've run...

sudo apt-get install build-essential

sudo apt-get install g++

sudo apt-get install libc6-dev

...and still no dice.

Any suggestions?

Many Thanks,

Paul Maddock



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Compiling Mapserver 6 ./configure problem with gif-lib

2011-07-06 Thread Gunnar Stroeer
Hi all,
 
I've a problem with compiling Mapserver on SLES11, I can't do a clean
configure command without getting errors, even I installed the giv-lib
devs.
 
The gif_lib.h is located in following folders:
 
find -name gif_lib.h
./usr/local/src/gdal-1.6.2/frmts/gif/libungif/gif_lib.h
./usr/src/debug/giflib-4.1.6/lib/gif_lib.h
 

My ./configure command for Mapserver 6.0.0 is:
 
./configure --with-gd --with-freetype --without-tiff
--with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config
--with-proj=/usr/local/src/proj-4.7.0 --with-zlib --with-jpeg
--with-png=/usr/ --with-curl-config=/usr/bin/curl-config --with-threads
--with-postgis --with-wfs --with-wcs --with-wmsclient --with-wfsclient
--with-php=/usr/include/php5/ --enable-debug
-with-agg=/usr/local/src/agg-2.5 --with-geos
--with-fastcgi=/usr/local/src/fcgi-2.4.0 --with-oraclespatial=yes
 
I've also tried adding --with-gif=/usr/src/ and variations without
success. The error is:

...
checking for /usr//include/png.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
configure: checking where GIF is installed...
checking for DGifOpenFileHandle in -lgif... no
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
configure: error: cannot find gif headers in system path
 

I'd appreciate any help for getting a solution.
 
Regards,
Gunnar
 
 
-
Gunnar Ströer
Administration Geodatenmanagement
 
Stadt Freiburg i. Br.
Stabsstelle Geodatenmanagement

Fehrenbachallee 12
79106 Freiburg i. Br.

Tel. +49 761/201-4031
Fax +49 761/201-4049
E-Mail: gunnar.stro...@stadt.freiburg.de

-

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] compiling Mapserver on Dev C++?

2010-08-30 Thread joel ml
hello all, I can compile mapserver using Dev C + + 4.9.9.2?, which 
steps should I take?. 

thanks in advance for the answers


  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Compiling MapServer

2009-06-23 Thread Fawcett, David
What is the latest advice for output image libraries when compiling
mapserv on unix?  

I remember an older conflict with libtiff and the tiff functionality in
GDAL.  

If one is going to include GDAL, does it make sense to add libtiff,
libgeotiff, or libjpeg, or is it better practice to just use GDAL to
read and write these formats?  

Pros?  Cons?  

Thanks, 

David.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling MapServer

2009-06-23 Thread Stephen Woodbridge

Fawcett, David wrote:

What is the latest advice for output image libraries when compiling
mapserv on unix?  


I remember an older conflict with libtiff and the tiff functionality in
GDAL.  


If one is going to include GDAL, does it make sense to add libtiff,
libgeotiff, or libjpeg, or is it better practice to just use GDAL to
read and write these formats?  

Pros?  Cons?  


Well I think Frank is the ultimate authority on this, but when I asked a 
similar question a while back because I ran into a bug or a problem, I 
was told that I should just use GDAL and that the mapserver native 
support was not being actively worked on. My recommendation to the 
steering committee at the time was to deprecate the native support if 
we were not going to maintain it, but I don't think that has gone anywhere.


So my practice to always build mapserver --without-tiff and if I need 
image support to build it with GDAL.


Works for me :)

-Steve W
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Compiling MapServer

2009-06-23 Thread Fawcett, David
Gregor and Steve, 

Do you do the same with libjpeg?  

David.

-Original Message-
From: Gregor at HostGIS [mailto:gre...@hostgis.com] 
Sent: Tuesday, June 23, 2009 10:43 AM
To: Fawcett, David
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Compiling MapServer


Don't use MapServer's built-in TIFF support; GDAL's is a lot nicer 
anyway. GDAL's even has BigTIFF if you build GDAL using its internal 
support for most formats, which is what I'd advise at that stage too.

-- 
HostGIS, Open Source solutions for the global GIS community Greg
Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling MapServer

2009-06-23 Thread Gregor at HostGIS
Don't use MapServer's built-in TIFF support; GDAL's is a lot nicer 
anyway. GDAL's even has BigTIFF if you build GDAL using its internal 
support for most formats, which is what I'd advise at that stage too.


--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling MapServer

2009-06-23 Thread Frank Warmerdam

Fawcett, David wrote:

What is the latest advice for output image libraries when compiling
mapserv on unix?  


I remember an older conflict with libtiff and the tiff functionality in
GDAL.  


If one is going to include GDAL, does it make sense to add libtiff,
libgeotiff, or libjpeg, or is it better practice to just use GDAL to
read and write these formats?  


David,

It is better to leave out direct use of libtiff, and just let GDAL do it.
Likewise for reading jpeg, and other image formats.  However, I have
noticed that mapserver-trunk now seems to depend on direct use of libpng
and libjpeg for generating these files (as opposed to going through GD).
So it may not be so easy to avoid libpng and libjpeg in builds.

I persume this is not yet an issue with the released versions.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling MapServer

2009-06-23 Thread Frank Warmerdam

Thomas Bonfort wrote:

Frank,

We already had a dependency on libpng and libjpg through GD (as gd
isn't statically linked against those). How can the direct dependency
be causing any more problems than the actual situation ?


Tomas,

Well, I believe now mapserver itself needs libjpeg and libpng include files
which was not necessarily the case before.  I also had a copy of GD on
win32 that apparently had libjpeg and libpng embedded, but on a recent
build discovered I needed also to provide real libjpeg and libpng
libraries to link MapServer.

I'm not saying it is a particularly serious issue, but it has already
thrown me for a loop.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Compiling MapServer

2009-06-23 Thread Fawcett, David
Perhaps libjpeg should be moved from the 'optional external libraries' to the 
'required external libraries' section page of the docs then?  
http://mapserver.org/installation/unix.html



-Original Message-
From: Thomas Bonfort [mailto:thomas.bonf...@camptocamp.com] 
Sent: Tuesday, June 23, 2009 10:59 AM
To: Frank Warmerdam
Cc: Fawcett, David; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Compiling MapServer


Frank,

We already had a dependency on libpng and libjpg through GD (as gd isn't 
statically linked against those). How can the direct dependency be causing any 
more problems than the actual situation ?

regards,
thomas

www.camptocamp.com
+33 4 79 26 57 97



On Tue, Jun 23, 2009 at 17:50, Frank Warmerdamwarmer...@pobox.com wrote:
 Fawcett, David wrote:

 What is the latest advice for output image libraries when compiling 
 mapserv on unix? I remember an older conflict with libtiff and the 
 tiff functionality in GDAL.
 If one is going to include GDAL, does it make sense to add libtiff,
 libgeotiff, or libjpeg, or is it better practice to just use GDAL to
 read and write these formats?

 David,

 It is better to leave out direct use of libtiff, and just let GDAL do 
 it. Likewise for reading jpeg, and other image formats.  However, I 
 have noticed that mapserver-trunk now seems to depend on direct use of 
 libpng and libjpeg for generating these files (as opposed to going 
 through GD). So it may not be so easy to avoid libpng and libjpeg in 
 builds.

 I persume this is not yet an issue with the released versions.

 Best regards,
 --
 ---+--
 ---+
 I set the clouds in motion - turn up   | Frank Warmerdam, 
 warmer...@pobox.com light and sound - activate the windows | 
 http://pobox.com/~warmerdam and watch the world go round - Rush    | 
 Geospatial Programmer for Rent

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Compiling mapserver with custom libtiff and libgeotiff

2009-06-22 Thread Pavel Iacovlev
Good day all,

Os: Ubuntu 8.04

I need bigtiff support in mapserver (default version in ubuntu 8.04
does not offer this).

Steps:

#libtiff
make
sudo make install

#libgeotiff
./configure --with-ld-shared=gcc -shared
make
sudo make install

#mapserver
./configure \
--prefix=/usr \
--with-pdf \
--with-freetype \
--with-agg \
--with-eppl \
--with-proj \
--with-threads \
--with-sde \
--with-geos \
--with-ogr \
--with-gdal \
--with-tiff=/usr/local \
--with-postgis \
--with-wfs \
--with-wcs \
--with-wmsclient \
--with-wfsclient \
--with-sos \
--with-fribidi-config \
--with-php=/usr/include/php5 \
--with-httpd=/usr/sbin/apache2 \
--with-gd
make

Error (on mapserver make)

gcc -c -O2 -fPIC -Wall   -DNEED_NONBLOCKING_STDERR   -DHAVE_VSNPRINTF
-DNEED_STRLCAT -DNEED_STRRSTR   -DNEED_NONBLOCKING_STDERR
-DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
-DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF
-DUSE_GDAL -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL
-DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include
-I/usr/include/agg2 -I/usr/include/freetype2   -I/usr/local/include
-I/usr/include/gdal -I/usr/include/postgresql -I/usr/include
-I/usr/include/libxml2  mapraster.c -o mapraster.o
mapraster.c: In function ‘readGEOTiff’:
mapraster.c:444: error: ‘TIFFDirEntry’ undeclared (first use in this function)
mapraster.c:444: error: (Each undeclared identifier is reported only once
mapraster.c:444: error: for each function it appears in.)
mapraster.c:444: error: expected ‘;’ before ‘tdir’
mapraster.c:453: warning: pointer targets in passing argument 1 of
‘TIFFSwabShort’ differ in signedness
mapraster.c:456: error: ‘tdir’ undeclared (first use in this function)
make: *** [mapraster.o] Error 1

Without --with-tiff=/usr/local compiles fine.

Any help would be appreciated.

-- 
http://iap.md, The future is open
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Compiling mapserver with custom libtiff and libgeotiff

2009-06-22 Thread Frank Warmerdam

Pavel Iacovlev wrote:

Good day all,

Os: Ubuntu 8.04

I need bigtiff support in mapserver (default version in ubuntu 8.04
does not offer this).

...

Without --with-tiff=/usr/local compiles fine.

Any help would be appreciated.


Pavel,

The built-in tiff support in mapserver does not appear to work with the
latest tiff library and it is not well maintained.  Normally you should
build GDAL with libtiff4 to get bigtiff support.  The internal libtiff
in GDAL includes this so building it --with-libtiff=internal
--with-libgeotiff=internal should do the trick.

Then you will need to rebuild MapServer to use your new local GDAL
build.

Best regards,

--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users