Organize OpenCVConfig.cmake and OpenCV.mk im the same way (Bug #2496)


Added by Alexander Smorkalov over 12 years ago. Updated about 12 years ago.


Status:Done Start date:2012-10-31
Priority:Low Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:android
Target version:2.4.4
Affected version:2.4.2 Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/570

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

Revision 024185b9
Added by Andrey Kamaev about 12 years ago

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

Revision bdfd29a0
Added by Andrey Pavlenko almost 11 years ago

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

Also available in: Atom PDF