[mapserver-users] Compiling RSVG in 7.2

public at postholer.com public at postholer.com
Wed Aug 22 09:47:36 PDT 2018


Greetings,

I'm trying to compile 7.2 with RSVG support with zero luck. Can someone point out my mistake? OS is CentOS 6.5.
Here's all the relevant info:

cmake output. cmake command and full response is at the bottom:

-- Could NOT find GOBJECT (missing:  GOBJECT_INCLUDE_DIR)
CMake Error at CMakeLists.txt:69 (message):
  RSVG library/component/dependency could not be found.

    HINTS:
    - disable RSVG support by adding -DWITH_RSVG=0
    - add the RSVG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/RSVG-install-dir;/path/to/other/dirs"
Call Stack (most recent call first):
  CMakeLists.txt:630 (report_optional_not_found)


Here's my librsvg-2 install:
/usr/bin/rsvg
/usr/bin/rsvg-convert
/usr/bin/rsvg-view
/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/svg_loader.so
/usr/lib64/gtk-2.0/2.10.0/engines/libsvg.so
/usr/lib64/librsvg-2.so.2
/usr/lib64/librsvg-2.so.2.26.0
/usr/share/doc/librsvg2-2.26.0
/usr/share/doc/librsvg2-2.26.0/AUTHORS
/usr/share/doc/librsvg2-2.26.0/COPYING
/usr/share/doc/librsvg2-2.26.0/COPYING.LIB
/usr/share/doc/librsvg2-2.26.0/NEWS
/usr/share/doc/librsvg2-2.26.0/README
/usr/share/man/man1/rsvg.1.gz

...and librsvg-2-devel install:
/usr/include/librsvg-2
/usr/include/librsvg-2/librsvg
/usr/include/librsvg-2/librsvg/librsvg-enum-types.h
/usr/include/librsvg-2/librsvg/librsvg-features.h
/usr/include/librsvg-2/librsvg/rsvg-cairo.h
/usr/include/librsvg-2/librsvg/rsvg.h
/usr/lib64/librsvg-2.so
/usr/lib64/pkgconfig/librsvg-2.0.pc
/usr/share/gtk-doc/html/rsvg
/usr/share/gtk-doc/html/rsvg/home.png
/usr/share/gtk-doc/html/rsvg/index.html
/usr/share/gtk-doc/html/rsvg/index.sgml
/usr/share/gtk-doc/html/rsvg/ix01.html
/usr/share/gtk-doc/html/rsvg/left.png
/usr/share/gtk-doc/html/rsvg/pt02.html
/usr/share/gtk-doc/html/rsvg/pt03.html
/usr/share/gtk-doc/html/rsvg/pt04.html
/usr/share/gtk-doc/html/rsvg/right.png
/usr/share/gtk-doc/html/rsvg/rsvg-Cairo.html
/usr/share/gtk-doc/html/rsvg/rsvg-Core-API.html
/usr/share/gtk-doc/html/rsvg/rsvg-GdkPixbuf.html
/usr/share/gtk-doc/html/rsvg/rsvg.devhelp
/usr/share/gtk-doc/html/rsvg/rsvg.devhelp2
/usr/share/gtk-doc/html/rsvg/rsvg.html
/usr/share/gtk-doc/html/rsvg/style.css
/usr/share/gtk-doc/html/rsvg/up.png

...and cmake command:
cmake \
   -DCMAKE_PREFIX_PATH="/usr/lib64;/usr/include/librsvg-2" \
   -DWITH_SVGCAIRO=0 \
   -DWITH_CAIRO=1 \
   -DWITH_RSVG=1 \
   -DWITH_FRIBIDI=0 \
   -DWITH_HARFBUZZ=0 \
   -DWITH_CURL=1 \
   -DWITH_KML=1 \
   -DWITH_GIF=0 \
   -DWITH_POSTGIS=1 \
   -DWITH_MYSQL=1 \
   -DWITH_PERL=1 \
   -DWITH_PHP=1 \
   -DWITH_PROTOBUFC=0 \
   ..

Result:
-- Could NOT find GOBJECT (missing:  GOBJECT_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:69 (message):
  RSVG library/component/dependency could not be found.

    HINTS:
    - disable RSVG support by adding -DWITH_RSVG=0
    - add the RSVG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/RSVG-install-dir;/path/to/other/dirs"
Call Stack (most recent call first):
  CMakeLists.txt:630 (report_optional_not_found)


-- /usr/include/php/main
-- Found PHP5-Version 5.3.3 (using /usr/bin/php-config)
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
--   * jpeg: /usr/lib64/libjpeg.so
--   * freetype: /usr/lib64/libfreetype.so
--  * Optional components
--   * GDAL: /usr/local/lib/libgdal.so
--   * OGR: /usr/local/lib/libgdal.so
--   * GIF: disabled
--   * MYSQL: /usr/lib64/mysql/libmysqlclient.so
--   * FRIBIDI: disabled
--   * HARFBUZZ: disabled
--   * GIF: disabled
--   * CAIRO: /usr/lib64/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: /usr/lib64/libcurl.so
--   * PROJ: /usr/lib64/libproj.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: /usr/pgsql-9.4/lib/libpq.so
--   * GEOS: /usr/lib64/libgeos_c.so
--   * FastCGI: /usr/lib64/libfcgi.so
--   * PROTOBUFC: disabled
--   * Oracle Spatial: disabled
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: disabled
--   * WMS CLIENT: disabled
--   * WFS CLIENT: disabled
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: ENABLED
--   * Z+M point coordinate support: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: disabled
--   * PHP: ENABLED
--   * PERL: ENABLED
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
-- 
-- Will install files to /usr/local
-- Will install libraries to /usr/local/lib
-- Configuring incomplete, errors occurred!
See also "/home/maps/mapserver-7.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/maps/mapserver-7.2.0/build/CMakeFiles/CMakeError.log".


More information about the mapserver-users mailing list