我正在尝试在 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/