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

Port a SDL2 PC game to Android. #9

Open
zinwalin opened this issue Dec 11, 2021 · 3 comments
Open

Port a SDL2 PC game to Android. #9

zinwalin opened this issue Dec 11, 2021 · 3 comments

Comments

@zinwalin
Copy link

I had a PC game which wrote in cpp with SDL2 lib, on Android, SDL2 libs are ready to run, in terms of UI activity, can I reuse cpp code to run on Android ?

Any reply is appreciated.

@georgik
Copy link
Owner

georgik commented Dec 11, 2021

Hi @zinwalin . It should be possible to reuse maximum of cpp code. There are some differences on OS level API, but they can be wrapped by ifdef. If you have a link to source code or log build problems, let me know.

@zinwalin zinwalin reopened this Dec 12, 2021
@zinwalin
Copy link
Author

Hi @zinwalin . It should be possible to reuse maximum of cpp code. There are some differences on OS level API, but they can be wrapped by ifdef. If you have a link to source code or log build problems, let me know.

Thanks a lot for your project. Did you have document on how to set up this project? When I try to enable ogg/vorbis support, stucked with sdl2 and sdl2_mixer upgrade. When I enable OGG_MUSIC and DYNAMIC_OGG, the building was successful, but failed to run because of .so lib can't find.

@rafal1137
Copy link

Hi @zinwalin . It should be possible to reuse maximum of cpp code. There are some differences on OS level API, but they can be wrapped by ifdef. If you have a link to source code or log build problems, let me know.

Thanks a lot for your project. Did you have document on how to set up this project? When I try to enable ogg/vorbis support, stucked with sdl2 and sdl2_mixer upgrade. When I enable OGG_MUSIC and DYNAMIC_OGG, the building was successful, but failed to run because of .so lib can't find.

Make sure specific .so lib is in apk file

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

3 participants