In order to build just liboqs (dynamic library), invoke
./build_liboqs_ubuntu.sh
on Ubuntu./build_liboqs_macos.sh
on macOSbuild_liboqs_win_x86_64.bat
on Windows
Building pure liboqs is useful for Java applications that can invoke open-quantum-safe algorithms via Java mappings.
In order to build HAProxy, we need also OpenSSL (currently, the scripts rely on OpenSSL 1.1.1). The scripts take OpenSSL sources and compile it with static liboqs. Then HAProxy, which relies on OpenSSL, is compiled.
Invoke:
./build_haproxy_1_1_1_ubuntu_x86_64.sh
Notice that the build process needs a lot of RAM. If you do not have enough RAM, use /swapfile.
Install these packages as prerequisites: git,perl,cmake,make,gcc-core,ninja,libtool,openssl,libssl-devel
.
Then invoke:
./_build_haproxy_1_1_1_common.sh build /opt/oqs /opt/oqs \
TARGET=generic USE_OPENSSL=1
On Windows, the build process relies on Cygwin64. Just launch the script, which will do all the job:
build_haproxy_1_1_1_win_x86_64.bat
In particular, the script downloads and installs Cygwin64 with the required build tools.
If you wish to manually install additional Cygwin64 programs (such as mc
and dos2unix
), use the following command:
cygwin_installer\setup-x86_64.exe -q --wait -P mc,dos2unix