Hello I am trying to build an Android app with your SDK. I have already put two solid days into getting it to build. I have learned and now have NDK working to give me JNI access to your CPP files and library.
My final hurdle seems to be the ‘GLUT*’ calls you make.
app/src/main/cpp/main.cpp
use of undeclared identifier ‘glutGetWindow’
and 18 other messages for different identifiers.
I tried updating the ‘includes’ in NuitrackGLSample.h…
Delete .cpp files from folder /app/src/main/cpp/ and add the scripts android_main.cpp, NuitrackGLSample.cpp, and NuitrackGLSample.h from Nuitrack SDK to the /app/src/main/cpp/ folder.
I cannot find android_main.cpp.
I can only find main.cpp in the folder alongside NuitrackGLSample.cpp, and NuitrackGLSample.h in the Examples/NuitrackGLSample folder that came with the SDK.
I renamed main.cpp which I pulled from theNuitrackGLSample.
I followed all the other instructions to the letter.
I have built the project and receive the following error which was stopping the build
android_main.cpp (1 error)
‘GL/glut.h’ file not found.
So I commented out that ‘include’ in android_main.cpp; I noticed the NuitrackGLSample.h was already including what looked like more relevant GLES headers.
Then when I try to rebuild I receive more error messages…
from the build output window…
android_main.cpp (18 errors)
use of undeclared identifier ‘glutGetWindow’
use of undeclared identifier ‘GLUT_LEFT_BUTTON’
use of undeclared identifier ‘GLUT_DOWN’
use of undeclared identifier ‘glutGetWindow’
use of undeclared identifier ‘glutSwapBuffers’
use of undeclared identifier ‘glutPostRedisplay’
use of undeclared identifier ‘glutInit’