Skip to content

Comments

try to build with Android Studio3.0#10

Open
hannesa2 wants to merge 3 commits intojoaopedronardari:masterfrom
hannesa2:AndroidStudio3.0
Open

try to build with Android Studio3.0#10
hannesa2 wants to merge 3 commits intojoaopedronardari:masterfrom
hannesa2:AndroidStudio3.0

Conversation

@hannesa2
Copy link

Attempt to build with Android Studio 3.0
But I run into this and does someone has a clue what's wrong here ?

./gradlew buildDependentsNdklibrarysampleX86DebugArmSharedLibrary

:app:compileNdklibrarysampleX86DebugArmSharedLibraryNdklibrarysampleX86DebugArmSharedLibraryMainCpp
/Users/hannes/git/openCV/OpenCV-AndroidSamples/app/src/main/jni/DetectionBasedTracker.cpp:1:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.

/Users/hannes/git/openCV/OpenCV-AndroidSamples/app/src/main/jni/Tutorial2.cpp:1:17: fatal error: jni.h: No such file or directory
#include <jni.h>
^
compilation terminated.

:app:compileNdklibrarysampleX86DebugArmSharedLibraryNdklibrarysampleX86DebugArmSharedLibraryMainCpp FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileNdklibrarysampleX86DebugArmSharedLibraryNdklibrarysampleX86DebugArmSharedLibraryMainCpp'.

Multiple build operations failed.
C++ compiler failed while compiling DetectionBasedTracker.cpp.
C++ compiler failed while compiling Tutorial2.cpp.
See the complete log at: file:///Users/hannes/git/openCV/OpenCV-AndroidSamples/app/build/tmp/compileNdklibrarysampleX86DebugArmSharedLibraryNdklibrarysampleX86DebugArmSharedLibraryMainCpp/output.txt

@hannesa2 hannesa2 changed the title Android studio3.0 attempt to build with Android Studio3.0 Dec 26, 2017
(cherry picked from commit d6ae18b)
@hannesa2 hannesa2 changed the title attempt to build with Android Studio3.0 try to build with Android Studio3.0 Dec 27, 2017
@hannesa2
Copy link
Author

With last commit, I solved previous error, and now I run into this

/Users/hannes/Development/android-ndk-r10b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: fatal error: --sysroot=: must take a non-empty argument
collect2: error: ld returned 1 exit status

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.

1 participant