Skip to content

Commit 14ac55d

Browse files
committed
Merge pull request opencv#7289 from alalek:android24
2 parents 1f6cf50 + 2d10336 commit 14ac55d

File tree

19 files changed

+305
-34
lines changed

19 files changed

+305
-34
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#### Resources
44

55
* Homepage: <http://opencv.org>
6-
* Docs: <http://docs.opencv.org>
6+
* Docs: <http://docs.opencv.org/2.4/>
77
* Q&A forum: <http://answers.opencv.org>
8-
* Issue tracking: <http://code.opencv.org>
8+
* Issue tracking: <https://github.com/opencv/opencv/issues>
99

1010
#### Contributing
1111

12-
Please read before starting work on a pull request: <http://code.opencv.org/projects/opencv/wiki/How_to_contribute>
12+
Please read before starting work on a pull request: <https://github.com/opencv/opencv/wiki/How_to_contribute>
1313

1414
Summary of guidelines:
1515

cmake/OpenCVDetectAndroidSDK.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,17 @@ macro(add_android_project target path)
274274
file(GLOB_RECURSE android_proj_jni_files "${path}/jni/*.c" "${path}/jni/*.h" "${path}/jni/*.cpp" "${path}/jni/*.hpp")
275275
ocv_list_filterout(android_proj_jni_files "\\\\.svn")
276276

277+
foreach(lib "opencv_java")
278+
get_property(f TARGET ${lib} PROPERTY LOCATION)
279+
get_filename_component(f_name ${f} NAME)
280+
add_custom_command(
281+
OUTPUT "${android_proj_bin_dir}/libs/${ANDROID_NDK_ABI_NAME}/${f_name}"
282+
COMMAND ${CMAKE_COMMAND} -E copy "${f}" "${android_proj_bin_dir}/libs/${ANDROID_NDK_ABI_NAME}/${f_name}"
283+
DEPENDS "${lib}" VERBATIM
284+
COMMENT "Embedding ${f}")
285+
list(APPEND android_proj_file_deps "${android_proj_bin_dir}/libs/${ANDROID_NDK_ABI_NAME}/${f_name}")
286+
endforeach()
287+
277288
if(android_proj_jni_files AND EXISTS ${path}/jni/Android.mk AND NOT DEFINED JNI_LIB_NAME)
278289
# find local module name in Android.mk file to build native lib
279290
file(STRINGS "${path}/jni/Android.mk" JNI_LIB_NAME REGEX "LOCAL_MODULE[ ]*:=[ ]*.*" )
@@ -307,6 +318,7 @@ macro(add_android_project target path)
307318
# copy opencv_java, tbb if it is shared and dynamicuda if present if FORCE_EMBED_OPENCV flag is set
308319
if(android_proj_FORCE_EMBED_OPENCV)
309320
set(native_deps ${android_proj_NATIVE_DEPS})
321+
list(REMOVE_ITEM native_deps "opencv_java")
310322
# filter out gpu module as it is always static library on Android
311323
list(REMOVE_ITEM native_deps "opencv_gpu")
312324
if(ENABLE_DYNAMIC_CUDA)

cmake/OpenCVDetectPython.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ if(PYTHON_EXECUTABLE)
123123
find_host_program(SPHINX_BUILD sphinx-build)
124124
if(SPHINX_BUILD)
125125
execute_process(COMMAND "${SPHINX_BUILD}"
126-
OUTPUT_QUIET
127-
ERROR_VARIABLE SPHINX_OUTPUT
126+
ERROR_VARIABLE SPHINX_STDERR
127+
OUTPUT_VARIABLE SPHINX_STDOUT
128128
OUTPUT_STRIP_TRAILING_WHITESPACE)
129-
if(SPHINX_OUTPUT MATCHES "Sphinx v([0-9][^ \n]*)")
129+
if(SPHINX_STDERR MATCHES "Sphinx v([0-9][^ \n]*)"
130+
OR SPHINX_STDOUT MATCHES "Sphinx v([0-9][^ \n]*)")
130131
set(SPHINX_VERSION "${CMAKE_MATCH_1}")
131132
set(HAVE_SPHINX 1)
132133
message(STATUS "Found Sphinx ${SPHINX_VERSION}: ${SPHINX_BUILD}")

cmake/templates/OpenCV.mk.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ else
110110
OPENCV_INSTALL_MODULES:=on
111111
endif
112112

113+
ifeq ($(OPENCV_INSTALL_MODULES),)
114+
OPENCV_INSTALL_MODULES:=on
115+
endif
116+
113117
define add_opencv_module
114118
include $(CLEAR_VARS)
115119
LOCAL_MODULE:=opencv_$1

doc/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ endif(HAVE_DOC_GENERATOR)
4040

4141
# ========= Sphinx docs =========
4242
if(BUILD_DOCS AND HAVE_SPHINX)
43-
if(NOT INSTALL_CREATE_DISTRIB)
44-
list(APPEND DOC_LIST "${OpenCV_SOURCE_DIR}/doc/haartraining.htm")
45-
endif()
43+
list(APPEND DOC_LIST "${OpenCV_SOURCE_DIR}/doc/haartraining.htm")
4644

4745
# build lists of documentation files and generate table of contents for reference manual
4846
set(DOC_FAKE_ROOT "${CMAKE_CURRENT_BINARY_DIR}/fake-root")

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315

316316
# 'opencv_group' : ('http://answers.opencv.org/%s', None),
317317
'opencv_qa' : ('http://answers.opencv.org/%s', None),
318-
'how_to_contribute' : ('http://code.opencv.org/projects/opencv/wiki/How_to_contribute/%s', None),
318+
'how_to_contribute' : ('https://github.com/opencv/opencv/wiki/How_to_contribute/%s', None),
319319

320320
'cvt_color' : ('http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=cvtcolor#cvtcolor%s', None),
321321
'imread' : ('http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imread#imread%s', None),

doc/tutorials/core/random_generator_and_text/random_generator_and_text.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Code
2222

2323
* In this tutorial, we intend to use *random* values for the drawing parameters. Also, we intend to populate our image with a big number of geometric figures. Since we will be initializing them in a random fashion, this process will be automatic and made by using *loops* .
2424

25-
* This code is in your OpenCV sample folder. Otherwise you can grab it from `here <http://code.opencv.org/projects/opencv/repository/revisions/master/raw/samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp>`_ .
25+
* This code is in your OpenCV sample folder. Otherwise you can grab it from `here <https://github.com/opencv/opencv/blob/2.4/samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp>`_ .
2626

2727
Explanation
2828
============

doc/tutorials/features2d/feature_detection/feature_detection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Theory
2222
Code
2323
====
2424

25-
This tutorial code's is shown lines below. You can also download it from `here <http://code.opencv.org/projects/opencv/repository/revisions/master/raw/samples/cpp/tutorial_code/features2D/SURF_detector.cpp>`_
25+
This tutorial code's is shown lines below. You can also download it from `here <https://github.com/opencv/opencv/blob/2.4/samples/cpp/tutorial_code/features2D/SURF_detector.cpp>`_
2626

2727
.. code-block:: cpp
2828

doc/tutorials/features2d/feature_homography/feature_homography.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Theory
2020
Code
2121
====
2222

23-
This tutorial code's is shown lines below. You can also download it from `here <http://code.opencv.org/projects/opencv/repository/revisions/master/raw/samples/cpp/tutorial_code/features2D/SURF_Homography.cpp>`_
23+
This tutorial code's is shown lines below. You can also download it from `here <https://github.com/opencv/opencv/blob/2.4/samples/cpp/tutorial_code/features2D/SURF_Homography.cpp>`_
2424

2525
.. code-block:: cpp
2626

doc/tutorials/introduction/android_binary_package/O4A_SDK.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ The structure of package contents looks as follows:
4848

4949
::
5050

51-
OpenCV-2.4.11-android-sdk
52-
|_ apk
53-
| |_ OpenCV_2.4.11_binary_pack_armv7a.apk
54-
| |_ OpenCV_2.4.11_Manager_2.20_XXX.apk
55-
|
51+
OpenCV-2.4.13-android-sdk
5652
|_ doc
5753
|_ samples
5854
|_ sdk

0 commit comments

Comments
 (0)