Android Build Issue on OSX

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
jsding
Greenskin
Posts: 105
Joined: Tue Dec 14, 2010 9:46 am
Contact:

Android Build Issue on OSX

Post by jsding » Mon Oct 21, 2013 7:05 am

Hi,

I try to build android with cmake, but the following error occurs:

Code: Select all

/users/koyuki/projects/playstrap/RenderSystems/GLES2/src/gles2w.cpp:31:9: fatal error: 
      'UIKit/UIDevice.h' file not found
#import <UIKit/UIDevice.h>

Code: Select all

#elif defined(__APPLE__) || defined(__APPLE_CC__)
#import <CoreFoundation/CoreFoundation.h>
#import <UIKit/UIDevice.h>
How to solve this? thanks.
0 x

jsding
Greenskin
Posts: 105
Joined: Tue Dec 14, 2010 9:46 am
Contact:

Re: Android Build Issue on OSX

Post by jsding » Mon Oct 21, 2013 9:51 am

Hi,

I modified my cmake command:

Code: Select all

cmake CMAKE_TOOLCHAIN_FILE=../CMake/toolchain/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=9  ..
the error is :

Code: Select all

OgreMain/src/Android/OgreAndroidLogListener.cpp:2:10: fatal error: 
      'android/log.h' file not found
#include <android/log.h>
The program works well before I upgrade to OGRE 1.9 RC2.

Thanks
0 x

Post Reply