Page 1 of 1

Android Build Issue on OSX

Posted: Mon Oct 21, 2013 7:05 am
by jsding
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.

Re: Android Build Issue on OSX

Posted: Mon Oct 21, 2013 9:51 am
by jsding
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