如何使用 MinGW 和 Sublime Text 3 构建 GLUS

How to build GLUS with MinGW and Sublime Text 3

我也有类似情况: Eclipse CPP and GNU following these instructions。但是我需要用 MinGW 和 sublime text 构建 GLUS。

我正在学习 C 和 OpenGL,所以我缺乏 compilation/dependencies 逻辑。 我只想简单的了解一下。

Glew 和 Glfw 已经正确配置并且工作正常。 谢谢你的时间。

好吧,Norbert Nopper 请直接回答我的问题。就像上面提到的答案一样。在没有任何 ide 的情况下编译 GLUS 的路径是使用 cmake。

in the GLUS folder, there is a CMake file (https://cmake.org/). With CMake, you can create the GLUS library without any IDE and for a lot of platforms – including Windows and MinGW.

是的,cmake 就是答案。

您通常会创建一个构建目录。在您的 git 存储库克隆中,您执行以下操作:

mkdir build
cd build
cmake ..
make