<div dir="ltr"><div>Hi all,<br>I am trying to compile <b>Mapserver</b> on <b>Ubuntu 20.04</b>.<br><br>I have the following cmake version:<br><b>cmake version 3.16.3</b><br><br>I have a problem during the cmake phase that is reported to be caused by ProtobufC<br>Here is the package I think should be installed:<br>$ <b>sudo apt-get install libprotobuf-dev</b><br>Reading package lists... Done<br>Building dependency tree <br>Reading state information... Done<br><b>libprotobuf-dev is already the newest version</b> (3.6.1.3-2ubuntu5).<br>libprotobuf-dev set to manually installed.<br>0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.<br>$<br></div><div><br></div><div>I made no changes to the CMakeLists.txt coming with the distribution,</div><div>but WITH_PYTHON and WITH_JAVA options.<br></div><div><br></div><div>Below is the result from the cmake command.</div><div>Please can someone drive me on what is wrong?</div><div><br></div>Thank you,<div>Francesco<br></div><div></div><div>--------------------------------------</div><div>$ cmake ..<br>-- Requiring C++11<br>-- Requiring C++11 - done<br>-- Requiring C99<br>-- Requiring C99 - done<br>-- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY PROTOBUFC_COMPILER PROTOBUFC_INCLUDE_DIR) <br>CMake Error at CMakeLists.txt:91 (message):<br> PROTOBUFC library/component/dependency could not be found.<br><br> HINTS:<br> - disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0<br>
- add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH
variable
(-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs"<br>Call Stack (most recent call first):<br> CMakeLists.txt:312 (report_optional_not_found)<br><br><br>-- Found Proj 6.3<br>-- Could NOT find PY_setuptools (missing: PY_SETUPTOOLS) <br>-- CMake Version: 3.16<br>-- Build Type: <br>-- Python MapScript output directory: /home/francesco/Software/Mapserver/mapserver-7.6.4/build/mapscript/python<br>-- Python Executable: /usr/bin/python<br>-- Python site packages: /usr/lib/python2.7/dist-packages<br>-- * Summary of configured options for this build<br>-- * Mandatory components<br>-- * GDAL: /usr/lib/libgdal.so<br>-- * PROJ: /usr/lib/x86_64-linux-gnu/libproj.so<br>-- * png: /usr/lib/x86_64-linux-gnu/libpng.so<br>-- * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so<br>-- * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so<br>-- * Optional components<br>-- * GIF: /usr/lib/x86_64-linux-gnu/libgif.so<br>-- * MYSQL: disabled<br>-- * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so<br>-- * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so<br>-- * GIF: /usr/lib/x86_64-linux-gnu/libgif.so<br>-- * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so<br>-- * SVGCAIRO: disabled<br>-- * RSVG: disabled<br>-- * CURL: disabled<br>-- * PIXMAN: disabled<br>-- * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so<br>-- * POSTGIS: /usr/lib/x86_64-linux-gnu/libpq.so<br>-- * GEOS: /usr/lib/x86_64-linux-gnu/libgeos_c.so<br>-- * FastCGI: /usr/lib/x86_64-linux-gnu/libfcgi.so<br>-- * PROTOBUFC: disabled<br>-- * Oracle Spatial: disabled<br>-- * Exempi XMP: disabled<br>-- * Optional features<br>-- * WMS SERVER: ENABLED<br>-- * WFS SERVER: ENABLED<br>-- * WCS SERVER: ENABLED<br>-- * SOS SERVER: disabled<br>-- * WMS CLIENT: disabled<br>-- * WFS CLIENT: disabled<br>-- * ICONV: ENABLED<br>-- * Thread-safety support: disabled<br>-- * KML output: disabled<br>-- * Z+M point coordinate support: ENABLED<br>-- * XML Mapfile support: disabled<br>-- * Mapscripts<br>-- * Python: ENABLED<br>-- * PHP: disabled<br>-- * PHPNG: disabled<br>-- * PERL: disabled<br>-- * RUBY: disabled<br>-- * JAVA: ENABLED<br>-- * C#: disabled<br>-- * V8 Javascript: disabled<br>-- * Apache Module (Experimental): disabled<br>-- <br>-- PROJECT_BINARY_DIR is set to /home/francesco/Software/Mapserver/mapserver-7.6.4/build<br>-- Will install files to /usr/local<br>-- Will install libraries to /usr/local/lib<br>-- Configuring incomplete, errors occurred!<br>See also "/home/francesco/Software/Mapserver/mapserver-7.6.4/build/CMakeFiles/CMakeOutput.log".<br>See also "/home/francesco/Software/Mapserver/mapserver-7.6.4/build/CMakeFiles/CMakeError.log".<br>$<br><br><br></div></div>