c++ - 在 os x 10.9.4 上安装 allegro 4?

标签 c++ osx-mavericks allegro

我正在尝试在 os x 10.9.4 上安装 allegro 4.4.2。每当我尝试在终端中运行 make 命令来编译 allegro 时,我都会遇到这两个错误。

/Users/*********/Downloads/allegro/include/allegro/platform/aintosx.h:85:25: error: cannot find interface declaration for 'NSQuickDrawView', superclass of >'AllegroView' @interface AllegroView: NSQuickDrawView

~~~~~~~~~~~~~~~~~~~~~~ ^ /Users/*********/Downloads/allegro/include/allegro/platform/aintosx.h:176:8: error: unknown type name 'CGDirectPaletteRef' AL_VAR(CGDirectPaletteRef, >osx_palette);

^

最佳答案

NSQuickDrawView 允许您在 Cocoa-native NSView 中使用 Carbon QuickDraw 函数——即从 1984 年继承的那些函数。

此 View 在 64 位目标上永远不可用,因为 Carbon 在 64 位目标上永远不可用。

除其他外,10.9.4 仅支持 64 位目标。因此它不提供 NSQuickDrawView。 Allegro 4.4.2 等过时的库无法在 10.9.4 上构建。

关于c++ - 在 os x 10.9.4 上安装 allegro 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29932979/

相关文章:

c++ - 多文件游戏中的枚举

c++ - libiconv - iconv_open() 默认行为?

c++ - 在屏幕上用 SFML 编写文本输入

gcc - Ansible安装-clang : error: unknown argument: '-mno-fused-madd'

c++ - 如何使用 OS X API 定位应用程序首选项文件夹?

c++ - 在其他计算机上运行 Allegro 5

c++ - 使用他们的包在 Dev-C++ 中安装 Allegro

c++ - vswprintf 在 Mac OS X 下对某些 unicode 代码点失败

c++ - 如何将数据存储在大型二维数组中

eclipse - 不要使用 GoClipse 制作二进制文件