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 how do build? #140

Open
aadog opened this issue Apr 20, 2023 · 5 comments
Open

android how do build? #140

aadog opened this issue Apr 20, 2023 · 5 comments
Labels
build documentation Improvements or additions to documentation investigating Searching for origins of the issue.

Comments

@aadog
Copy link

aadog commented Apr 20, 2023

android how do build?

@gucio321
Copy link
Collaborator

This should be easy but, since I was trying some time ago, I can say it isn't 😄
Let me determine what needs to be done to compile against android:

  • First of all, we need to answer the following question:
✔️ does glfw and sdl support android?ChatGPT: Yes, both GLFW and SDL support Android.

SDL has an official Android port and provides a simple interface for developing games and applications that run on Android devices. GLFW also has an Android port, which allows for the creation of cross-platform applications that run on multiple platforms, including Android.

Both libraries provide support for input handling, audio, graphics, and window management, making them suitable for game development and other interactive applications on the Android platform.

  • now we need to find android C and C++ compiler
  • we need to compile shared library for android (these from lib folder as well as glfw/sdl)
  • and finally some additional cgo flags may be necessary

and the command should be as follows
GOOS=android GOARCH=arm64 CC="<android c compiler>" CXX="android C++ compiler" go build .

@gucio321 gucio321 added documentation Improvements or additions to documentation investigating Searching for origins of the issue. labels Apr 20, 2023
@gucio321
Copy link
Collaborator

@paralin
Copy link

paralin commented Nov 14, 2023

@gucio321 Did you find an answer on this?

@gucio321
Copy link
Collaborator

nope as I didn't need it yet
However I suppose it wouldn't work with glfw... (we'd need to add some other backend

@gucio321
Copy link
Collaborator

should work with ebiten now just need to compile

@gucio321 gucio321 added the build label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build documentation Improvements or additions to documentation investigating Searching for origins of the issue.
Projects
None yet
Development

No branches or pull requests

3 participants