HTTPS Server based on https://github.com/yhirose/cpp-httplib
tar xzvf openssl-3.0.0.tar.gz
cd openssl-3.0.0
mkdir build
cd build
../Configure --prefix=/home/greatwall/work/dragon_server/lib/openssl/openssl_dynamic_3.0.0
make -j8
make test
make install
cpp-httplib depend on openssl (version >=3.0.0) shared library, NOT static library you should add custom openssl lib position as following:
openssl_dep = meson.get_compiler('cpp').find_library(
'ssl',
dirs : join_paths(meson.source_root(),'lib/openssl/openssl_share_3.0.0/lib'),
version:'>=3.0.0',
required:get_option('cpp-httplib_openssl')
)
cpp-httplib can't found libcrypto.so shared library (version >=3.0.0), you should add it as following in meson.build file
crypto_dep = meson.get_compiler('cpp').find_library(
'crypto',
dirs : join_paths(meson.source_root(),'lib/openssl/openssl_share_3.0.0/lib'),
version:'>=3.0.0',
required:get_option('cpp-httplib_openssl')
)