tak0kadaの何でもノート

発声練習、生存確認用。

医学関連は 医学ノート

Boost.Beastのサンプルのビルド

Fedora33でBoost.Beastのサンプルを動かした。

Could NOT find Boost (missig: から始まるエラー、インクルードなどのパス周りで解決している人の記事ばかりヒットするのだけれど、こういう事例もあるという記録です。

git clone https://github.com/boostorg/beast.git

# ライブラリ
sudo dnf install boost boost-devel openssl openssl-devel cmake

# 以下をbeast/CMakeFiles.txtの適当な位置に追記
set(Boost_USE_STATIC_LIBS OFF)
# これがないと/usr/lib64以下のdynamic libraryをリンクせず、
# Could NOT find Boost (missig: coroutine, .... が出る

cmake -S . -B build/