Organize OpenCVConfig.cmake and OpenCV.mk im the same way (Bug #2496)
Description
cooperz:
If libopencv_java is the preferred way of linking against OpenCV on Android, then this should really be reflected in the OpenCVConfig.cmake file from sdk/native/jni folder, to resemble more what is found in OpenCV.mk for NDK, no?
I've modified the file OpenCVConfig.cmake, by replacing:
SET(OpenCV_LIB_COMPONENTS opencv_java)
and adding:
set(OpenCV_opencv_java_LIBNAME_OPT "libopencv_java.so") set(OpenCV_opencv_java_DEPS_OPT ) set(OpenCV_opencv_java_EXTRA_DEPS_OPT )
Now arm-linux-androideabi-objdump -p libOpenCV.so confirms that it links against libopencv_java.so.
Associated revisions
Fix OpenCVConfig.cmake generated for Android platform (issue #2496)
- fix path to libraries in Android SDK
- allow to link to opencv_java.so as Android.mk does
To link to opencv_java.so you can either change your cmake to find OpenCV as
find_package(OpenCV opencv_java)
or pass -DOpenCV_FIND_COMPONENTS=opencv_java to your cmake command
Merge pull request #2496 from ilya-lavrenov:tapi_imgproc
History
Updated by Alexander Smorkalov over 12 years ago
- Description changed from cooperz: If libopencv_java is the preferred way of linking against OpenCV on ... to cooperz: If libopencv_java is the preferred way of linking against OpenCV on ... More
- Target version set to Next Hackathon
Updated by Kirill Kornyakov about 12 years ago
- Target version changed from Next Hackathon to 2.4.5
Updated by Alexander Smorkalov about 12 years ago
- Assignee changed from Alexander Smorkalov to Andrey Kamaev
- Affected version set to 2.4.2
Updated by Andrey Kamaev about 12 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/570
Updated by Andrey Kamaev about 12 years ago
Fix is pushed to 2.4
- Target version changed from 2.4.5 to 2.4.4
- Status changed from Open to Done