Skip to content

OpenSSL compilation

Stefania Pedrazzi edited this page May 4, 2022 · 5 revisions

This page explains how to recompile the openSSL dependency on every platforms. OpenSSL is an open-source library for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. OpenSSL is not used by Webots but it is an optional dependency used to verify the distribution package.

Download openssl-1.0.2.tar.gz from https://www.openssl.org/source/ into ~/software.

On Ubuntu 20.04 and 22.04 download version openssl-1.1.1.tar.gz or use directly the libcrypto and libssl system libraries from Ubuntu 20.04.

cd software
tar -zxvf openssl-1.0.2.tar.gz
cd openssl-1.0.2

#if MAC
./Configure shared darwin64-x86_64-cc
#else
./config shared
#endif

make depend
make -j X

Create the precompiled package:

cd ~/software
tar -cvjf openssl-1.0.2-precompiled.tar.bz2 openssl-1.0.2
Clone this wiki locally