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.mk and opencv header files are missing #12

Closed
rbarara opened this issue Jun 20, 2017 · 3 comments
Closed

OpenCV.mk and opencv header files are missing #12

rbarara opened this issue Jun 20, 2017 · 3 comments

Comments

@rbarara
Copy link

rbarara commented Jun 20, 2017

During compile - I get an error for missing OpenCV.mk file. When I tried to look for the file - there is no file with that name in any of the directories included in the package on git repository.

I downloaded opencv package from git but that also does not have all the related files.

Can some one please help me with the above ?

@cmauri
Copy link
Owner

cmauri commented Jun 20, 2017

Hi
Check compilation instructions here:
https://github.com/cmauri/eva_facial_mouse/blob/develop/INSTALL

@rbarara
Copy link
Author

rbarara commented Jun 24, 2017

Thanks for pointing to install. After setting environment variables, I get the following error (seems like :
android_native_app_glue.c:233: error: undefined reference to 'android_main' is the issue).. Am I missing a library ?

Android NDK: android-9 is unsupported. Using minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in src/main/AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
[armeabi] Prebuilt : libopencv_java3.so <= /Users/rajan/opencv/sdk//native/jni/../libs/armeabi/
[armeabi] Install : libopencv_java3.so => libs/armeabi/libopencv_java3.so
[armeabi] Compile++ thumb: visionpipeline <= crvimage.cpp
[armeabi] Compile++ thumb: visionpipeline <= timeutil.cpp
[armeabi] Compile++ thumb: visionpipeline <= normroi2.cpp
[armeabi] Compile++ thumb: visionpipeline <= facedetection.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline.cpp
[armeabi] Compile++ thumb: visionpipeline <= visionpipeline_jni.cpp
[armeabi] Compile thumb : android_native_app_glue <= android_native_app_glue.c
[armeabi] StaticLibrary : libandroid_native_app_glue.a
[armeabi] SharedLibrary : libvisionpipeline.so

/Users/rajan/Library/Android/sdk/ndk-bundle/sources/android/native_app_glue/android_native_app_glue.c:233: error: undefined reference to 'android_main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/main/obj/local/armeabi/libvisionpipeline.so] Error 1

:eviacam:ndkBuild FAILED

FAILURE: Build failed with an exception.

@cmauri
Copy link
Owner

cmauri commented Jun 28, 2017

See #13

@cmauri cmauri closed this as completed Jun 28, 2017
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

No branches or pull requests

2 participants