Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Errors getting IOS to work

This thread is locked; no one can reply to it. rss feed Print
Errors getting IOS to work
devastat0r
Member #16,561
September 2016

When trying to build for IOS on OSX via the command-line I'm getting the following error:

In file included from /Users/john/Documents/Git/allegro/allegro/include/allegro5/allegro.h:73:
/Users/john/Documents/Git/allegro/allegro/include/allegro5/platform/alosx.h:37:12: fatal error: 'AppKit/AppKit.h' file not found
#import <AppKit/AppKit.h>

I'm building via the commands given in the README_iphone.txt from Git (just cloned from master last night):

(Simulator)

cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-iphone.cmake -G Xcode \
-DIOS_PLATFORM="iphonesimulator" ..
xcodebuild

(IOS)

cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-iphone.cmake -G Xcode \
-DIOS_PLATFORM="iphoneos" -DWANT_EXAMPLES=off -DWANT_DEMO=off -DWANT_TESTS=off ..
xcodebuild

I'm aware that AppKit is for OSX and UIKit is for IOS, but why is it trying to pull from OSX?

I also tried the XCode project, it starts with giving me errors like: "OpenGL/OpenGL.h" not found in allegro_opengl.h. I'm basically getting OpenGL errors all over the place, I tried manually symlinking files into /usr/local/include/(GL | OpenGL) to the OpenGL headers on my system and it failed.

Go to: