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

How to compile it in android studio? #1

Open
kolanski opened this issue Apr 24, 2018 · 5 comments
Open

How to compile it in android studio? #1

kolanski opened this issue Apr 24, 2018 · 5 comments

Comments

@kolanski
Copy link

I get opencv2/core/core.hpp: No such file or directory error for dbow

@muziyongshixin
Copy link
Owner

Do you get the error when compile?or when run it on the phone?
I forget some configuration file before , so you may get some errors when run the APP, I will update the profile soon.
But if you get this when compile, may be there is something wrong with your environment or your opencv version is incorrect. I am not really sure.

@unanan
Copy link

unanan commented Dec 21, 2018

Hi, @muziyongshixin In my Android Studio, it is built failed with errors like:

../../../../src/main/cpp\Eigen/Core:84:20: error: expected value in expression
#if EIGEN_COMP_MSVC
                   ^

Do you know how to deal with it? Thx in advance.

@lldavuull
Copy link

opencv2 is not included in the code.
you can download opencv-3.2.0-android-sdk.zip
https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.2.0/

put the folder (opencv2 folder)
OpenCV-android-sdk\sdk\native\jni\include
into
app\src\main\cpp

@NCHUPJ
Copy link

NCHUPJ commented Jul 14, 2021

opencv2 is not included in the code.
you can download opencv-3.2.0-android-sdk.zip
https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.2.0/

put the folder (opencv2 folder)
OpenCV-android-sdk\sdk\native\jni\include
into
app\src\main\cpp
Did you install OpenCV4Androi?

@maximaging
Copy link
Contributor

maximaging commented Oct 8, 2021

Hi @NCHUPJ , in case you are still interested, I addressed the compilation issues related to OpenCV 3.2.0 on my fork and submitted a pull request with all the changes: #16.
In fact, I updated the project to make it supported with the all recent Android Studio requirements, here is my fork: https://github.com/maximaging/ORB-SLAM2-based-AR-on-Android.
And, I also shared my OpenCV 3.2.0 prebuilts (as static libraries) for NDK 21 Android LLVM C++ compiler with the instructions for integrating it with a Android project: https://github.com/maximaging/opencv-3.2.0-android-prebuilts.

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

6 participants