Build SDL mixer for Android

牧云@^-^@ 提交于 2020-01-05 09:12:04

问题


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?


回答1:


In Android.mk for SDL_mixer, there is a reference to SDL library:

LOCAL_SHARED_LIBRARIES = SDL2

So, if you build the two libraries together, the reference will be fulfilled automatically. Alternatively, you can define SDL2 as PREBUILT_SHARED_LIBRARY.



来源:https://stackoverflow.com/questions/24330365/build-sdl-mixer-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!