Compiling a shared library

Dear Community!

Concerning a topic that deals with the compilation of a program written in C++ i would like to ask for your support.

Just for information at the beginning: I am a beginner in C++ programming. Most of the things I do in Python, Java and PHP.

However, for writing the master thesis, I have to deal with an open source software where the relevant part is written in C++ where i have to modify one part and now have to compile the folder where the source files are located to a shared library (.so)

The source code is from https://github.com/qgis/QGIS

The file i modified was https://github.com/qgis/QGIS/blob/master/src/analysis/raster/qgskde.cpp

(In the installed version of QGIS, the folder analysis appears just as _analysis.so)

I am working on a MacBook using MacOS 10.15.4 and a Raspberry Pi using Raspbian and have CMake Version 3.4 installed.

The CMakeLists.txt File i try to compile using the command "cmake . --debug-output" (having directed to the directory "..../QGIS-master/src/analysis/" before) is

https://github.com/qgis/QGIS/blob/master/src/analysis/CMakeLists.txt

where i added

cmake_minimum_required(VERSION 3.4.0)

in Line 4.

The output i get when executing the command described above is:

Running with debug output on.
CMake Error at CMakeLists.txt:390 (find_package):
By not providing "FindEXIV2.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "EXIV2", but
CMake did not find one.

Could not find a package configuration file provided by "EXIV2" with any of
the following names:

EXIV2Config.cmake
exiv2-config.cmake

Add the installation prefix of "EXIV2" to CMAKE_PREFIX_PATH or set
"EXIV2_DIR" to a directory containing one of the above files. If "EXIV2"
provides a separate development package or SDK, be sure it has been
installed.


Called from: [1] /home/pi/QGIS-master/src/analysis/CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/home/pi/QGIS-master/src/analysis/CMakeFiles/CMakeOutput.log".

After several attempts of trying to solve this problem using google i don't get any further.

Can someone give my advice on how i proceed here?
Thanks for any help in advance.

Best regards!

Topic archived. No new replies allowed.