ubuntu22.04LTS下编译glfw

环境准备

# 预装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

image

./triangle-opengles 

image

posted @ 2023-02-22 23:26  BuzzWeek  阅读(100)  评论(0编辑  收藏  举报