AllenDang / cimgui-go

Auto generated Go wrapper for Dear ImGui via cimgui
MIT License
349 stars 51 forks source link

android how do build? #140

Open aadog opened 1 year ago

aadog commented 1 year ago

android how do build?

gucio321 commented 1 year ago

This should be easy but, since I was trying some time ago, I can say it isn't :smile: Let me determine what needs to be done to compile against 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.

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

gucio321 commented 1 year ago

ref: https://developer.android.com/ndk/guides/

paralin commented 12 months ago

@gucio321 Did you find an answer on this?

gucio321 commented 12 months ago

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 commented 1 month ago

should work with ebiten now just need to compile