GLEW:Apple Mach-O 链接器 (Id) 错误

发布于 2024-12-29 16:15:41 字数 350 浏览 4 评论 0原文

我正在尝试在 Xcode 项目中使用 glew,但收到以下消息: Apple Mach-O Linker (Id) Error...Undefined Symbols for Architecture x86_64

我正在使用当前版本我从他们的sourceforge 网站下载了glew。

Xcode 错误:Apple Mach-O 链接器 (Id) 错误架构 x86_64 的未定义符号

I'm trying to use glew in my Xcode project, but I'm getting this: Apple Mach-O Linker (Id) Error... Undefined symbols for architecture x86_64

I'm using the current version of glew that I downloaded from their sourceforge site.

Xcode error: Apple Mach-O Linker (Id) Error Undefined symbols for architecture x86_64

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

李不 2025-01-05 16:15:41

这就是我所做的:

通过 MacPorts 安装 Glew。 (在终端中运行命令 sudo port install glew

在 Xcode 项目的构建设置中添加以下内容:

  • 其他链接器标志:-lGLEW
  • 标头搜索路径:/opt /local/include/
  • 库搜索路径:/opt/local/lib/

Here's what I did:

Install Glew via MacPorts. (in terminal run the command sudo port install glew)

In the Xcode project's build settings add the following:

  • other linker flags: -lGLEW
  • header search paths: /opt/local/include/
  • library search paths: /opt/local/lib/
短暂陪伴 2025-01-05 16:15:41

您没有链接到 GLEW 库。您可能需要将安装 GLES 的目录添加到 Xcode 项目的“库搜索路径”设置中。

You aren't linking with the GLEW library. You will probably have to add the directory, you installed GLES into, it to the 'library search path' settings of the Xcode project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文