Merge pull request #920 from asmorkalov:android_move
@ -456,15 +456,15 @@ if(BUILD_EXAMPLES OR BUILD_ANDROID_EXAMPLES OR INSTALL_PYTHON_EXAMPLES)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
add_subdirectory(android/service)
|
add_subdirectory(platforms/android/service)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_ANDROID_PACKAGE)
|
if(BUILD_ANDROID_PACKAGE)
|
||||||
add_subdirectory(android/package)
|
add_subdirectory(platforms/android/package)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
add_subdirectory(android/libinfo)
|
add_subdirectory(platforms/android/libinfo)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
# Copyright (c) 2010-2011, Ethan Rublee
|
message(STATUS "Android toolchain was moved to platfroms/android!")
|
||||||
|
message(STATUS "This file is depricated and will be removed!")
|
||||||
|
|
||||||
# Copyright (c) 2011-2013, Andrey Kamaev
|
# Copyright (c) 2011-2013, Andrey Kamaev
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
1
android/readme.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
All Android specific sources are moved to platforms/android.
|
@ -1,90 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
:: enable command extensions
|
|
||||||
VERIFY BADVALUE 2>NUL
|
|
||||||
SETLOCAL ENABLEEXTENSIONS || (ECHO Unable to enable command extensions. & EXIT \B)
|
|
||||||
|
|
||||||
:: build environment
|
|
||||||
SET SOURCE_DIR=%cd%
|
|
||||||
IF EXIST .\android.toolchain.cmake (SET BUILD_OPENCV=1) ELSE (SET BUILD_OPENCV=0)
|
|
||||||
IF EXIST .\jni\nul (SET BUILD_JAVA_PART=1) ELSE (SET BUILD_JAVA_PART=0)
|
|
||||||
|
|
||||||
:: load configuration
|
|
||||||
PUSHD %~dp0
|
|
||||||
SET SCRIPTS_DIR=%cd%
|
|
||||||
IF EXIST .\wincfg.cmd CALL .\wincfg.cmd
|
|
||||||
POPD
|
|
||||||
|
|
||||||
:: inherit old names
|
|
||||||
IF NOT DEFINED CMAKE SET CMAKE=%CMAKE_EXE%
|
|
||||||
IF NOT DEFINED MAKE SET MAKE=%MAKE_EXE%
|
|
||||||
|
|
||||||
:: defaults
|
|
||||||
IF NOT DEFINED BUILD_DIR SET BUILD_DIR=build
|
|
||||||
IF NOT DEFINED ANDROID_ABI SET ANDROID_ABI=armeabi-v7a
|
|
||||||
SET OPENCV_BUILD_DIR=%SCRIPTS_DIR%\..\%BUILD_DIR%
|
|
||||||
|
|
||||||
:: check that all required variables defined
|
|
||||||
PUSHD .
|
|
||||||
IF NOT DEFINED ANDROID_NDK (ECHO. & ECHO You should set an environment variable ANDROID_NDK to the full path to your copy of Android NDK & GOTO end)
|
|
||||||
(CD "%ANDROID_NDK%") || (ECHO. & ECHO Directory "%ANDROID_NDK%" specified by ANDROID_NDK variable does not exist & GOTO end)
|
|
||||||
|
|
||||||
IF NOT EXIST "%CMAKE%" (ECHO. & ECHO You should set an environment variable CMAKE to the full path to cmake executable & GOTO end)
|
|
||||||
IF NOT EXIST "%MAKE%" (ECHO. & ECHO You should set an environment variable MAKE to the full path to native port of make executable & GOTO end)
|
|
||||||
|
|
||||||
IF NOT %BUILD_JAVA_PART%==1 GOTO required_variables_checked
|
|
||||||
|
|
||||||
IF NOT DEFINED ANDROID_SDK (ECHO. & ECHO You should set an environment variable ANDROID_SDK to the full path to your copy of Android SDK & GOTO end)
|
|
||||||
(CD "%ANDROID_SDK%" 2>NUL) || (ECHO. & ECHO Directory "%ANDROID_SDK%" specified by ANDROID_SDK variable does not exist & GOTO end)
|
|
||||||
|
|
||||||
IF NOT DEFINED ANT_DIR (ECHO. & ECHO You should set an environment variable ANT_DIR to the full path to Apache Ant root & GOTO end)
|
|
||||||
(CD "%ANT_DIR%" 2>NUL) || (ECHO. & ECHO Directory "%ANT_DIR%" specified by ANT_DIR variable does not exist & GOTO end)
|
|
||||||
|
|
||||||
IF NOT DEFINED JAVA_HOME (ECHO. & ECHO You should set an environment variable JAVA_HOME to the full path to JDK & GOTO end)
|
|
||||||
(CD "%JAVA_HOME%" 2>NUL) || (ECHO. & ECHO Directory "%JAVA_HOME%" specified by JAVA_HOME variable does not exist & GOTO end)
|
|
||||||
|
|
||||||
:required_variables_checked
|
|
||||||
POPD
|
|
||||||
|
|
||||||
:: check for ninja
|
|
||||||
echo "%MAKE%"|findstr /i ninja >nul:
|
|
||||||
IF %errorlevel%==1 (SET BUILD_WITH_NINJA=0) ELSE (SET BUILD_WITH_NINJA=1)
|
|
||||||
IF %BUILD_WITH_NINJA%==1 (SET CMAKE_GENERATOR=Ninja) ELSE (SET CMAKE_GENERATOR=MinGW Makefiles)
|
|
||||||
|
|
||||||
:: create build dir
|
|
||||||
IF DEFINED REBUILD rmdir /S /Q "%BUILD_DIR%" 2>NUL
|
|
||||||
MKDIR "%BUILD_DIR%" 2>NUL
|
|
||||||
PUSHD "%BUILD_DIR%" || (ECHO. & ECHO Directory "%BUILD_DIR%" is not found & GOTO end)
|
|
||||||
|
|
||||||
:: run cmake
|
|
||||||
ECHO. & ECHO Runnning cmake...
|
|
||||||
ECHO ANDROID_ABI=%ANDROID_ABI%
|
|
||||||
ECHO.
|
|
||||||
IF NOT %BUILD_OPENCV%==1 GOTO other-cmake
|
|
||||||
:opencv-cmake
|
|
||||||
("%CMAKE%" -G"%CMAKE_GENERATOR%" -DANDROID_ABI="%ANDROID_ABI%" -DCMAKE_TOOLCHAIN_FILE="%SOURCE_DIR%"\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM="%MAKE%" %* "%SOURCE_DIR%\..") && GOTO cmakefin
|
|
||||||
ECHO. & ECHO cmake failed & GOTO end
|
|
||||||
:other-cmake
|
|
||||||
("%CMAKE%" -G"%CMAKE_GENERATOR%" -DANDROID_ABI="%ANDROID_ABI%" -DOpenCV_DIR="%OPENCV_BUILD_DIR%" -DCMAKE_TOOLCHAIN_FILE="%OPENCV_BUILD_DIR%\..\android.toolchain.cmake" -DCMAKE_MAKE_PROGRAM="%MAKE%" %* "%SOURCE_DIR%") && GOTO cmakefin
|
|
||||||
ECHO. & ECHO cmake failed & GOTO end
|
|
||||||
:cmakefin
|
|
||||||
|
|
||||||
:: run make
|
|
||||||
ECHO. & ECHO Building native libs...
|
|
||||||
IF %BUILD_WITH_NINJA%==0 ("%MAKE%" -j %NUMBER_OF_PROCESSORS% VERBOSE=%VERBOSE%) || (ECHO. & ECHO make failed & GOTO end)
|
|
||||||
IF %BUILD_WITH_NINJA%==1 ("%MAKE%") || (ECHO. & ECHO ninja failed & GOTO end)
|
|
||||||
|
|
||||||
IF NOT %BUILD_JAVA_PART%==1 GOTO end
|
|
||||||
POPD && PUSHD %SOURCE_DIR%
|
|
||||||
|
|
||||||
:: configure java part
|
|
||||||
ECHO. & ECHO Updating Android project...
|
|
||||||
(CALL "%ANDROID_SDK%\tools\android" update project --name %PROJECT_NAME% --path .) || (ECHO. & ECHO failed to update android project & GOTO end)
|
|
||||||
|
|
||||||
:: compile java part
|
|
||||||
ECHO. & ECHO Compiling Android project...
|
|
||||||
(CALL "%ANT_DIR%\bin\ant" debug) || (ECHO. & ECHO failed to compile android project & GOTO end)
|
|
||||||
|
|
||||||
:end
|
|
||||||
POPD
|
|
||||||
ENDLOCAL
|
|
@ -1,5 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
PUSHD %~dp0..
|
|
||||||
CALL .\scripts\build.cmd %* -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
|
|
||||||
POPD
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd `dirname $0`/..
|
|
||||||
|
|
||||||
mkdir -p build_armeabi
|
|
||||||
cd build_armeabi
|
|
||||||
|
|
||||||
cmake -DANDROID_ABI=armeabi -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd `dirname $0`/..
|
|
||||||
|
|
||||||
mkdir -p build_mips
|
|
||||||
cd build_mips
|
|
||||||
|
|
||||||
cmake -DANDROID_ABI=mips -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd `dirname $0`/..
|
|
||||||
|
|
||||||
mkdir -p build_neon
|
|
||||||
cd build_neon
|
|
||||||
|
|
||||||
cmake -DANDROID_ABI="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd `dirname $0`/..
|
|
||||||
|
|
||||||
mkdir -p build_service
|
|
||||||
cd build_service
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.4.3" -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../..
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cd `dirname $0`/..
|
|
||||||
|
|
||||||
mkdir -p build_x86
|
|
||||||
cd build_x86
|
|
||||||
|
|
||||||
cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
:: variables required for OpenCV build ::
|
|
||||||
:: Note: all pathes should be specified without tailing slashes!
|
|
||||||
SET ANDROID_NDK=C:\full\path\to\your\copy\of\android\NDK\android-ndk-r7b
|
|
||||||
SET CMAKE_EXE=C:\full\path\to\cmake\utility\cmake.exe
|
|
||||||
SET MAKE_EXE=%ANDROID_NDK%\prebuilt\windows\bin\make.exe
|
|
||||||
|
|
||||||
:: variables required for android-opencv build ::
|
|
||||||
SET ANDROID_SDK=C:\full\path\to\your\copy\of\android\SDK\android-sdk-windows
|
|
||||||
SET ANT_DIR=C:\full\path\to\ant\directory\apache-ant-1.8.2
|
|
||||||
SET JAVA_HOME=C:\full\path\to\JDK\jdk1.6.0_25
|
|
||||||
|
|
||||||
:: configuration options ::
|
|
||||||
:::: general ARM-V7 settings
|
|
||||||
SET ANDROID_ABI=armeabi-v7a
|
|
||||||
SET BUILD_DIR=build
|
|
||||||
|
|
||||||
:::: uncomment following lines to compile for old emulator or old device
|
|
||||||
::SET ANDROID_ABI=armeabi
|
|
||||||
::SET BUILD_DIR=build_armeabi
|
|
||||||
|
|
||||||
:::: uncomment following lines to compile for ARM-V7 with NEON support
|
|
||||||
::SET ANDROID_ABI=armeabi-v7a with NEON
|
|
||||||
::SET BUILD_DIR=build_neon
|
|
||||||
|
|
||||||
:::: uncomment following lines to compile for x86
|
|
||||||
::SET ANDROID_ABI=x86
|
|
||||||
::SET BUILD_DIR=build_x86
|
|
||||||
|
|
||||||
:::: other options
|
|
||||||
::SET ANDROID_NATIVE_API_LEVEL=8 &:: android-3 is enough for native part of OpenCV but android-8 is required for Java API
|
|
@ -1,89 +0,0 @@
|
|||||||
# Makefile for Sphinx documentation
|
|
||||||
#
|
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
|
||||||
SPHINXOPTS =
|
|
||||||
SPHINXBUILD = sphinx-build
|
|
||||||
PAPER =
|
|
||||||
BUILDDIR = _build
|
|
||||||
|
|
||||||
# Internal variables.
|
|
||||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
||||||
PAPEROPT_letter = -D latex_paper_size=letter
|
|
||||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
||||||
|
|
||||||
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
|
|
||||||
|
|
||||||
help:
|
|
||||||
@echo "Please use \`make <target>' where <target> is one of"
|
|
||||||
@echo " html to make standalone HTML files"
|
|
||||||
@echo " dirhtml to make HTML files named index.html in directories"
|
|
||||||
@echo " pickle to make pickle files"
|
|
||||||
@echo " json to make JSON files"
|
|
||||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
|
||||||
@echo " qthelp to make HTML files and a qthelp project"
|
|
||||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
|
||||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
|
||||||
@echo " linkcheck to check all external links for integrity"
|
|
||||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -rf $(BUILDDIR)/*
|
|
||||||
|
|
||||||
html:
|
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
|
||||||
|
|
||||||
dirhtml:
|
|
||||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
|
||||||
@echo
|
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
|
||||||
|
|
||||||
pickle:
|
|
||||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can process the pickle files."
|
|
||||||
|
|
||||||
json:
|
|
||||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can process the JSON files."
|
|
||||||
|
|
||||||
htmlhelp:
|
|
||||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
|
||||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
|
||||||
|
|
||||||
qthelp:
|
|
||||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
|
||||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
|
||||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/OpenCVEngine.qhcp"
|
|
||||||
@echo "To view the help file:"
|
|
||||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/OpenCVEngine.qhc"
|
|
||||||
|
|
||||||
latex:
|
|
||||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
||||||
@echo
|
|
||||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
|
||||||
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
|
|
||||||
"run these through (pdf)latex."
|
|
||||||
|
|
||||||
changes:
|
|
||||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
||||||
@echo
|
|
||||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
|
||||||
|
|
||||||
linkcheck:
|
|
||||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
||||||
@echo
|
|
||||||
@echo "Link check complete; look for any errors in the above output " \
|
|
||||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
||||||
|
|
||||||
doctest:
|
|
||||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
|
||||||
@echo "Testing of doctests in the sources finished, look at the " \
|
|
||||||
"results in $(BUILDDIR)/doctest/output.txt."
|
|
@ -162,7 +162,7 @@ if(UNIX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
install(FILES "${OpenCV_SOURCE_DIR}/android/android.toolchain.cmake" DESTINATION ${OPENCV_CONFIG_INSTALL_PATH}/)
|
install(FILES "${OpenCV_SOURCE_DIR}/platforms/android/android.toolchain.cmake" DESTINATION ${OPENCV_CONFIG_INSTALL_PATH}/)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------
|
||||||
|
@ -53,8 +53,8 @@ if(BUILD_DOCS AND HAVE_SPHINX)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
file(GLOB_RECURSE _OPENCV_FILES_REF "${OpenCV_SOURCE_DIR}/android/service/doc/*.rst")
|
file(GLOB_RECURSE _OPENCV_FILES_REF "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.rst")
|
||||||
file(GLOB_RECURSE _OPENCV_FILES_REF_PICT "${OpenCV_SOURCE_DIR}/android/service/doc/*.png" "${OpenCV_SOURCE_DIR}/android/service/doc/*.jpg")
|
file(GLOB_RECURSE _OPENCV_FILES_REF_PICT "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.png" "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.jpg")
|
||||||
list(APPEND OPENCV_FILES_REF ${_OPENCV_FILES_REF})
|
list(APPEND OPENCV_FILES_REF ${_OPENCV_FILES_REF})
|
||||||
list(APPEND OPENCV_FILES_REF_PICT ${_OPENCV_FILES_REF_PICT})
|
list(APPEND OPENCV_FILES_REF_PICT ${_OPENCV_FILES_REF_PICT})
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ latex_documents = [
|
|||||||
u'', 'manual'),
|
u'', 'manual'),
|
||||||
('doc/tutorials/tutorials', 'opencv_tutorials.tex', u'The OpenCV Tutorials',
|
('doc/tutorials/tutorials', 'opencv_tutorials.tex', u'The OpenCV Tutorials',
|
||||||
u'', 'manual'),
|
u'', 'manual'),
|
||||||
('android/refman', 'opencv2manager.tex', u'The OpenCV Manager Manual',
|
('platforms/android/refman', 'opencv2manager.tex', u'The OpenCV Manager Manual',
|
||||||
u'', 'manual'),
|
u'', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Welcome to opencv documentation!
|
|||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
modules/refman.rst
|
modules/refman.rst
|
||||||
android/refman.rst
|
platforms/android/refman.rst
|
||||||
doc/user_guide/user_guide.rst
|
doc/user_guide/user_guide.rst
|
||||||
doc/tutorials/tutorials.rst
|
doc/tutorials/tutorials.rst
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ set(the_description "Auxiliary module for Android native camera support")
|
|||||||
set(OPENCV_MODULE_TYPE STATIC)
|
set(OPENCV_MODULE_TYPE STATIC)
|
||||||
|
|
||||||
ocv_define_module(androidcamera INTERNAL opencv_core log dl)
|
ocv_define_module(androidcamera INTERNAL opencv_core log dl)
|
||||||
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/camera_wrapper" "${OpenCV_SOURCE_DIR}/android/service/engine/jni/include")
|
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/camera_wrapper" "${OpenCV_SOURCE_DIR}/platforms/android/service/engine/jni/include")
|
||||||
|
|
||||||
# Android source tree for native camera
|
# Android source tree for native camera
|
||||||
SET (ANDROID_SOURCE_TREE "ANDROID_SOURCE_TREE-NOTFOUND" CACHE PATH
|
SET (ANDROID_SOURCE_TREE "ANDROID_SOURCE_TREE-NOTFOUND" CACHE PATH
|
||||||
|
1632
platforms/android/android.toolchain.cmake
Normal file
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@ -24,7 +24,7 @@ else()
|
|||||||
message(WARNING "Can not automatically determine the value for ANDROID_PLATFORM_VERSION_CODE")
|
message(WARNING "Can not automatically determine the value for ANDROID_PLATFORM_VERSION_CODE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${ANDROID_MANIFEST_FILE}" "${OpenCV_BINARY_DIR}/android/service/engine/.build/${ANDROID_MANIFEST_FILE}" @ONLY)
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${ANDROID_MANIFEST_FILE}" "${OpenCV_BINARY_DIR}/platforms/android/service/engine/.build/${ANDROID_MANIFEST_FILE}" @ONLY)
|
||||||
|
|
||||||
link_directories("${ANDROID_SOURCE_TREE}/out/target/product/generic/system/lib" "${ANDROID_SOURCE_TREE}/out/target/product/${ANDROID_PRODUCT}/system/lib" "${ANDROID_SOURCE_TREE}/bin/${ANDROID_ARCH_NAME}")
|
link_directories("${ANDROID_SOURCE_TREE}/out/target/product/generic/system/lib" "${ANDROID_SOURCE_TREE}/out/target/product/${ANDROID_PRODUCT}/system/lib" "${ANDROID_SOURCE_TREE}/bin/${ANDROID_ARCH_NAME}")
|
||||||
|
|
||||||
@ -72,4 +72,3 @@ file(GLOB engine_test_files "jni/Tests/*.cpp")
|
|||||||
|
|
||||||
add_executable(opencv_test_engine ${engine_test_files} jni/Tests/gtest/gtest-all.cpp)
|
add_executable(opencv_test_engine ${engine_test_files} jni/Tests/gtest/gtest-all.cpp)
|
||||||
target_link_libraries(opencv_test_engine z binder log utils android_runtime ${engine} ${engine}_jni)
|
target_link_libraries(opencv_test_engine z binder log utils android_runtime ${engine} ${engine}_jni)
|
||||||
|
|
@ -222,4 +222,3 @@ TEST(PackageInfo, Comparator3)
|
|||||||
EXPECT_EQ(info1, info2);
|
EXPECT_EQ(info1, info2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -137,5 +137,3 @@ TEST(PackageManager, GetPackagePathForMips)
|
|||||||
// string path = pm.GetPackagePathByVersion("240", PLATFORM_TEGRA2, 0);
|
// string path = pm.GetPackagePathByVersion("240", PLATFORM_TEGRA2, 0);
|
||||||
// EXPECT_STREQ("/data/data/org.opencv.lib_v24_tegra2/lib", path.c_str());
|
// EXPECT_STREQ("/data/data/org.opencv.lib_v24_tegra2/lib", path.c_str());
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|