Hi all !
I’ve managed to get a functioning Eclipse environment for OF 0.8.4 and run several times some examples on a real device…
- I got XXX could not be resolved for OF symbols in many places, but only as errors in source editor, it didn’t affected the build process
- Then after I modified a source code (for example, replacing OF_WINDOW with OF_FULLSCREEN in main.cpp) the project start to fail building/running with different kind of errors
It happen with multiple OF examples
Build clean and build all don’t solve it…
For example, I get these errors, in the “Problems” panel, related to several OF examples
- Android NDK: WARNING: There are no modules to build in this project! androidVideoExample
- Invalid arguments ’
Candidates are:
void ofRunApp(ofPtr)
void ofRunApp(ofBaseApp *) - Type ‘ofxAndroidSwipeDir’ could not be resolved ofApp.cpp /androidEmptyExample/src
For 2) the source code is
#include "ofMain.h"
#include "ofApp.h"
int main(){
ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp(new ofApp());
return 0;
}
#ifdef TARGET_ANDROID
#include <jni.h>
//========================================================================
extern "C"{
void Java_cc_openframeworks_OFAndroid_init( JNIEnv* env, jobject thiz ){
main();
}
}
#endif
Any idea ? Thank you !