环境准备
# 预装cmake
sudo apt install cmake
# 下载源码
git clone https://github.com/glfw/glfw.git
编译
# cmake初始配置,生成编译文件
cd glfw
cmake -S . -B build
# 编译
cd build
make
运行默认示例
cd example
./splitview
./triangle-opengles
标签:LTS,git,cmake,ubuntu22.04,cd,编译,glfw
From: https://www.cnblogs.com/BuzzWeek/p/17146416.html