[mapserver-dev] Issue on installing Mapserver 7.6.4 on Ubuntu 20.04: ProtobufC

Francesco Martinelli francesco.martinelli at ingv.it
Tue Jan 18 07:09:25 PST 2022


Hi all,
I am trying to compile *Mapserver* on *Ubuntu 20.04*.

I have the following cmake version:
*cmake version 3.16.3*

I have a problem during the cmake phase that is reported to be caused by
ProtobufC
Here is the package I think should be installed:
$ *sudo apt-get install libprotobuf-dev*
Reading package lists... Done
Building dependency tree
Reading state information... Done
*libprotobuf-dev is already the newest version* (3.6.1.3-2ubuntu5).
libprotobuf-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$

I made no changes to the CMakeLists.txt coming with the distribution,
but WITH_PYTHON and WITH_JAVA options.

Below is the result from the cmake command.
Please can someone drive me on what is wrong?

Thank you,
Francesco
--------------------------------------
$ cmake ..
-- Requiring C++11
-- Requiring C++11 - done
-- Requiring C99
-- Requiring C99 - done
-- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY PROTOBUFC_COMPILER
PROTOBUFC_INCLUDE_DIR)
CMake Error at CMakeLists.txt:91 (message):
PROTOBUFC library/component/dependency could not be found.

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


-- Found Proj 6.3
-- Could NOT find PY_setuptools (missing: PY_SETUPTOOLS)
-- CMake Version: 3.16
-- Build Type:
-- Python MapScript output directory:
/home/francesco/Software/Mapserver/mapserver-7.6.4/build/mapscript/python
-- Python Executable: /usr/bin/python
-- Python site packages: /usr/lib/python2.7/dist-packages
-- * Summary of configured options for this build
-- * Mandatory components
-- * GDAL: /usr/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: disabled
-- * 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: 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: disabled
-- * Z+M point coordinate support: ENABLED
-- * XML Mapfile support: disabled
-- * Mapscripts
-- * Python: ENABLED
-- * PHP: disabled
-- * PHPNG: disabled
-- * PERL: disabled
-- * RUBY: disabled
-- * JAVA: ENABLED
-- * C#: disabled
-- * V8 Javascript: disabled
-- * Apache Module (Experimental): disabled
-- 
-- PROJECT_BINARY_DIR is set to
/home/francesco/Software/Mapserver/mapserver-7.6.4/build
-- Will install files to /usr/local
-- Will install libraries to /usr/local/lib
-- Configuring incomplete, errors occurred!
See also
"/home/francesco/Software/Mapserver/mapserver-7.6.4/build/CMakeFiles/CMakeOutput.log".
See also
"/home/francesco/Software/Mapserver/mapserver-7.6.4/build/CMakeFiles/CMakeError.log".
$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20220118/0f74fb23/attachment.html>


More information about the MapServer-dev mailing list