1. 安装xcode

2. 安装cmake

3. git clone https://github.com/glfw/glfw.git

4. cd <glfw_dir>; mkdir build; cd build

5. cmake ..

6. cmake -C cmake**install.cmake

7. cd <test_dir>; cp <glfw_dir>/examples/simple.c .

8. cc -o simple simple.c -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo

相关文章:

  • 2021-11-02
  • 2021-11-02
  • 2019-06-16
  • 2021-12-12
  • 2021-09-20
  • 2021-12-13
  • 2021-11-19
  • 2021-12-12
猜你喜欢
  • 2021-11-08
  • 2021-11-09
  • 2021-12-10
  • 2018-07-05
  • 2021-11-19
  • 2019-08-24
  • 2021-09-28
相关资源
相似解决方案