1、获取代码
git clone https://gitee.com/chenyu721/libwebsockets.git
2、进入目录,并创建文件夹
cd libwebsockets
mkdir build
3、安装cmake
sudo apt-get install cmake
4、安装openssl
sudo apt-get install openssl
sudo apt-get install libssl-dev
5、安装编译器
sudo apt install build-essential
6、生成makefile
cmake ..
7、编译libwebsockets及安装
make -j8
make install
完毕!