brew install glew 没有解决我的 <GL/glew.h>依赖问题
brew install glew did not resolve my <GL/glew.h> dependency issues
我在Macintosh上使用终端。
要编译的命令是基本的:
g++ -c String.cpp -o String.o
g++ -c FileIO.cpp -o FileIO.o
g++ -c AffineTransforms.cpp -o AffineTransforms.o
g++ -c Node.cpp -o Node.o
g++ -c Vertex.cpp -o Vertex.o
g++ -c BasicObject.cpp -o BasicObject.o
g++ -c Picture.cpp -o Picture.o
g++ -c Window.cpp -o Window.o
Window.cpp:1:10: fatal error: 'GL/glew.h' file not found
#include <GL/glew.h>
^
1 error generated.
我按照建议使用了brew install glew
,问题没有解决。
你应该包括:
#include <glew.h>
相关文章:
- EASTL矢量<向量<int>>连续的
- GLEW/GLUT:调用init并创建一个窗口后,取消初始化并重新初始化?
- 为什么需要检查 GLAD 或 GLEW 是否正确初始化?
- 现代OpenGL和GLEW Libraray的编译错误
- 使用 CMake 和 Visual Studio 2019 编译 GLEW?
- 使用 MinGW 在 Windows 上构建 GLEW 时遇到问题
- 无法链接 GLEW 库
- 将源中的 GLEW 与 cmake 静态链接
- OpenGL/Glew C++纹理不适用
- GLEW 未在 MSYS2 上定位 OpenGL 函数
- 在macOS上编译GLEW和GLUT?
- 致命错误 C1083:无法打开包含文件:"GL/glew.h":没有此类文件或目录
- 使用 glew 和 mingw 时未定义的引用?
- 三角形未绘制.C++/GLEW/SDL.
- OpenGL在使用GLEW时崩溃
- 将 glew 与 SDL2 一起使用
- C - 创建矢量&lt; vector&lt; double&gt;&gt;矩阵具有分配而不是inizializ
- C 字符串比较“祝您好运”&gt;“再见”
- 将 GLEW 添加到项目 (CMake)
- 未解析的外部符号 glew实验性