I am using the r8d NDK, have set up the path for it and the sdk.
After importing all the projects, according to the documentation I got the red exclamation marks. Had to change the target.
However, I can’t build the main project or any examples:
**** Build of configuration Android for project openFrameworks ****
make -C ../openFrameworksCompiled/project all PLATFORM_OS=Android
../../../libs/openFrameworksCompiled/project/android/config.android.default.mk:32: ../../../libs/openFrameworksCompiled/project/android/paths.make: No such file or directory
make: *** No rule to make target `../../../libs/openFrameworksCompiled/project/android/paths.make'. Stop.
**** Build Finished ****
So I looked at the /libs/openFrameworksCompiled/project/android/paths.make.
It is named paths.make.default. I renamed it to paths.make.
Afterwards I seemed to be able to build the main project and other projects.
But I still get error messages:
The containter 'Android Dependencies' references non existing library [...]/addons/ofxAndroid/ofAndroidLib/bin/ofandroidlib.jar
sometimes the first time you import the projects you need to restart eclipse and then it’ll compile everything correctly, also keep deleting the errors. sorry it’s so weird but eclipse doesn’t handle very well importing already created projects with dependencies
Eclipse is quite frustrating at the moment. Now those errors are gone, but it complains about missing AndroidManifest.xml, although it exists in the projects folders. How could I fix that? Cleaning and deleting errors doesnt fix this.
Isn’t there a nicer alternative than using eclipse? Maybe compiling from commandline?
Alright, that helped!. I removed all of them. But kept libs, ofAndroidLib, openFrameworks and the androidEmptyExample.
I was able to compile and launch it on my android device!
I imported the camera example, and that one works too. However Vibrator example don’t work. (complains about not being able to import data). The openCVFace example didnt draw a rectangle around a face
Also I had visual glitches with the apps, when the phone got locked and I unlocked the device again.
However, I guess it’s good for me now. I’ll code the stuff I wanted to and will try to compile.