Context
I am trying to use the OpenPGP C++ library on a MacOS machine.
Issue
I am following the instruction to build the library:
mkdir build
cd build
cmake ..
make
<make test>
make install
I manage to run the cmake
. When passing to the step of make
it returns an error:
[...]
[ 54%] Linking CXX shared library libOpenPGP.dylib
ld: library not found for -lgmpxx
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libOpenPGP.dylib] Error 1
make[1]: *** [CMakeFiles/OpenPGP_shared.dir/all] Error 2
make: *** [all] Error 2
What I tried
After reading online I found that could have been an issue of not properly run the cmake
command.
- I re-runned the
cmake
command (deleting the build folder content first) - I re-cloned the repository