Hi Team,
I am new to Android.
I am porting a Linux opengl application to Android. In which, I have used NDK, “android_native_app_glue” with Freeglut-3.0.0. I am stuck with an infinite loop present at location freeglut-3.0.0/src/android/fg_window_android.c:57
while (fgDisplay.pDisplay.single_native_window == NULL) { … }
After some debugging, I think, I need to create an android native activity. But what I know, if we call app_dummy() function of android_native_app_glue from freeglut’s android_main(), native activity automatically gets created (Am I right here?)
Definition of app_dummy() is empty in file provide with glue i.e. android_native_app_glue.c. Do I need to give my own definition in order to get a Native Activity?
P.S. I don't have AndroidManifest.xml and I am not sure if I need AndroiManifest.xml. I am searching for answers.
Can anyone guide me where should I start looking to resolve this issue?
I have no knowledge of how to make it work (I have not done Android development), but I do know you need an AndroidManifest.xml. You may want to look at "freeglut-3.0.0/progs/test-shapes-gles1" as it is setup to support building for Android. It might be a little outdated though.
If you hit the issue with the sample app, then I see it as a bug. If not, then try adding a manifest and setup your project in a similar way. If it works, great. If not, then we'll take it from there.
Sure. Will update you after trying it. Thank you!!