brew install glew 没有解决我的 <GL/glew.h>依赖问题

brew install glew did not resolve my <GL/glew.h> dependency issues

本文关键字:glew gt 依赖 问题 GL install 解决 我的 brew lt      更新时间:2023-10-16

我在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>