构建Android SDL搅拌机 [英] Build SDL mixer for Android
问题描述
我已经建立 SDL 为Android。结果
但不幸的是,SDL_mixer缺少那里。所以,我想建立 SDL搅拌机。结果
问题是:SDL_mixer希望SDL,所以我怎么能包括 libsdl.so
和SDL包括我的日食SDL_mixer项目
I have already build SDL for Android.
But, unfortunately, SDL_mixer is missing there. So I want to build SDL mixer.
Problem is: SDL_mixer wants SDL, so how I can include libsdl.so
and SDL includes to my eclipse SDL_mixer project?
推荐答案
在 Android.mk 作为SDL_mixer,还有就是SDL库的引用:
In Android.mk for SDL_mixer, there is a reference to SDL library:
LOCAL_SHARED_LIBRARIES = SDL2
所以,如果你建立了两个库的一起的,引用将自动完成。另外,您也可以定义为SDL2 <一个href=\"http://stackoverflow.com/questions/17172153/ndk-how-to-include-$p$pbuilt-shared-library-regardless-of-architecture\">$p$pBUILT_SHARED_LIBRARY.
So, if you build the two libraries together, the reference will be fulfilled automatically. Alternatively, you can define SDL2 as PREBUILT_SHARED_LIBRARY.
这篇关于构建Android SDL搅拌机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!