在 Macos xcode 中使用 GLFW 并显示:“'GLFW/glfw3.h' 文件未找到”

问题描述 投票:0回答:1

我已经将 glfw 文件添加到 xcode 库中,但仍然失败 “找不到...文件”,为什么?enter image description hereenter image description here 我该怎么办,glfw 是由 homebrew 下载的,该文件位于 /opt/homebrew/Cellar 中,我已将其添加到标头搜索路径的 Xcode 构建设置中 enter image description here

c++ xcode macos opengl glfw
1个回答
0
投票

从您显示的图像中,您应该输入

Header Search Paths

/opt/homebrew/Cellar/glfw/3.3.8/include
© www.soinside.com 2019 - 2024. All rights reserved.