Use OpenCV from Native (C++) Code
jeffreyfjohnson opened this issue · 3 comments
jeffreyfjohnson commented
I have a C++ file for my Android project that uses OpenCV. Previously, I just imported all of OpenCV Java into my project as a local module, and used the library that way from my C++ file. I would like to use the Gradle dependency provided here, but I'm having trouble setting it up so that my C++ file can use OpenCV.
What do I need to do, either in my build.gradle
, or CMakeLists.txt
files to make this work?
nasirky commented
Hey @jeffreyfjohnson. Thank you for your interest in our repo and for posting your question. However, we would need more information before we are able to answer:
- I assume that have a mix project (C++ & Java) which implies you are using the NDK?
- Can you share a bare minimum project (with a setup similar to yours) that I can check out?
nasirky commented
@jeffreyfjohnson I would close this issue now. Please feel free to open a new issue if you still need help.