Quantcast
Viewing all articles
Browse latest Browse all 40524

More OF for Android build problems (both eclipse and android studio)

Hi everyone,

First, thanks in advance for any help.

I have been making OF apps for years on OSX but wanted to make one for android. I'm not sure exactly where to begin the question because I've tried so many things at this point, but I have spent a while trying to follow the steps for both the eclipse and andriod studio versions of setting up OF for android.

To start, I am on OSX 10.10.4 Yosemite. I tried to follow the instructions as closely as possible. However, a number of things seemed to be slightly different in the interfaces involved so a few things I had to do what seemed like the closest (perhaps here in lies the problem) so there might be some slight differences there.

When eclipse wasn't working, I tried the andriod studio version which also didn't work. I also tried to search the forum, google, issues on github, and a number of other things that did not seem to work. When I am on eclipse my errors look like this:

Description Resource Path Location Type
make: *** [all] Error 2 openFrameworks C/C++ Problem
make: *** [Release] Error 2 androidEmptyExample C/C++ Problem
make[1]: *** [Debug] Error 2 openFrameworks C/C++ Problem
make[1]: *** [Release] Error 2 androidEmptyExample C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Debug/libs/openFrameworks/3d/of3dPrimitives.o] Error 127 openFrameworks C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Debug/libs/openFrameworks/3d/of3dUtils.o] Error 127 openFrameworks C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Debug/libs/openFrameworks/3d/ofCamera.o] Error 127 openFrameworks C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Release/libs/openFrameworks/3d/of3dPrimitives.o] Error 127 androidEmptyExample C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Release/libs/openFrameworks/3d/of3dUtils.o] Error 127 androidEmptyExample C/C++ Problem
make[2]: *** [/Users/barragan/Documents/code/of_v0.9.0_android_release/libs/openFrameworksCompiled/lib/android/obj/armv7/Release/libs/openFrameworks/3d/ofCamera.o] Error 127 androidEmptyExample C/C++ Problem
make[2]: *** Waiting for unfinished jobs.... androidEmptyExample C/C++ Problem
make[2]: *** Waiting for unfinished jobs.... openFrameworks C/C++ Problem
Program "/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++" not found in PATH androidEmptyExample Project Properties, C++ Preprocessor Include.../Providers, [CDT GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem

when I am on android studio my errors look like this:

Error:(146, 1) Execution failed for task ':ofAndroidLib:compileReleaseOF'.

make failed with exit status 2

More details:
I tried a number of fixes related to changing the name of the folder in the last eclipse error. For some reason it says linux-x86_64 but of course the folder in the toolchains directory says darwin-x86_64 because I downloaded the OSX version (ndk r10e). I also tried changing the make file to hardcode that name in. Neither worked. It did not remove errors but instead added more. I tried to search for the other errors but couldn't find much info (on the error codes or fixes) searching around. I have also installed and pointed at many different versions of the SDK tools. Some cause more errors and some cause less. This is the least I could produce.

At some point, I gave up and tried to android studio. Forever, I couldn't get the gradle sync to work. It said error code 2 for a long time. I found an issue logged on github that had a different approach to setting up android studio. Doing this:

at least got the gradle to sync. But then left me with the common error "Execution failed for task ':ofAndroidLib:compileReleaseOF'." However, none of the fixes I could find made any difference for this. I tried different versions of android studio as well to no avail.

I'm really stuck and at this point am worried that I've tried to change so many things who knows what's going on. I think my next step is to delete everything and try to start from scratch again. I'm hoping someone out there has a little info that could help me. Or at least direct me towards what I should look at to debug the errors. I think there's not much info in the errors, but I could be looking at the wrong place. I looked at the logs but couldn't human parse them into anything useful.

Any thoughts?

Thanks a million,
patrick


Viewing all articles
Browse latest Browse all 40524

Trending Articles