ubuntu16.04 编译uWebSockets

udacity作业工程编译报错:

main.cpp:2:21: fatal error: uWS/uWS.h: 没有那个文件或目录”

是缺少工程所需的uWebSockets库,安装过程如下:

环境:Ubuntu16.04

cmake: 3.15.0

make: 4.1

gcc: 5.4.0

sudo apt-get install libuv1-dev
git clone https://github.com/uNetworking/uWebSockets.git

cd uWebSockets/
git log
git checkout  e94b6e1
mkdir build
cd build/
cmake ..
make
sudo make install

sudo ln -s /usr/lib64/libuWS.so  /usr/lib/libuWS.so

 

你可能感兴趣的:(uWebSockets,uWS.h,有用工具库)