Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openCV Example and common-functions cleanup #5883

Closed
wants to merge 4 commits into from
Closed

Conversation

danzeeeman
Copy link
Member

This contains the needed things in the android-r15 branch to update the CV example and to fix the common-functions. When we can bump from API 19 to API 24 the other stuff needs to be merged but the branch is crap. I'll move them to an android-api-24 branch that will also need its own libs. >=API-24 is only at 29.6% so we can't bump it yet.

@danzeeeman
Copy link
Member Author

@arturoc
Copy link
Member

arturoc commented Feb 9, 2018

Just tested this by reenabling the opencv example here: #5864 but it's still failing. Not sure if we need some bits from your old PR too?

Btw, please be careful to not create PRs with branches directly in the main repo, it triggers the tests twice + i need to go later through everyone's branches to see what's still open in order to delete the old ones

I'm going to close this, can you open a new PR from your repo with the bits necessary from your old one ( i believe that one fixed the problem with finding the addon headers) this and #5864 which re-enables the tests for addons examples?

@arturoc arturoc closed this Feb 9, 2018
@danzeeeman danzeeeman reopened this Feb 9, 2018
@danzeeeman
Copy link
Member Author

danzeeeman commented Feb 9, 2018 via email

@danzeeeman
Copy link
Member Author

I'm not closing this @arturoc.
this needs to be merged.

@arturoc
Copy link
Member

arturoc commented Feb 9, 2018

what is this fixing? as i said i tried re-enabling the opencv example but it's not working. might it be that you have some additional changes that are not in this PR or something.

It doesn't look like the parsing of the addons is being fixed in this PR which is what seems to be failing.

The previous PR you sent seems to fix that but then it complains about android-24 not being present..

In any case can you send this from your repo instead of the OF one?

@danzeeeman
Copy link
Member Author

danzeeeman commented Feb 9, 2018 via email

@arturoc
Copy link
Member

arturoc commented Feb 9, 2018

it seems to compile in my machine but so does current master so not sure what's the problem or what is this fixing?

@danzeeeman
Copy link
Member Author

danzeeeman commented Feb 9, 2018 via email

@danzeeeman
Copy link
Member Author

danzeeeman commented Feb 9, 2018 via email

@arturoc
Copy link
Member

arturoc commented Feb 19, 2018

I've just tested this again in my computer but completely cleaning the projects first and it seems to be failing with the same errors as the CI servers.

The steps to reproduce it:

rm -r examples/android/androidOpenCVExample/
git checkout examples/android/androidOpenCVExample/

to completely clean the example without having to download a clean OF install but downloading OF from github or the nightlies fails with the same error. This are the steps i'm following in my computer to generate and compile the example from a clean OF from github

scripts/android/download_libs.sh
/home/arturo/apps/android-studio/gradle/gradle-4.1/bin/gradle wrapper --gradle-version 3.3
projectGenerator -p"android" -o"/home/arturo/Code/openFrameworks" /home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample
echo ndk.dir=/home/arturo/Code/android-ndk-r15c > examples/android/androidOpenCVExample/local.properties
echo sdk.dir=/home/arturo/Code/android-sdk >> examples/android/androidOpenCVExample/local.properties
./gradlew -b /home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/build.gradle compileArm7DebugSources

that fails with:

 file included from /home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/src/ofApp.cpp:1:
/home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/src/ofApp.h:6:10: fatal error: 'ofxOpenCv.h' file not found
#include "ofxOpenCv.h"
         ^~~~~~~~~~~~~
1 error generated.

In file included from /home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/src/main.cpp:2:
/home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/src/ofApp.h:6:10: fatal error: 'ofxOpenCv.h' file not found
#include "ofxOpenCv.h"
         ^~~~~~~~~~~~~
1 error generated.

:compileOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryMainCpp FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryMainCpp'.
> Multiple build operations failed.
      C++ compiler failed while compiling ofApp.cpp.
      C++ compiler failed while compiling main.cpp.
  See the complete log at: file:///home/arturo/Code/openFrameworks/examples/android/androidOpenCVExample/build/tmp/compileOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryOFAndroidAppArmeabi-v7aDebugArm7SharedLibraryMainCpp/output.txt

that last output.txt file has the compiler output which shows a bunch of warnings and the previous error.

I've also tried to use android studio ide instead of command line but then i can't even start to compile. first i get something about an output folder not set for the project, by setting one manually in some config settings that open up then i get:

Error:Failed to load project configuration: cannot read file /home/arturo/Downloads/of_v20180215_android_release/examples/android/androidOpenCVExample/.idea/misc.xml: /home/arturo/Downloads/of_v20180215_android_release/examples/android/androidOpenCVExample/.idea/misc.xml (No such file or directory)

@arturoc
Copy link
Member

arturoc commented Mar 4, 2018

just fixed this with #5908 going to close this PR since i think everything it's there already but let me know if you think i'm missing something

@arturoc arturoc closed this Mar 4, 2018
@arturoc arturoc deleted the android-opencv branch March 4, 2018 18:13
@arturoc arturoc restored the android-opencv branch March 4, 2018 18:13
@HalfdanJ
Copy link
Member

HalfdanJ commented Mar 4, 2018

Ah great! Then ill stop debugging (was trying to replicate the problem as you closed it)

@arturoc arturoc deleted the android-opencv branch March 4, 2018 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants