[mapserver-users] Mapserver 6.4 error compilation

DamienZINS damien.zins at intitek.fr
Mon Mar 26 01:13:47 PDT 2018


Hi 
 
i want compile maprserver 6.4 on CentOS 7
the command is 
cmake -DCMAKE_INSTALL_PREFIX="/" -DCMAKE_PREFIX_PATH=""
-DINSTALL_LIB_DIR=/gldev/gcidev/install/lib:$gldev/gcidev/install/bin:gldev/gcidev/install/include:/usr:/gldev/gcitest/install/include/freetype2/freetype:/usr/include/
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE="debug" -DWITH_GEOS=OFF
-DWITH_FCGI=OFF -DWITH_FREETYPE=ON -DWITH_JPEG=ON -DWITH_CLIENT_WMS=OFF
-DWITH_CLIENT_WFS=OFF -DWITH_RSVG=OFF -DWITH_POSTGIS=OFF -DWITH_FRIBIDI=OFF
-DWITH_HARFBUZZ=OFF -DWITH_CAIRO=OFF -DWITH_GEOS=OFF -DWITH_CURL=OFF
-DWITH_SOS=OFF -DWITH_GIF=OFF -DWITH_EXEMPI=OFF -DWITH_ICONV=ON
-DWITH_GDAL=ON -DWITH_OGR=ON -DWITH_ORACLESPATIAL=ON -DWITH_PHP=ON
-DWITH_PROJ=ON >>${LOG_FILE}

In .log
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for strrstr
-*- Looking for strrstr - not found*
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strlcat
*-- Looking for strlcat - not found*
-- Looking for strlcpy
*-- Looking for strlcpy - not found*
-- Looking for strlen
-- Looking for strlen - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for lrintf
-- Looking for lrintf - found
-- Looking for lrint
-- Looking for lrint - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Performing Test HAVE_SYNC_FETCH_AND_ADD
-- Performing Test HAVE_SYNC_FETCH_AND_ADD - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.13")
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Freetype (missing:  FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR)
-- Could NOT find PROJ (missing:  PROJ_LIBRARY PROJ_INCLUDE_DIR)
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library:
-- Could NOT find ORACLE (missing:  ORACLE_LIBRARY ORACLE_INCLUDE_DIR)
-- Found GDAL: /usr/local/lib/libgdal.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
*--   * jpeg: JPEG_LIBRARY-NOTFOUND*
*--   * freetype: FREETYPE_LIBRARY-NOTFOUND*
--  * Optional components
--   * GDAL: /usr/local/lib/libgdal.so
--   * OGR: /usr/local/lib/libgdal.so
--   * GD: disabled
--   * GIF: disabled
--   * MYSQL: disabled
--   * FRIBIDI: disabled
--   * GIF: disabled
--   * CAIRO: disabled
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: disabled
--   * PROJ: disabled
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: disabled
--   * GEOS: disabled
--   * FastCGI: disabled
--   * Oracle Spatial: disabled
--   * SDE: disabled
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: disabled
--   * WFS SERVER: disabled
--   * WCS SERVER: disabled
--   * SOS SERVER: disabled
--   * WMS CLIENT: disabled
--   * WFS CLIENT: disabled
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: disabled
--   * PHP: ENABLED
--   * PERL: disabled
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * Apache Module (Experimental): disabled
--
-- Will install files to /
-- Will install libraries to //lib64
-- Configuring incomplete, errors occurred!
See also "/gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeOutput.log".
See also "/gldev/gcitest/src/mapserver-6.4.5/CMakeFiles/CMakeError.log".

in the directory gldev/gcitest/install/lib/ , i put the lib compiled 
[root at localhost lib64]# cd /gldev/gcitest/install/lib/
[root at localhost lib]# ll *.so
lrwxrwxrwx. 1 root root      17 21 févr. 17:19 libapr-1.so ->
libapr-1.so.0.6.2
lrwxrwxrwx. 1 root root      21 21 févr. 17:27 libaprutil-1.so ->
libaprutil-1.so.0.6.0
lrwxrwxrwx. 1 root root      19 21 févr. 16:21 libcharset.so ->
libcharset.so.1.0.0
lrwxrwxrwx. 1 root root      21 21 févr. 16:19 libfreetype.so ->
libfreetype.so.6.14.0
lrwxrwxrwx. 1 root root      17  4 mars  13:16 libgdal.so ->
libgdal.so.20.3.0
lrwxrwxrwx. 1 root root      14 21 févr. 16:22 libgd.so -> libgd.so.3.0.5
lrwxrwxrwx. 1 root root      17 21 févr. 16:21 libiconv.so ->
libiconv.so.2.6.0
lrwxrwxrwx. 1 root root      16 21 févr. 16:21 libjpeg.so ->
libjpeg.so.9.2.0
lrwxrwxrwx. 1 root root      19 21 févr. 17:28 libpcre2-8.so ->
libpcre2-8.so.0.6.0
lrwxrwxrwx. 1 root root      23 21 févr. 17:28 libpcre2-posix.so ->
libpcre2-posix.so.2.0.0
lrwxrwxrwx. 1 root root      19 22 févr. 10:38 libpcrecpp.so ->
libpcrecpp.so.0.0.1
lrwxrwxrwx. 1 root root      21 22 févr. 10:38 libpcreposix.so ->
libpcreposix.so.0.0.5
lrwxrwxrwx. 1 root root      16 22 févr. 10:38 libpcre.so ->
libpcre.so.1.2.9
lrwxrwxrwx. 1 root root      19 21 févr. 16:20 libpng16.so ->
libpng16.so.16.32.0
lrwxrwxrwx. 1 root root      11 21 févr. 16:20 libpng.so -> libpng16.so
lrwxrwxrwx. 1 root root      17 21 févr. 16:20 libproj.so ->
libproj.so.12.0.0
lrwxrwxrwx. 1 root root      14 21 févr. 16:19 libz.so -> libz.so.1.2.11
-rw-r--r--. 1 root root 1393528 21 févr. 16:21 preloadable_libiconv.so


my questions are : 

1) in which library are the function strrstr strlcpy strlcat

2) I put the option -DINSTALL_LIB_DIR= of cmake with the directory of my lib
and include files
but these files are not found , see freetype jpeg proj and oracle
Is this option false ? 


thanks 




--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html



More information about the MapServer-users mailing list