更新时间:2023-09-26 18:51:04
您需要使用选项 -I/opt/X11/include 进行编译,并使用选项 -L/进行链接opt/X11/lib -lGL -lX11 .
-I/opt/X11/include
-L/进行链接opt/X11/lib -lGL -lX11
You need to compile with the option -I/opt/X11/include and link with the options -L/opt/X11/lib -lGL -lX11.
-L/opt/X11/lib -lGL -lX11
安装Xquartz后在Mac上找不到致命错误'GL/glx.h'文件