cryptopp

Download sources

$ curl -LO https://cryptopp.com/cryptopp890.zip

Build

Release

Toolchains for building:

  • Apple clang version 14.0.0 (clang-1400.0.29.202)

  • GNU Make 3.81

  • cmake version 3.30.3

$ unzip -d ~/workspace/devel/cryptopp890-x86_64-darwin-release cryptopp890.zip
$ cd ~/workspace/devel/cryptopp890-x86_64-darwin-release
$ make -j all
$ make install PREFIX=~

Do this to fix dylib id if you do not want to install:

$ install_name_tool -id $(pwd)/libcryptopp.dylib libcryptopp.dylib

Tip

To uninstall:

$ make uninstall PREFIX=~

Show the version:

$ cryptest.exe V
8.9.0

Note

It is strange to have .exe suffix executable on macOS.

Debug

Toolchains for building:

  • Apple clang version 14.0.0 (clang-1400.0.29.202)

  • GNU Make 3.81

  • cmake version 3.30.3

$ unzip -d ~/workspace/devel/cryptopp890-x86_64-darwin-debug cryptopp890.zip
$ cd ~/workspace/devel/cryptopp890-x86_64-darwin-debug
$ export CXXFLAGS="${CXXFLAGS} -DDEBUG -g -O0"
$ make -j all
$ make install PREFIX=~/workspace/devel

To uninstall:

$ make uninstall PREFIX=~/workspace/devel