ubuntu编译glfw3
下载代码:
cd ~/work
git clone https://gitee.com/aczz/glfw
cd glfw
安装依赖:
sudo apt install libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
执行构建:
build/linux.sh
:
#!/bin/bash
BUILD_DIR=linux
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake ../.. -DCMAKE_INSTALL_PREFIX=/home/zz/lib/glfw/3.3 -DCMAKE_BUILD_TYPE=Release
make
make install
cd ..
Greatness is never a given, it must be earned.