Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android/asset_manager.h not found when compiling for android #273

Closed
kewp opened this issue May 1, 2017 · 7 comments
Closed

android/asset_manager.h not found when compiling for android #273

kewp opened this issue May 1, 2017 · 7 comments

Comments

@kewp
Copy link

kewp commented May 1, 2017

C:\raylib\raylib\src\android>%ANDROID_NDK_ROOT%\ndk-build
[armeabi] Compile thumb : raylib <= core.c
In file included from jni/../../rlgl.h:53:0,
from jni/../../core.c:46:
jni/../../utils.h:31:75: fatal error: android/asset_manager.h: No such file or directory
#include <android/asset_manager.h> // Required for: AAssetManager
^
compilation terminated.
make.exe: *** [obj/local/armeabi/objs/raylib///core.o] Error 1

ANDROID_NDK_ROOT = C:\Users\Karl\Downloads\android-ndk-r10e

@kewp
Copy link
Author

kewp commented May 1, 2017

Problem solved: You need at least r11 of the ndk.

Should update the docs, which give a link to r10e ! https://github.com/raysan5/raylib/wiki/Compile-for-Android

@kewp
Copy link
Author

kewp commented May 1, 2017

Now I'm getting various compile errors.

[arm64-v8a] Compile : raylib <= audio.c
jni/../../audio.c:197:6: error: conflicting types for 'IsAudioDeviceReady'
bool IsAudioDeviceReady(void)
^
jni/../../raylib.h:930:12: note: previous declaration is here
RLAPI bool IsAudioDeviceReady(void); // Check if audio device has been initiali...
^
jni/../../audio.c:526:6: error: conflicting types for 'IsSoundPlaying'

@raysan5
Copy link
Owner

raysan5 commented May 1, 2017

Hi @kewp, thanks for pointing this issues, just updated docs to latest Android SDK and NDK versions.

Are you using raylib 1.6 (from Windows installer) or latest develop version?

I'm working on raylib v1.7, it's almost ready, and I'm changing quite a lot of things, one of the changes is a new Android build system, using a standalone toolchain... but still requires some work.

@kewp
Copy link
Author

kewp commented May 1, 2017

Hi raysan. No problem.

Im using version 1.6

@raysan5
Copy link
Owner

raysan5 commented May 1, 2017

ok, I'll try to upload new raylib version in a couple of weeks...

@kewp
Copy link
Author

kewp commented May 1, 2017

Great. Thanks, I'll let you know how it goes. And will keep trying this end.

@raysan5
Copy link
Owner

raysan5 commented May 2, 2017

Just closing this issue for now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants