ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Android 용으로 OpenCV 4.1.1 빌드하는 방법 (Build OpenCV 4.1.1 for android )
    OpenCV/Android 개발 환경 및 예제 2019. 8. 14. 21:56



    Android 용으로 OpenCV를 빌드하는 방법을 설명합니다.

    Extra 모듈인 contrib를 포함시켜 빌드합니다.




    2018. 11. 19 : 최초 작성

    2019. 5. 8

    2019. 5. 15 : contrib 추가

    2019. 5. 16 : nonfree 옵션 추가 (surf 사용시 필요)

    2019. 5. 16 : opencl 활성화   

    2019. 8. 14 : OpenCV 4.1.1용 추가     

              




    OpenCV 4.1.0을 안드로이드용으로 빌드가 안되는데 원인을 알수 없는 경우가 있어서..

    다른 프로그램의 영향이 없도록 윈도우를 새로 설치해서 다시 진행해봤습니다. 


    가급적 OpenCV 4.1.1로 진행하세요.



    테스트 환경은 다음과 같습니다. 


    • Windows 10

    • OpenCV 4.1.1

    • Android Studio 3.4.2

    • Android 9.+ (API 29)

    • NDK 20














    포스트 작성시에는 문제 없었지만 이후 문제가 생길 수 있습니다.
    댓글로 알려주시면 빠른 시일내에 답변을 드리겠습니다.

    여러분의 응원으로 좋은 컨텐츠가 만들어집니다. 지금 본 내용이 도움이 되었다면 유튜브 구독 부탁드립니다. 감사합니다 : )

    유튜브 구독하기


    댓글 224

    • 이전 댓글 더보기
    • LeeJae 2019.05.10 21:53


      C:\opencv-4.1.0_source\build>ninja -j4
      [1/51] Building OpenCV Android library project
      FAILED: bin/classes.jar CMakeFiles/dephelper/opencv_java_android
      cmd.exe /C "cd /D C:\opencv-4.1.0_source\build\android_sdk && C:\ant\bin\ant.bat -q -noinput -k debug -Djava.target=1.6 -Djava.source=1.6 && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/opencv-4.1.0_source/build/CMakeFiles/dephelper/opencv_java_android"
      Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_181\lib\tools.jar
      [subant] No sub-builds to iterate on
      Target '-compile' failed with message 'The following error occurred while executing this line:
      C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:730: Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK.
      It is currently set to "C:\Program Files\Java\jre1.8.0_181"'.
      Cannot execute '-dex' - '-compile' failed or was not executed.
      Cannot execute '-package' - '-dex' failed or was not executed.
      Cannot execute '-do-debug' - '-package' failed or was not executed.
      Cannot execute 'debug' - '-do-debug' failed or was not executed.

      BUILD FAILED
      C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
      C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:730: Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK.
      It is currently set to "C:\Program Files\Java\jre1.8.0_181"

      Total time: 3 seconds
      [2/51] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/undistort.cpp.o


      -----------여기서 계속 오류나는데 어떻게 해야하죠 ㅠㅠ..

    • LeeJae 2019.05.13 21:49


      BUILD FAILED
      C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
      C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:730: Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK.
      It is currently set to "C:\Program Files\Java\jre1.8.0_211"

      Total time: 3 seconds
      [782/882] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.o
      ninja: build stopped: subcommand failed.

      ----------------여기서 계속 멈추네요... 1시간째 build 지웠다 다시하고.. 계속 오류가 나네요 ㅠㅠㅠ

      7번도 다했는데 ... 흠..

      여기서 무시하고
      C:\opencv-4.0.0\build>ninja -j4 이거 다시치면 다음으로 넘어가지는것같은데 그렇게 진행하면 안되겠죠 ??

      • LeeJae 2019.05.13 22:02


        BUILD FAILED
        C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
        C:\Users\JG\AppData\Local\Android\Sdk\tools\ant\build.xml:730: Unable to find a javac compiler;
        com.sun.tools.javac.Main is not on the classpath.
        Perhaps JAVA_HOME does not point to the JDK.
        It is currently set to "C:\Program Files\Java\jre1.8.0_211"

        Total time: 3 seconds
        [27/75] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.o
        ninja: build stopped: subcommand failed.


        -- 무시하고 더진행해도 결국 똑같은 오류로 계속 멈추는것같네요 ..
        JDK 설치 완료
        JAVA_HOME 시스템환경변수 추가 다했는데 음 .......머가 문제일까요 ㅠㅠ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.13 22:02 신고


        에러메시지에 JAVA_HOME이 jdk가 아니라 jre로 지정되어 있다고 합니다.. 이부분을 수정해야 할듯합니다

      • LeeJae 2019.05.14 17:34


        감사합니다! ㅠㅠ 근데 JAVA_HOME 이부분이 아니라 이상하게 PATH부분 C:\Program Files\Java\jdk1.8.0_211\jdk1.8.0_211\bin; 경로 부분에 C: 가 아닌 C; 이렇게 되있어서 경로를 못찾아서 생긴 오류 잡았습니다!

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.14 17:35 신고


        원인을 찾아서 다행입니다 : )

    • sh감기약 2019.05.16 11:44


      최신버전으로 올려주시는 것과 contrib 포함버전 방법을 올려주신 것에 항상 깊은 감사를 드립니다.
      덕분에 좋은 자료들 보고 공부하고 갑니다.
      개발자님, 정말 감사합니다.

    • DK 2019.05.19 20:55


      Build command failed.
      Error while executing process C:\Users\kihong\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\kihong\AndroidStudioProjects\LBPHTest\app\.externalNativeBuild\cmake\debug\x86 --target native-lib}

      ninja: error: 'C:/Users/kihong/AndroidStudioProjects/LBPHTest/opencv/native/libs/x86/libopencv_java4.so', needed by 'C:/Users/kihong/AndroidStudioProjects/LBPHTest/app/build/intermediates/cmake/debug/obj/x86/libnative-lib.so', missing and no known rule to make it

      새로운 프로젝트에 Extra모듈을 포함하는 opencv를 쓰려고 하는데 이러한 오류가 뜹니다. 예상으로는 arm64-v8a만 추가되어서 그런건가요?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.19 21:03 신고


        맞습니다. x86을 위해 추가로 진행해줘야 합니다.

      • DK 2019.05.19 21:23


        c:\opencv-4.0.0\build>cmake -GNinja -DCMAKE_INSTALL_PREFIX=C:/OpenCV-android-sdk -DANDROID_PROJECTS_BUILD_TYPE=”ANT" -DBUILD_ANDROID_PROJECTS=ON -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_JAVA=ON -DBUILD_opencv_java=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FAT_JAVA_LIB=ON -DBUILD_PYTHON=OFF -DINSTALL_ANDROID_EXAMPLES=OFF -DANDROID_EXAMPLES_WITH_LIBS=OFF -DBUILD_DOCS=OFF -DWITH_OPENCL=OFF -DANDROID_NDK_HOST_X64=ON -DCMAKE_TOOLCHAIN_FILE=C:/Users/hyunsuoh/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NDK=C:/Users/hyunsuoh/AppData/Local/Android/Sdk/ndk-bundle -DANDROID_SDK=C:/Users/hyunsuoh/AppData/Local/Android/Sdk -DANDROID_TOOLCHAIN=clang -DANDROID_STL=c++_static -DANDROID_ARM_NEON=ON -DANDROID_ABI=arm64-v8a -DANDROID_NDK_HOST_X64=ON -DANDROID_SDK_TARGET=28 ..
        이 명령어를 DANDROID_ABI=x86으로 바꿔서 다시 cmd에 입력해야 되는건가요? 추가 설치를 무슨 명령어로 해야할지 모르겠어요ㅠㅠ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 11:27 신고


        그렇게 진행해보세요

    • 안드개발자 2019.05.22 18:19


      build.ninja가 안생겨서 CMakeError.log를 확인해보니

      CheckIncludeFile.c:1:10: fatal error: 'io.h' file not found
      #include <io.h>
      ^~~~~~
      1 error generated.
      ninja: build stopped: subcommand failed.

      이런 에러가 나는군요.

      아래쪽에서는 io 쪽에서 사용하는 듯한 함수들에서 에러가 계속 나고 있구요.

      혹시 아시는 내용 있으시면 조언 부탁드립니다.

      감사합니다~

      • opencv 2019.05.23 10:09


        저도 동일한 증상입니

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 11:27 신고


        왜 에러나는지 알수 없군요.. 혹시 맥인가요?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 13:33 신고


        다시 확인해보니 ndk를 설치하면 포함되는 군요..
        다음 위치에 설치됩니다.

        C:\Users\webnautes\AppData\Local\Android\Sdk\ndk-bundle\sources\third_party\shaderc\libshaderc_util\include\libshaderc_util

      • 안드개발자 2019.05.23 14:44


        환경은 전부 동일하게 맞췄습니다.

        놀고 있는 노트북 한대 있어서, 처음부터 똑같이 해봤는데 동일한 오류가 발생하네요.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 17:41 신고


        cmake 실행시 다음처럼 ndk가 잡히지 않나보세요?

        -- Check for working CXX compiler: C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
        -- Check for working CXX compiler: C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Check for working C compiler: C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
        -- Check for working C compiler: C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- works

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 17:42 신고


        다시 확인해보니 다음처럼 io.h는 발견못하지만.. 빌드는 잘되고 있습니다.

        -- Looking for io.h
        -- Looking for io.h - not found

      • 안드개발자 2019.05.23 18:28


        3번째 PC에서도 해봤는데 PC의 문제는 아닌거 같네요.

        --------------
        콘솔 로그

        -- Check for working CXX compiler: C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
        -- Check for working CXX compiler: C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Check for working C compiler: C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
        -- Check for working C compiler: C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done



        --------------
        CMakeError.log

        Determining if the include file io.h exists failed with the following output:
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_742ad
        [1/2] Building C object CMakeFiles/cmTC_742ad.dir/CheckIncludeFile.c.o

        FAILED: CMakeFiles/cmTC_742ad.dir/CheckIncludeFile.c.o

        C:\Users\weandsoft\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIE -o CMakeFiles/cmTC_742ad.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c

        CheckIncludeFile.c:1:10: fatal error: 'io.h' file not found

        #include <io.h>

        ^~~~~~

        1 error generated.

        ninja: build stopped: subcommand failed.



        Determining size of INT8 failed with the following output:
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_4077a
        [1/2] Building C object CMakeFiles/cmTC_4077a.dir/int8.c.o

        FAILED: CMakeFiles/cmTC_4077a.dir/int8.c.o

        C:\Users\weandsoft\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIE -o CMakeFiles/cmTC_4077a.dir/int8.c.o -c C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:25:12: error: use of undeclared identifier 'INT8'

        ('0' + ((SIZE / 10000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT8))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:26:12: error: use of undeclared identifier 'INT8'

        ('0' + ((SIZE / 1000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT8))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:27:12: error: use of undeclared identifier 'INT8'

        ('0' + ((SIZE / 100)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT8))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:28:12: error: use of undeclared identifier 'INT8'

        ('0' + ((SIZE / 10)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT8))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:29:12: error: use of undeclared identifier 'INT8'

        ('0' + (SIZE % 10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT8))

        ^

        5 errors generated.

        ninja: build stopped: subcommand failed.


        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int8.c:
        #include <sys/types.h>
        #include <stdint.h>
        #include <stddef.h>


        #undef KEY
        #if defined(__i386)
        # define KEY '_','_','i','3','8','6'
        #elif defined(__x86_64)
        # define KEY '_','_','x','8','6','_','6','4'
        #elif defined(__ppc__)
        # define KEY '_','_','p','p','c','_','_'
        #elif defined(__ppc64__)
        # define KEY '_','_','p','p','c','6','4','_','_'
        #elif defined(__aarch64__)
        # define KEY '_','_','a','a','r','c','h','6','4','_','_'
        #elif defined(__ARM_ARCH_7A__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
        #elif defined(__ARM_ARCH_7S__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
        #endif

        #define SIZE (sizeof(INT8))
        char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
        ('0' + ((SIZE / 10000)%10)),
        ('0' + ((SIZE / 1000)%10)),
        ('0' + ((SIZE / 100)%10)),
        ('0' + ((SIZE / 10)%10)),
        ('0' + (SIZE % 10)),
        ']',
        #ifdef KEY
        ' ','k','e','y','[', KEY, ']',
        #endif
        '\0'};

        #ifdef __CLASSIC_C__
        int main(argc, argv) int argc; char *argv[];
        #else
        int main(int argc, char *argv[])
        #endif
        {
        int require = 0;
        require += info_size[argc];
        (void)argv;
        return require;
        }


        Determining size of INT16 failed with the following output:
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_6c0cf
        [1/2] Building C object CMakeFiles/cmTC_6c0cf.dir/int16.c.o

        FAILED: CMakeFiles/cmTC_6c0cf.dir/int16.c.o

        C:\Users\weandsoft\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIE -o CMakeFiles/cmTC_6c0cf.dir/int16.c.o -c C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:25:12: error: use of undeclared identifier 'INT16'

        ('0' + ((SIZE / 10000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT16))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:26:12: error: use of undeclared identifier 'INT16'

        ('0' + ((SIZE / 1000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT16))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:27:12: error: use of undeclared identifier 'INT16'

        ('0' + ((SIZE / 100)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT16))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:28:12: error: use of undeclared identifier 'INT16'

        ('0' + ((SIZE / 10)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT16))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:29:12: error: use of undeclared identifier 'INT16'

        ('0' + (SIZE % 10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT16))

        ^

        5 errors generated.

        ninja: build stopped: subcommand failed.


        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int16.c:
        #include <sys/types.h>
        #include <stdint.h>
        #include <stddef.h>


        #undef KEY
        #if defined(__i386)
        # define KEY '_','_','i','3','8','6'
        #elif defined(__x86_64)
        # define KEY '_','_','x','8','6','_','6','4'
        #elif defined(__ppc__)
        # define KEY '_','_','p','p','c','_','_'
        #elif defined(__ppc64__)
        # define KEY '_','_','p','p','c','6','4','_','_'
        #elif defined(__aarch64__)
        # define KEY '_','_','a','a','r','c','h','6','4','_','_'
        #elif defined(__ARM_ARCH_7A__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
        #elif defined(__ARM_ARCH_7S__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
        #endif

        #define SIZE (sizeof(INT16))
        char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
        ('0' + ((SIZE / 10000)%10)),
        ('0' + ((SIZE / 1000)%10)),
        ('0' + ((SIZE / 100)%10)),
        ('0' + ((SIZE / 10)%10)),
        ('0' + (SIZE % 10)),
        ']',
        #ifdef KEY
        ' ','k','e','y','[', KEY, ']',
        #endif
        '\0'};

        #ifdef __CLASSIC_C__
        int main(argc, argv) int argc; char *argv[];
        #else
        int main(int argc, char *argv[])
        #endif
        {
        int require = 0;
        require += info_size[argc];
        (void)argv;
        return require;
        }


        Determining size of INT32 failed with the following output:
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_85d6a
        [1/2] Building C object CMakeFiles/cmTC_85d6a.dir/int32.c.o

        FAILED: CMakeFiles/cmTC_85d6a.dir/int32.c.o

        C:\Users\weandsoft\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIE -o CMakeFiles/cmTC_85d6a.dir/int32.c.o -c C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:25:12: error: use of undeclared identifier 'INT32'

        ('0' + ((SIZE / 10000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT32))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:26:12: error: use of undeclared identifier 'INT32'

        ('0' + ((SIZE / 1000)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT32))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:27:12: error: use of undeclared identifier 'INT32'

        ('0' + ((SIZE / 100)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT32))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:28:12: error: use of undeclared identifier 'INT32'

        ('0' + ((SIZE / 10)%10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT32))

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:29:12: error: use of undeclared identifier 'INT32'

        ('0' + (SIZE % 10)),

        ^

        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:23:22: note: expanded from macro 'SIZE'

        #define SIZE (sizeof(INT32))

        ^

        5 errors generated.

        ninja: build stopped: subcommand failed.


        C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CheckTypeSize/int32.c:
        #include <sys/types.h>
        #include <stdint.h>
        #include <stddef.h>


        #undef KEY
        #if defined(__i386)
        # define KEY '_','_','i','3','8','6'
        #elif defined(__x86_64)
        # define KEY '_','_','x','8','6','_','6','4'
        #elif defined(__ppc__)
        # define KEY '_','_','p','p','c','_','_'
        #elif defined(__ppc64__)
        # define KEY '_','_','p','p','c','6','4','_','_'
        #elif defined(__aarch64__)
        # define KEY '_','_','a','a','r','c','h','6','4','_','_'
        #elif defined(__ARM_ARCH_7A__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
        #elif defined(__ARM_ARCH_7S__)
        # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
        #endif

        #define SIZE (sizeof(INT32))
        char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
        ('0' + ((SIZE / 10000)%10)),
        ('0' + ((SIZE / 1000)%10)),
        ('0' + ((SIZE / 100)%10)),
        ('0' + ((SIZE / 10)%10)),
        ('0' + (SIZE % 10)),
        ']',
        #ifdef KEY
        ' ','k','e','y','[', KEY, ']',
        #endif
        '\0'};

        #ifdef __CLASSIC_C__
        int main(argc, argv) int argc; char *argv[];
        #else
        int main(int argc, char *argv[])
        #endif
        {
        int require = 0;
        require += info_size[argc];
        (void)argv;
        return require;
        }


        Determining if the function setmode exists failed with the following output:
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_e6e0c
        [1/2] Building C object CMakeFiles/cmTC_e6e0c.dir/CheckFunctionExists.c.o

        [2/2] Linking C executable cmTC_e6e0c

        FAILED: cmTC_e6e0c

        cmd.exe /C "cd . && C:\Users\weandsoft\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/weandsoft/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -DCHECK_FUNCTION_EXISTS=setmode -O2 -DNDEBUG -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections CMakeFiles/cmTC_e6e0c.dir/CheckFunctionExists.c.o -o cmTC_e6e0c -latomic -lm && cd ."

        CMakeFiles/cmTC_e6e0c.dir/CheckFunctionExists.c.o: In function `main':

        C:/Program Files/CMake/share/cmake-3.14/Modules/CheckFunctionExists.c:17: undefined reference to `setmode'

        clang.exe: error: linker command failed with exit code 1 (use -v to see invocation)

        ninja: build stopped: subcommand failed.



        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-unused-but-set-variable', did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.c'
        check option: ' -Wno-unused-but-set-variable'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_a0285
        [1/2] Building C object CMakeFiles/cmTC_a0285.dir/src.c.o

        warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]

        src.c:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking C executable cmTC_a0285


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-maybe-uninitialized', did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.c'
        check option: ' -Wno-maybe-uninitialized'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_37583
        [1/2] Building C object CMakeFiles/cmTC_37583.dir/src.c.o

        warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]

        src.c:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking C executable cmTC_37583


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-misleading-indentation', did you mean '-Wno-binding-in-condition'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.c'
        check option: ' -Wno-misleading-indentation'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_a9a56
        [1/2] Building C object CMakeFiles/cmTC_a9a56.dir/src.c.o

        warning: unknown warning option '-Wno-misleading-indentation'; did you mean '-Wno-binding-in-condition'? [-Wunknown-warning-option]

        src.c:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking C executable cmTC_a9a56


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-unused-but-set-parameter', did you mean '-Wno-unused-parameter'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.c'
        check option: ' -Wno-unused-but-set-parameter'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_18e72
        [1/2] Building C object CMakeFiles/cmTC_18e72.dir/src.c.o

        warning: unknown warning option '-Wno-unused-but-set-parameter'; did you mean '-Wno-unused-parameter'? [-Wunknown-warning-option]

        src.c:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking C executable cmTC_18e72


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-pointer-compare' [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.c'
        check option: ' -Wno-pointer-compare'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_b1bc2
        [1/2] Building C object CMakeFiles/cmTC_b1bc2.dir/src.c.o

        warning: unknown warning option '-Wno-pointer-compare' [-Wunknown-warning-option]

        src.c:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking C executable cmTC_b1bc2


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-misleading-indentation', did you mean '-Wno-binding-in-condition'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.cxx'
        check option: ' -Wno-misleading-indentation'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_cda6a
        [1/2] Building CXX object CMakeFiles/cmTC_cda6a.dir/src.cxx.o

        warning: unknown warning option '-Wno-misleading-indentation'; did you mean '-Wno-binding-in-condition'? [-Wunknown-warning-option]

        src.cxx:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking CXX executable cmTC_cda6a


        ===== END =====

        Build output check failed:
        Regex: 'unknown .*option'
        Output line: 'warning: unknown warning option '-Wno-suggest-override', did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]
        '
        Compilation failed:
        source file: 'C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp/src.cxx'
        check option: ' -Wno-suggest-override'
        ===== BUILD LOG =====
        Change Dir: C:/opencv-source/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_331ee
        [1/2] Building CXX object CMakeFiles/cmTC_331ee.dir/src.cxx.o

        warning: unknown warning option '-Wno-suggest-override'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]

        src.cxx:1:8: warning: unknown pragma ignored [-Wunknown-pragmas]

        #pragma

        ^

        2 warnings generated.

        [2/2] Linking CXX executable cmTC_331ee


        ===== END =====

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 18:34 신고


        혹시 cmake에서 다음 옵션을 다른 아키텍쳐로 바꾸었나요?

        그외 바꾼 옵션은 없나요?

        -DANDROID_ABI=arm64-v8a

      • 안드개발자 2019.05.23 18:41


        사용자명만 제가 쓰는 이름으로 바꿨습니다. 그외에는 모두 동일하게 맞췄습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 18:51 신고


        10번에 있는 cmake 결과와 다른 점이 있나 확인해보세요..

        뭔가 다른 점이 있어서 발생하는 듯합니다..

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 20:07 신고


        안드로이드 스튜디오를 재설치하여 똑같은 현상이 일어나는지 테스트해보고 있습니다..

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.23 20:51 신고


        문제가 없네요..

        cmake시 사용하는 다음 옵션의 디렉토리를 확인해볼 필요가 있는듯합니다..

        -DCMAKE_TOOLCHAIN_FILE=C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake

        -DANDROID_NDK=C:/Users/webnautes/AppData/Local/Android/Sdk/ndk-bundle

        -DANDROID_SDK=C:/Users/webnautes/AppData/Local/Android/Sdk

      • 안드개발자 2019.05.27 10:31


        10번에 있는건 항상 동일한거 확인했습니다.

        디렉토리도 전부 정상이구요.

        권한쪽도 문제가 없어 보이는데 4개 PC에서 모두 동일한 이슈가 발생하네요.

        일단 구글링을 계속해보긴 하는데 쉽게 찾아지진 않네요.

        답변들 감사합니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.27 11:06 신고


        안드로이드 스튜디오에서 Android SDK Tools를 제외하고 나머지를 최신버전으로 사용하는데도 문제가 되나요?

      • 안드개발자 2019.05.27 18:28


        스튜디오 3.4.1로 업데이트 후 링크걸어주신 tools로 변환해서 사용중입니다.

        NDK 추가적으로 체크되어있습니다.

      • 안드개발자 2019.06.12 10:54


        MinGW를 통해서 빌드 성공했습니다.

        제 친구도 시켜봤는데 똑같은 에러 떠러 그냥 다른 방향으로 틀었네요.

    • LeeJae 2019.05.26 18:33



      BUILD SUCCESSFUL
      Total time: 19 seconds
      [1231/1231] Linking CXX shared library jni\arm64-v8a\libopencv_java4.so

      ----
      이렇게 ninja -j4 가 종료됬는데 1258 이아니라 1231 이여도 상관없는거 맞죠 ?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.26 18:34 신고


        괜찮습니다.

      • LeeJae 2019.05.26 18:48


        Build command failed.
        Error while executing process C:\Users\JG\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\JG\AndroidStudioProjects\SurfExample\app\.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib}
        [1/2] Building CXX object CMakeFiles/native-lib.dir/native-lib.cpp.o
        FAILED: C:\Users\JG\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/JG/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/JG/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dnative_lib_EXPORTS -IC:/Users/jg/AndroidStudioProjects/SurfExample/opencv/native/jni/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -std=gnu++11 -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/native-lib.cpp.o -c C:\Users\JG\AndroidStudioProjects\SurfExample\app\src\main\cpp\native-lib.cpp
        C:\Users\JG\AndroidStudioProjects\SurfExample\app\src\main\cpp\native-lib.cpp:10:10: fatal error: 'opencv2/xfeatures2d.hpp' file not found

        #include "opencv2/xfeatures2d.hpp"

        ^~~~~~~~~~~~~~~~~~~~~~~~~

        1 error generated.

        ninja: build stopped: subcommand failed.


        ---surf예제 실행하면 이렇게 계속오류가 뜨네요 .. 다시깔아도 똑같이 흠 ,,.,
        xfeatures2d.hpp" 이것만 빨간 줄이 뜨네요 ..ㅜㅜ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.26 18:52 신고


        cmake 실행결과에서 To be built:항목에 xfeatures2d가 있는지 확인해보세요. 이렇게되야 에러가 나지 않습니다.

      • LeeJae 2019.05.26 19:01


        aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto

        --cmake 실행하면 to be built에 위에랑 똑같이 나옵니다... ㅜㅜ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.26 19:17 신고


        다음 위치에 xfeatures2d.hpp가 있는지 보세요.

        C:\OpenCV-android-sdk\sdk\native\jni\include\opencv2


        cmake 실행시 -DOPENCV_ENABLE_NONFREE=ON 옵션만 추가되있으면.. 되는데 이상하군요..

      • LeeJae 2019.05.26 19:39


        해결했습니다! 기존에 module 을 delete하고 다시 import 진행했더니 되었습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.05.26 21:39 신고


        아.. 다행입니다 : )

    • ek 2019.06.01 18:37


      안녕하세요 개발자님,
      지금 순차적으로 진행중인데 cmd 창에서 cmake를 하게되면 주의하라던 노란부분은 다 알맞게 됩니다.
      본인의 cmd창 노란내용
      =========================
      -- Android NDK: C:/Users/eknote/AppData/Local/Android/Sdk/ndk-bundle (ver 19.2.5345600)
      -- Android ABI: arm64-v8a
      -- NDK toolchain: aarch64-linux-android-clang
      -- STL type: c++_static
      -- Native API level: 21
      -- Android SDK: C:/Users/eknote/AppData/Local/Android/Sdk (tools: 25.2.5 build tools: 28.0.3)
      -- android tool: C:/Users/eknote/AppData/Local/Android/Sdk/tools/android.bat
      -- SDK target: android-28
      -- Projects build scripts: Ant/Eclipse compatible
      .
      .
      -- OpenCL: YES (no extra features)
      -- Include path: C:/opencv-sources/opencv-4.1.0/3rdparty/include/opencl/1.2
      -- Link libraries: Dynamic load
      .
      .
      -- Java: export all functions
      -- ant: C:/ant/bin/ant.bat (ver 1.10.6)
      -- Java wrappers: YES
      -- Java tests: NO
      ============================
      하지만 계속해서 오류가 나타납니다. 오류내용은 아래와 같습니다.
      -- Configuring incomplete, errors occurred!
      See also "C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeOutput.log".
      See also "C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeError.log".

      문제가 무엇인지 알려주세요!

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.06.01 18:55 신고


        로그 아래쪽에 있는 다음 두 파일의 내용을 확인해봐야 합니다.

        See also "C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeOutput.log".
        See also "C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeError.log".

      • ek 2019.06.01 19:43


        음 ...
        CMakerError.log에는
        ===========================
        Determining if the include file io.h exists failed with the following output:
        Change Dir: C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_a5fc8
        [1/2] Building C object CMakeFiles/cmTC_a5fc8.dir/CheckIncludeFile.c.o

        FAILED: CMakeFiles/cmTC_a5fc8.dir/CheckIncludeFile.c.o

        C:\Users\eknote\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/eknote/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/eknote/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIE -o CMakeFiles/cmTC_a5fc8.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c

        CheckIncludeFile.c:1:10: fatal error: 'io.h' file not found

        #include <io.h>

        ^~~~~~

        1 error generated.

        ninja: build stopped: subcommand failed.

        Determining size of INT8 failed with the following output:
        Change Dir: C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeTmp
        =========================
        이렇게 디렉터리를 바꾸라는 듯한 거같구..
        CMakeOutput 에도
        =========================
        The target system is: Android - 1 - aarch64
        The host system is: Windows - 10.0.17134 - AMD64
        Determining if the CXX compiler works passed with the following output:
        Change Dir: C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeTmp

        Run Build Command(s):C:/ninja/ninja.exe cmTC_03010
        [1/2] Building CXX object CMakeFiles/cmTC_03010.dir/testCXXCompiler.cxx.o

        [2/2] Linking CXX executable cmTC_03010

        Detecting CXX compiler ABI info compiled with the following output:
        Change Dir: C:/opencv-sources/opencv-4.1.0/build/CMakeFiles/CMakeTmp
        =======================
        이것도 비슷한거 같은데... 어떻게 수정해야할까요

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.06.01 21:24 신고


        다른 분도 다음과 같은 에러가 있었는데..
        원인을 못찾았습니다.

        fatal error: 'io.h' file not found



    • LeeJae 2019.06.01 18:57


      Sdk Manager 28.0.3 만 설치하는 이유는 무엇인가요 ?

    • 2019.06.20 17:53


      비밀댓글입니다

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.06.20 21:25 신고


        어떤 에러 메시지가 보이나요?

      • 또끼심심 2019.06.21 12:15


        C:\opencv-sources\opencv-4.1.0\build>cmake -GNinja -DCMAKE_INSTALL_PREFIX=C:/OpenCV-android-sdk -DANDROID_PROJECTS_BUILD_TYPE="ANT" -DBUILD_ANDROID_PROJECTS=ON -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_JAVA=ON -DBUILD_opencv_java=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FAT_JAVA_LIB=ON -DBUILD_PYTHON=OFF -DINSTALL_ANDROID_EXAMPLES=OFF -DANDROID_EXAMPLES_WITH_LIBS=OFF -DBUILD_DOCS=OFF -DWITH_OPENCL=ON -DANDROID_NDK_HOST_X64=ON -DCMAKE_TOOLCHAIN_FILE=C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NDK=C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle -DANDROID_SDK=C:/Users/ub/AppData/Local/Android/Sdk -DANDROID_TOOLCHAIN=clang -DANDROID_STL=c++_static -DANDROID_ARM_NEON=ON -DANDROID_ABI=arm64-v8a -DOPENCV_EXTRA_MODULES_PATH=C:\opencv-sources\opencv_contrib-4.1.0\modules -DOPENCV_ENABLE_NONFREE=ON -DANDROID_NATIVE_API_LEVEL=16 -DANDROID_SDK_TARGET=28 ..
        -- Check for working CXX compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
        -- Check for working CXX compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Check for working C compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
        -- Check for working C compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
        -- Found PythonInterp: C:/Users/ub/AppData/Local/Programs/Python/Python37/python.exe (found suitable version "3.7.3", minimum required is "3.2")
        -- Looking for ccache - not found
        -- Performing Test HAVE_CXX_FSIGNED_CHAR
        -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
        -- Performing Test HAVE_C_FSIGNED_CHAR
        -- Performing Test HAVE_C_FSIGNED_CHAR - Success
        -- Performing Test HAVE_CXX_W
        -- Performing Test HAVE_CXX_W - Success
        -- Performing Test HAVE_C_W
        -- Performing Test HAVE_C_W - Success
        -- Performing Test HAVE_CXX_WALL
        -- Performing Test HAVE_CXX_WALL - Success
        -- Performing Test HAVE_C_WALL
        -- Performing Test HAVE_C_WALL - Success
        -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
        -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
        -- Performing Test HAVE_C_WERROR_RETURN_TYPE
        -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
        -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
        -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
        -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
        -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
        -- Performing Test HAVE_CXX_WERROR_ADDRESS
        -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
        -- Performing Test HAVE_C_WERROR_ADDRESS
        -- Performing Test HAVE_C_WERROR_ADDRESS - Success
        -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
        -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
        -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
        -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
        -- Performing Test HAVE_CXX_WFORMAT
        -- Performing Test HAVE_CXX_WFORMAT - Success
        -- Performing Test HAVE_C_WFORMAT
        -- Performing Test HAVE_C_WFORMAT - Success
        -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
        -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
        -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
        -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
        -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
        -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
        -- Performing Test HAVE_C_WMISSING_DECLARATIONS
        -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
        -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
        -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Success
        -- Performing Test HAVE_C_WMISSING_PROTOTYPES
        -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
        -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
        -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Success
        -- Performing Test HAVE_C_WSTRICT_PROTOTYPES
        -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
        -- Performing Test HAVE_CXX_WUNDEF
        -- Performing Test HAVE_CXX_WUNDEF - Success
        -- Performing Test HAVE_C_WUNDEF
        -- Performing Test HAVE_C_WUNDEF - Success
        -- Performing Test HAVE_CXX_WINIT_SELF
        -- Performing Test HAVE_CXX_WINIT_SELF - Success
        -- Performing Test HAVE_C_WINIT_SELF
        -- Performing Test HAVE_C_WINIT_SELF - Success
        -- Performing Test HAVE_CXX_WPOINTER_ARITH
        -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
        -- Performing Test HAVE_C_WPOINTER_ARITH
        -- Performing Test HAVE_C_WPOINTER_ARITH - Success
        -- Performing Test HAVE_CXX_WSHADOW
        -- Performing Test HAVE_CXX_WSHADOW - Success
        -- Performing Test HAVE_C_WSHADOW
        -- Performing Test HAVE_C_WSHADOW - Success
        -- Performing Test HAVE_CXX_WSIGN_PROMO
        -- Performing Test HAVE_CXX_WSIGN_PROMO - Success
        -- Performing Test HAVE_C_WSIGN_PROMO
        -- Performing Test HAVE_C_WSIGN_PROMO - Success
        -- Performing Test HAVE_CXX_WUNINITIALIZED
        -- Performing Test HAVE_CXX_WUNINITIALIZED - Success
        -- Performing Test HAVE_C_WUNINITIALIZED
        -- Performing Test HAVE_C_WUNINITIALIZED - Success
        -- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE
        -- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE - Success
        -- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE
        -- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE - Success
        -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
        -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
        -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
        -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Success
        -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
        -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
        -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
        -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
        -- Performing Test HAVE_CXX_WNO_COMMENT
        -- Performing Test HAVE_CXX_WNO_COMMENT - Success
        -- Performing Test HAVE_C_WNO_COMMENT
        -- Performing Test HAVE_C_WNO_COMMENT - Success
        -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
        -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
        -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
        -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
        -- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS
        -- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
        -- Performing Test HAVE_C_QUNUSED_ARGUMENTS
        -- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
        -- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
        -- Performing Test HAVE_CPU_NEON_SUPPORT - Success
        -- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
        -- Performing Test HAVE_CPU_FP16_SUPPORT - Success
        -- Performing Test HAVE_CPU_BASELINE_FLAGS
        -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
        -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
        -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
        -- Performing Test HAVE_C_FVISIBILITY_HIDDEN
        -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
        -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
        -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
        -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
        -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Success
        -- OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT
        -- Looking for pthread.h
        -- Looking for pthread.h - found
        -- Looking for posix_memalign
        -- Looking for posix_memalign - found
        -- Looking for malloc.h
        -- Looking for malloc.h - found
        -- Looking for memalign
        -- Looking for memalign - found
        -- Check if the system is big endian
        -- Searching 16 bit integer
        -- Looking for sys/types.h
        -- Looking for sys/types.h - found
        -- Looking for stdint.h
        -- Looking for stdint.h - found
        -- Looking for stddef.h
        -- Looking for stddef.h - found
        -- Check size of unsigned short
        -- Check size of unsigned short - done
        -- Using unsigned short
        -- Check if the system is big endian - little endian
        -- Found ZLIB: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a (found suitable version "1.2.7", minimum required is "1.2.3")
        -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
        -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
        -- Performing Test HAVE_C_WNO_SIGN_COMPARE
        -- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
        -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
        -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Success
        -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
        -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
        -- libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.0-libjpeg-turbo
        -- Check size of size_t
        -- Check size of size_t - done
        -- Check size of unsigned long
        -- Check size of unsigned long - done
        -- Performing Test HAVE_BUILTIN_CTZL
        -- Performing Test HAVE_BUILTIN_CTZL - Success
        -- Looking for include file locale.h
        -- Looking for include file locale.h - found
        -- Looking for include file stdlib.h
        -- Looking for include file stdlib.h - found
        -- Looking for include file sys/types.h
        -- Looking for include file sys/types.h - found
        -- Looking for assert.h
        -- Looking for assert.h - found
        -- Looking for dlfcn.h
        -- Looking for dlfcn.h - found
        -- Looking for fcntl.h
        -- Looking for fcntl.h - found
        -- Looking for inttypes.h
        -- Looking for inttypes.h - found
        -- Looking for io.h
        -- Looking for io.h - not found
        -- Looking for limits.h
        -- Looking for limits.h - found
        -- Looking for memory.h
        -- Looking for memory.h - found
        -- Looking for search.h
        -- Looking for search.h - found
        -- Looking for string.h
        -- Looking for string.h - found
        -- Looking for strings.h
        -- Looking for strings.h - found
        -- Looking for sys/time.h
        -- Looking for sys/time.h - found
        -- Looking for unistd.h
        -- Looking for unistd.h - found
        -- Performing Test C_HAS_inline
        -- Performing Test C_HAS_inline - Success
        -- Check size of signed short
        -- Check size of signed short - done
        -- Check size of unsigned short
        -- Check size of unsigned short - done
        -- Check size of signed int
        -- Check size of signed int - done
        -- Check size of unsigned int
        -- Check size of unsigned int - done
        -- Check size of signed long
        -- Check size of signed long - done
        -- Check size of signed long long
        -- Check size of signed long long - done
        -- Check size of unsigned long long
        -- Check size of unsigned long long - done
        -- Check size of unsigned char *
        -- Check size of unsigned char * - done
        -- Check size of ptrdiff_t
        -- Check size of ptrdiff_t - done
        -- Check size of INT8
        -- Check size of INT8 - failed
        -- Check size of INT16
        -- Check size of INT16 - failed
        -- Check size of INT32
        -- Check size of INT32 - failed
        -- Looking for floor
        -- Looking for floor - found
        -- Looking for pow
        -- Looking for pow - found
        -- Looking for sqrt
        -- Looking for sqrt - found
        -- Looking for isascii
        -- Looking for isascii - found
        -- Looking for memset
        -- Looking for memset - found
        -- Looking for mmap
        -- Looking for mmap - found
        -- Looking for getopt
        -- Looking for getopt - found
        -- Looking for memmove
        -- Looking for memmove - found
        -- Looking for setmode
        -- Looking for setmode - not found
        -- Looking for strcasecmp
        -- Looking for strcasecmp - found
        -- Looking for strchr
        -- Looking for strchr - found
        -- Looking for strrchr
        -- Looking for strrchr - found
        -- Looking for strstr
        -- Looking for strstr - found
        -- Looking for strtol
        -- Looking for strtol - found
        -- Looking for strtol
        -- Looking for strtol - found
        -- Looking for strtoull
        -- Looking for strtoull - found
        -- Looking for lfind
        -- Looking for lfind - found
        -- Performing Test HAVE_SNPRINTF
        -- Performing Test HAVE_SNPRINTF - Success
        -- Check if the system is big endian
        -- Searching 16 bit integer
        -- Using unsigned short
        -- Check if the system is big endian - little endian
        -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
        -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Failed
        -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
        -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
        -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
        -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
        -- Performing Test HAVE_C_WNO_UNDEF
        -- Performing Test HAVE_C_WNO_UNDEF - Success
        -- Performing Test HAVE_C_WNO_UNUSED
        -- Performing Test HAVE_C_WNO_UNUSED - Success
        -- Performing Test HAVE_C_WNO_CAST_ALIGN
        -- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
        -- Performing Test HAVE_C_WNO_SHADOW
        -- Performing Test HAVE_C_WNO_SHADOW - Success
        -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
        -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Failed
        -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
        -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success
        -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
        -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success
        -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
        -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION - Failed
        -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
        -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
        -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
        -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
        -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
        -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Success
        -- Performing Test HAVE_CXX_WNO_UNDEF
        -- Performing Test HAVE_CXX_WNO_UNDEF - Success
        -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
        -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
        -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
        -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
        -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
        -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success
        -- Performing Test HAVE_C_WNO_UNINITIALIZED
        -- Performing Test HAVE_C_WNO_UNINITIALIZED - Success
        -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
        -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Failed
        -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
        -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
        -- Performing Test HAVE_C_WNO_POINTER_COMPARE
        -- Performing Test HAVE_C_WNO_POINTER_COMPARE - Failed
        -- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE
        -- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Success
        -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
        -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
        -- Looking for semaphore.h
        -- Looking for semaphore.h - found
        -- Performing Test HAVE_CXX_WNO_SHADOW
        -- Performing Test HAVE_CXX_WNO_SHADOW - Success
        -- Performing Test HAVE_CXX_WNO_UNUSED
        -- Performing Test HAVE_CXX_WNO_UNUSED - Success
        -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
        -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
        -- Performing Test HAVE_CXX_WNO_UNINITIALIZED
        -- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
        -- Performing Test HAVE_CXX_WNO_SWITCH
        -- Performing Test HAVE_CXX_WNO_SWITCH - Success
        -- Performing Test HAVE_CXX_WNO_PARENTHESES
        -- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
        -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
        -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
        -- Performing Test HAVE_CXX_WNO_EXTRA
        -- Performing Test HAVE_CXX_WNO_EXTRA - Success
        -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
        -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
        -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
        -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Failed
        -- Performing Test HAVE_CXX_WNO_DEPRECATED
        -- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
        -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
        -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Failed
        -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
        -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Success
        -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
        -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
        -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
        -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
        -- Performing Test HAVE_CXX_WNO_SIGN_PROMO
        -- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
        -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
        -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Success
        -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
        -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
        -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
        -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
        -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
        -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
        -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
        -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
        -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
        -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
        -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
        -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Success
        -- Android: fixup -g compiler option from Android toolchain
        -- Android SDK Tools: ver. 25.2.5
        -- Android SDK Build Tools: ver. 28.0.3 (subdir 28.0.3 from 28.0.3)
        -- Found apache ant: C:/ant/bin/ant.bat (1.10.6)
        -- Android SDK Tools: Ant (Eclipse) builds are supported
        -- Android SDK Tools: Prepare Android projects for using Ant build scripts (deprecated)
        -- Android SDK Tools: Found 'android' tool: C:/Users/ub/AppData/Local/Android/Sdk/tools/android.bat
        -- Android SDK Tools: Available targets: android-27;android-28
        -- Performing Test CXX_HAS_MFPU_NEON
        -- Performing Test CXX_HAS_MFPU_NEON - Success
        -- Performing Test C_HAS_MFPU_NEON
        -- Performing Test C_HAS_MFPU_NEON - Success
        -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
        -- Caffe: NO
        -- Protobuf: NO
        -- Glog: NO
        -- freetype2: NO
        -- harfbuzz: NO
        -- Module opencv_ovis disabled because OGRE3D was not found
        -- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
        -- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
        -- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
        -- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
        -- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
        -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
        -- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
        -- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
        -- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
        -- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
        -- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
        -- Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
        -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx.cpp
        -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp
        -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
        -- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
        -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
        -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
        -- Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp
        -- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
        -- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
        -- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
        -- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
        -- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
        -- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
        -- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
        -- xfeatures2d/vgg: Download: vgg_generated_48.i
        -- xfeatures2d/vgg: Download: vgg_generated_64.i
        -- xfeatures2d/vgg: Download: vgg_generated_80.i
        -- xfeatures2d/vgg: Download: vgg_generated_120.i
        -- data: Download: face_landmark_model.dat
        -- Sample example-tutorial-4-opencl is disabled, because ANDROID_OPENCL_SDK is not specified
        --
        -- General configuration for OpenCV 4.1.0 =====================================
        -- Version control: unknown
        --
        -- Extra modules:
        -- Location (extra): C:/opencv-sources/opencv_contrib-4.1.0/modules
        -- Version control (extra): unknown
        --
        -- Platform:
        -- Timestamp: 2019-06-21T02:10:49Z
        -- Host: Windows 10.0.17763 AMD64
        -- Target: Android 1 aarch64
        -- CMake: 3.14.5
        -- CMake generator: Ninja
        -- CMake build tool: C:/ninja/ninja.exe
        -- Configuration: Release
        --
        -- CPU/HW features:
        -- Baseline: NEON FP16
        --
        -- C/C++:
        -- Built as dynamic libs?: NO
        -- C++ Compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe (ver 8.0)
        -- C++ flags (Release): -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG
        -- C++ flags (Debug): -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -g
        -- C Compiler: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
        -- C flags (Release): -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG
        -- C flags (Debug): -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG -g
        -- Linker flags (Release): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack
        -- Linker flags (Debug): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack
        -- ccache: NO
        -- Precompiled headers: NO
        -- Extra dependencies: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a dl m log
        -- 3rdparty dependencies: libcpufeatures libprotobuf libjpeg-turbo libwebp libpng libtiff libjasper IlmImf quirc tegra_hal
        --
        -- OpenCV modules:
        -- To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
        -- Disabled: world
        -- Disabled by dependency: -
        -- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype gapi hdf js matlab ovis python2 python3 sfm ts viz
        -- Applications: android_examples
        -- Documentation: NO
        -- Non-free algorithms: YES
        --
        -- Android NDK: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle (ver 20.0.5594570)
        -- Android ABI: arm64-v8a
        -- NDK toolchain: aarch64-linux-android-clang
        -- STL type: c++_static
        -- Native API level: 21
        -- Android SDK: C:/Users/ub/AppData/Local/Android/Sdk (tools: 25.2.5 build tools: 28.0.3)
        -- android tool: C:/Users/ub/AppData/Local/Android/Sdk/tools/android.bat
        -- SDK target: android-28
        -- Projects build scripts: Ant/Eclipse compatible
        --
        -- GUI:
        --
        -- Media I/O:
        -- ZLib: C:/Users/ub/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a (ver 1.2.7)
        -- JPEG: build-libjpeg-turbo (ver 2.0.2-62)
        -- WEBP: build (ver encoder: 0x020e)
        -- PNG: build (ver 1.6.36)
        -- TIFF: build (ver 42 - 4.0.10)
        -- JPEG 2000: build (ver 1.900.1)
        -- OpenEXR: build (ver 1.7.1)
        -- HDR: YES
        -- SUNRASTER: YES
        -- PXM: YES
        -- PFM: YES
        --
        -- Video I/O:
        --
        -- Parallel framework: pthreads
        --
        -- Trace: YES (built-in)
        --
        -- Other third-party libraries:
        -- Custom HAL: YES (carotene (ver 0.0.1))
        -- Protobuf: build (3.5.1)
        --
        -- OpenCL: YES (no extra features)
        -- Include path: C:/opencv-sources/opencv-4.1.0/3rdparty/include/opencl/1.2
        -- Link libraries: Dynamic load
        --
        -- Python (for build): C:/Users/ub/AppData/Local/Programs/Python/Python37/python.exe
        --
        -- Java: export all functions
        -- ant: C:/ant/bin/ant.bat (ver 1.10.6)
        -- Java wrappers: YES
        -- Java tests: NO
        --
        -- Install to: C:/OpenCV-android-sdk
        -- -----------------------------------------------------------------
        --
        -- Configuring done
        -- Generating done
        -- Build files have been written to: C:/opencv-sources/opencv-4.1.0/build

        C:\opencv-sources\opencv-4.1.0\build>ninja -j4
        [469/1267] Copy project sources: example-15-puzzle
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/15-puzzle' with 6 files
        COPYFILES: Copying: 'samples/android/15-puzzle/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/15-puzzle/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/15-puzzle/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/15-puzzle/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/15-puzzle/.build/src/org/opencv/samples/puzzle15/Puzzle15Activity.java' ...COPYFILES: Copying: 'samples/android/15-puzzle/.build/src/org/opencv/samples/puzzle15/Puzzle15Processor.java' ...
        COPYFILES: Updated!
        [470/1267] Copy project sources: example-face-detection
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/face-detection' with 8 files
        COPYFILES: Copying: 'samples/android/face-detection/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/res/layout/face_detect_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/res/raw/lbpcascade_frontalface.xml' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/src/org/opencv/samples/facedetect/DetectionBasedTracker.java' ...
        COPYFILES: Copying: 'samples/android/face-detection/.build/src/org/opencv/samples/facedetect/FdActivity.java' ...
        COPYFILES: Updated!
        [471/1267] Copy project sources: example-image-manipulations
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/image-manipulations' with 6 files
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/res/layout/image_manipulations_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/image-manipulations/.build/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java' ...
        COPYFILES: Updated!
        [473/1267] Copy project sources: example-camera-calibration
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/camera-calibration' with 10 files
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/res/layout/camera_calibration_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/res/menu/calibration.xml' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/src/org/opencv/samples/cameracalibration/CalibrationResult.java' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/src/org/opencv/samples/cameracalibration/CameraCalibrator.java' ...
        COPYFILES: Copying: 'samples/android/camera-calibration/.build/src/org/opencv/samples/cameracalibration/OnCameraFrameRender.java' ...
        COPYFILES: Updated!
        [474/1267] Copy project sources: example-color-blob-detection
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/color-blob-detection' with 7 files
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/res/layout/color_blob_detection_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java' ...
        COPYFILES: Copying: 'samples/android/color-blob-detection/.build/src/org/opencv/samples/colorblobdetect/ColorBlobDetector.java' ...
        COPYFILES: Updated!
        [475/1267] Copy project sources: example-tutorial-1-camerapreview
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/tutorial-1-camerapreview' with 6 files
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/res/layout/tutorial1_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-1-camerapreview/.build/src/org/opencv/samples/tutorial1/Tutorial1Activity.java' ...
        COPYFILES: Updated!
        [476/1267] Copy project sources: example-tutorial-2-mixedprocessing
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/tutorial-2-mixedprocessing' with 6 files
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/res/layout/tutorial2_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-2-mixedprocessing/.build/src/org/opencv/samples/tutorial2/Tutorial2Activity.java' ...
        COPYFILES: Updated!
        [477/1267] Copy project sources: example-tutorial-3-cameracontrol
        COPYFILES: ... 1 entries (SRC_COPY)
        COPYFILES: ... directory '.../android/tutorial-3-cameracontrol' with 7 files
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/gradle/AndroidManifest.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/res/drawable/icon.png' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/res/layout/tutorial3_surface_view.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/res/values/strings.xml' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/src/org/opencv/samples/tutorial3/Tutorial3Activity.java' ...
        COPYFILES: Copying: 'samples/android/tutorial-3-cameracontrol/.build/src/org/opencv/samples/tutorial3/Tutorial3View.java' ...
        COPYFILES: Updated!
        [486/1267] Generate files for Java bindings
        duplicated: CLASS cv::.Algorithm :
        SKIP:void cv::Algorithm::read(FileNode fn) due to ARG type FileNode/I
        SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
        SKIP:void cv::dnn::Net::forward(vector_vector_Mat& outputBlobs, vector_String outBlobNames) due to ARG type vector_vector_Mat/O
        SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
        SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
        SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends() due to RET type vector_VideoCaptureAPIs
        SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends() due to RET type vector_VideoCaptureAPIs
        SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends() due to RET type vector_VideoCaptureAPIs
        SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends() due to RET type vector_VideoCaptureAPIs
        SKIP:void cv::Feature2D::read(FileNode arg1) due to ARG type FileNode/I
        SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
        SKIP:uchar Params::blobColor due to RET type uchar
        SKIP:void Params::blobColor due to ARG type uchar/I
        SKIP:void cv::DescriptorMatcher::read(FileNode arg1) due to ARG type FileNode/I
        SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
        SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher) due to ARG type Ptr_DescriptorExtractor/I
        duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
        SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1) due to ARG type Ptr_ERFilter_Callback/I
        SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3) due to ARG type Ptr_ERFilter_Callback/I
        SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename) due to RET type Ptr_ERFilter_Callback
        SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename) due to RET type Ptr_ERFilter_Callback
        SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename) due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
        SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
        SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
        SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
        SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI) due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
        SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500) due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
        duplicated: CONST CvLevMarq_DONE=0
        duplicated: CONST CvLevMarq_STARTED=1
        duplicated: CONST CvLevMarq_CALC_J=2
        duplicated: CONST CvLevMarq_CHECK_ERR=3
        SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters) due to ARG type Ptr_FeatureDetector/I
        SKIP:bool cv::CascadeClassifier::read(FileNode node) due to ARG type FileNode/I
        duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
        SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD) due to ARG type vector_vector_Mat/I
        SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS) due to RET type Vec4i
        SKIP:vector_vector_int CharucoBoard::nearestMarkerIdx due to RET type vector_vector_int
        SKIP:vector_vector_int CharucoBoard::nearestMarkerCorners due to RET type vector_vector_int
        SKIP:vector_pair_int_and_double cv::face::StandardCollector::getResults(bool sorted = false) due to RET type vector_pair_int_and_double
        JAVA: Processing OpenCV modules: 24
        Generated files: 356 (updated 356)
        [845/1267] Copy Java(Andoid SDK) source files
        COPYFILES: ... 3 entries (JAVA_SRC_COPY)
        COPYFILES: ... directory '.../gen/java' with 237 files
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/Aruco.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/Board.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/CharucoBoard.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/DetectorParameters.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/Dictionary.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/aruco/GridBoard.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorCNT.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorGMG.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorGSOC.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorLSBP.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorLSBPDesc.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/BackgroundSubtractorMOG.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/Bgsegm.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bgsegm/SyntheticSequenceGenerator.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bioinspired/Bioinspired.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bioinspired/Retina.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bioinspired/RetinaFastToneMapping.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/bioinspired/TransientAreasSegmentationModule.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/calib3d/Calib3d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/calib3d/StereoBM.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/calib3d/StereoMatcher.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/calib3d/StereoSGBM.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Algorithm.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Core.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/CvException.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/CvType.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/DMatch.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/KeyPoint.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Mat.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfByte.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfDMatch.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfDouble.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfFloat.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfFloat4.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfFloat6.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfInt.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfInt4.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfKeyPoint.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfPoint.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfPoint2f.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfPoint3.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfPoint3f.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfRect.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfRect2d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/MatOfRotatedRect.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Point.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Point3.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Range.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Rect.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Rect2d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/RotatedRect.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Scalar.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/Size.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/TermCriteria.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/core/TickMeter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/dnn/DictValue.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/dnn/Dnn.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/dnn/Layer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/dnn/Net.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/BIF.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/BasicFaceRecognizer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/EigenFaceRecognizer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/Face.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FaceRecognizer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/Facemark.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FacemarkAAM.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FacemarkKazemi.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FacemarkLBF.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FacemarkTrain.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/FisherFaceRecognizer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/LBPHFaceRecognizer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/MACE.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/PredictCollector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/face/StandardCollector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/AKAZE.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/AgastFeatureDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/BFMatcher.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/BOWImgDescriptorExtractor.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/BOWKMeansTrainer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/BOWTrainer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/BRISK.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/DescriptorMatcher.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/FastFeatureDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/Feature2D.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/Features2d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/FlannBasedMatcher.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/GFTTDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/KAZE.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/MSER.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/ORB.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/features2d/Params.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/AverageHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/BlockMeanHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/ColorMomentHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/ImgHashBase.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/Img_hash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/MarrHildrethHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/PHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/img_hash/RadialVarianceHash.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgcodecs/Imgcodecs.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/CLAHE.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/GeneralizedHough.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/GeneralizedHoughBallard.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/GeneralizedHoughGuil.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/Imgproc.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/LineSegmentDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/Moments.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/imgproc/Subdiv2D.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/ANN_MLP.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/Boost.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/DTrees.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/EM.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/KNearest.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/LogisticRegression.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/Ml.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/NormalBayesClassifier.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/ParamGrid.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/RTrees.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/SVM.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/SVMSGD.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/StatModel.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ml/TrainData.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/objdetect/BaseCascadeClassifier.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/objdetect/CascadeClassifier.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/objdetect/HOGDescriptor.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/objdetect/Objdetect.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/objdetect/QRCodeDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/osgi/OpenCVInterface.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/osgi/OpenCVNativeLoader.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/phase_unwrapping/HistogramPhaseUnwrapping.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/phase_unwrapping/PhaseUnwrapping.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/phase_unwrapping/Phase_unwrapping.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/AlignExposures.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/AlignMTB.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/CalibrateCRF.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/CalibrateDebevec.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/CalibrateRobertson.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/MergeDebevec.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/MergeExposures.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/MergeMertens.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/MergeRobertson.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/Photo.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/Tonemap.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/TonemapDrago.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/TonemapMantiuk.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/photo/TonemapReinhard.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/plot/Plot.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/plot/Plot2d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/structured_light/GrayCodePattern.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/structured_light/Params.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/structured_light/SinusoidalPattern.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/structured_light/StructuredLightPattern.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/structured_light/Structured_light.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/BaseOCR.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/Callback.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/ClassifierCallback.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/ERFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/OCRBeamSearchDecoder.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/OCRHMMDecoder.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/OCRTesseract.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/Text.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/TextDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/text/TextDetectorCNN.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/MultiTracker.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/Tracker.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerBoosting.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerCSRT.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerGOTURN.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerKCF.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerMIL.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerMOSSE.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerMedianFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/TrackerTLD.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/tracking/Tracking.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/utils/Converters.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/BackgroundSubtractor.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/BackgroundSubtractorKNN.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/BackgroundSubtractorMOG2.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/DISOpticalFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/DenseOpticalFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/FarnebackOpticalFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/KalmanFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/SparseOpticalFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/SparsePyrLKOpticalFlow.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/VariationalRefinement.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/video/Video.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/videoio/VideoCapture.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/videoio/VideoWriter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/videoio/Videoio.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/BoostDesc.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/BriefDescriptorExtractor.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/DAISY.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/FREAK.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/HarrisLaplaceFeatureDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/LATCH.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/LUCID.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/MSDDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/PCTSignatures.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/PCTSignaturesSQFD.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/SIFT.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/SURF.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/StarDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/VGG.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xfeatures2d/Xfeatures2d.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/AdaptiveManifoldFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/ContourFitting.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/DTFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/DisparityFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/DisparityWLSFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/EdgeAwareInterpolator.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/EdgeBoxes.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/FastBilateralSolverFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/FastGlobalSmootherFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/FastLineDetector.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/GraphSegmentation.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/GuidedFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/RFFeatureGetter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/RidgeDetectionFilter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentation.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategy.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyColor.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyFill.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyMultiple.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategySize.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyTexture.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SparseMatchInterpolator.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/StructuredEdgeDetection.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SuperpixelLSC.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SuperpixelSEEDS.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/SuperpixelSLIC.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/ximgproc/Ximgproc.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/GrayworldWB.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/LearningBasedWB.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/SimpleWB.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/TonemapDurand.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/WhiteBalancer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/xphoto/Xphoto.java' ...
        COPYFILES: ... directory '.../android/java' with 11 files
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/AsyncServiceHelper.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/BaseLoaderCallback.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/CameraBridgeViewBase.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/FpsMeter.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/InstallCallbackInterface.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/JavaCameraView.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/LoaderCallbackInterface.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/OpenCVLoader.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/StaticHelper.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/Utils.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/engine/OpenCVEngineInterface.aidl' ...
        COPYFILES: ... directory '.../android-21/java' with 5 files
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/Camera2Renderer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/CameraGLRendererBase.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/CameraGLSurfaceView.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/CameraRenderer.java' ...
        COPYFILES: Copying: 'android_sdk/src/org/opencv/android/JavaCamera2View.java' ...
        COPYFILES: Updated!
        [1229/1267] Building OpenCV Android library project
        [subant] No sub-builds to iterate on
        [javac] Note: Some input fi..

      • 또끼심심 2019.06.21 12:26


        [1229/1267] Building OpenCV Android library project
        [subant] No sub-builds to iterate on
        [javac] Note: Some input files use or override a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.

        BUILD SUCCESSFUL
        Total time: 9 seconds
        [1244/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/15-puzzle. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1245/1267] Generating example-15-puzzle-debug.apk

        BUILD SUCCESSFUL
        Total time: 7 seconds
        [1247/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/face-detection. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1248/1267] Generating example-face-detection-debug.apk

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1250/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/image-manipulations. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1251/1267] Generating example-image-manipulations-debug.apk

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1253/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/camera-calibration. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1254/1267] Generating example-camera-calibration-debug.apk
        [javac] Note: C:\opencv-sources\opencv-4.1.0\build\samples\android\camera-calibration\.build\src\org\opencv\samples\cameracalibration\CameraCalibrationActivity.java uses or overrides a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1256/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/color-blob-detection. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1257/1267] Generating example-color-blob-detection-debug.apk

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1259/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/tutorial-1-camerapreview. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1260/1267] Generating example-tutorial-1-camerapreview-debug.apk

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1262/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/tutorial-2-mixedprocessing. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1263/1267] Generating example-tutorial-2-mixedprocessing-debug.apk

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1265/1267] Updating Android project at C:/opencv-sources/opencv-4.1.0/samples/android/tutorial-3-cameracontrol. SDK target: android-28
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        It seems that there are sub-projects. If you want to update them
        please use the --subprojects parameter.
        [1266/1267] Generating example-tutorial-3-cameracontrol-debug.apk
        [javac] Note: Some input files use or override a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.

        BUILD SUCCESSFUL
        Total time: 6 seconds
        [1267/1267] Running utility command for example-tutorial-3-cameracontrol

        C:\opencv-sources\opencv-4.1.0\build>

        전에 했을때는 9백 정도에서 더이상 진행이 안되어서. 다른 버전으로 계속 시도했었습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.06.21 12:44 신고


        빌드 성공한거 아닌가요? 에러가 안보이네요.

      • 또끼심심 2019.06.21 13:02


        "OpenCV-android-sdk " 폴더 용량이 206MB 분이 안되요??

      • 또끼심심 2019.06.21 13:42


        혹시 빌드 후... opencv-4.1.0-android-sdk.zip 파일을 다시 플어야 하나요?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.06.21 14:42 신고


        arm64-v8a만을 위해 빌드했기때문에 크기가 작습니다. 추가로 압축풀어 덮어씌울 필요는 없습니다.

        cmake예제로 동작하는지 보세요

    • helphelphelp 2019.08.01 22:36


      안녕하세요! 블로그 참고를 하다가 9번에서 막혀서 질문 남깁니다!
      C:\opencv-sources\opencv-4.1.0\build> cmake -GNinja -D CMAKE_INSTALL_PREFIX=C:/OpenCV-android-sdk -D ANDROID_PROJECTS_BUILD_TYPE=”ANT" -D BUILD_ANDROID_PROJECTS=ON -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_JAVA=ON -D BUILD_opencv_java=ON -D BUILD_SHARED_LIBS=OFF -D BUILD_FAT_JAVA_LIB=ON -D BUILD_PYTHON=OFF -D INSTALL_ANDROID_EXAMPLES=OFF -D ANDROID_EXAMPLES_WITH_LIBS=OFF -D BUILD_DOCS=OFF -D WITH_OPENCL=ON -D ANDROID_NDK_HOST_X64=ON -D CMAKE_TOOLCHAIN_FILE=C:/Users/st131/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -D ANDROID_NDK=C:/Users/st131/AppData/Local/Android/Sdk/ndk-bundle -D ANDROID_SDK=C:/Users/st131/AppData/Local/Android/Sdk -D ANDROID_TOOLCHAIN=clang -D ANDROID_STL=c++_static -D ANDROID_ARM_NEON=ON -D ANDROID_ABI=arm64-v8a -D ANDROID_NDK_HOST_X64=ON -D OPENCV_EXTRA_MODULES_PATH=C:\opencv-sources\opencv_contrib-4.1.0\modules -D OPENCV_ENABLE_NONFREE=ON -D ANDROID_NATIVE_API_LEVEL=14 -D ANDROID_SDK_TARGET=28 ..


      이렇게 cmd창에 입력했더니

      'cmake'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
      배치 파일이 아닙니다.

      라고 나왔습니다.

      환경변수 SYSTEM도 다 해뒀는데 뭐가 문제인걸까요?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.01 23:19 신고


        1번 진행시 cmake의 path를 추가한다고 했나요?

        그래도 안된다면

        9번 진행시


        cmake 대신에


        cmake 전체 경로를 포함한 다음 명령을 사용하세요.

        C:\Program Files\CMake\bin\cmake

    • it응용 2019.08.06 13:58


      안녕하세요 11번 과정을 진행하던 중
      SKIP:vector_pair_int_and_double cv::face::StandardCollector::getResults(bool sorted = false) due to RET type vector_pair_int_and_double
      JAVA: Processing OpenCV modules: 24
      Generated files: 355 (updated 355)
      [288/1252] Linking C static library 3rdparty\lib\arm64-v8a\liblibwebp.a
      FAILED: 3rdparty/lib/arm64-v8a/liblibwebp.a
      cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E remove 3rdparty\lib\arm64-v8a\liblibwebp.a && D:\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar.exe qc 3rdparty\lib\arm64-v8a\liblibwebp.a @CMakeFiles/libwebp.rsp && D:\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ranlib.exe 3rdparty\lib\arm64-v8a\liblibwebp.a && cd ."
      D:\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ar.exe: 3rdpartylibwebpCMakeFileslibwebp.dirsrcdecalpha_dec.c.o: No such file or directory
      [291/1252] Building CXX object 3rdparty\openexr\CMakeFiles\IlmImf.dir\IlmImf\ImfConvert.cpp.o
      ninja: build stopped: subcommand failed.

      위와 같은 오류와 함께 실패했다고 뜹니다. 무엇을 건드려 주는게 좋을까요?
      opencv 4.1.0과 4.0.1 둘다 해 보았습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.06 14:09 신고


        구글링해도 딱히 에러에 대한 해결책은 안보이네요..

        WEBP를 사용안한다고 cmake시 다음 옵션을 추가해보면 해결되지 않을까 싶습니다.

        -DWITH_WEBP=OFF


        가급적이면 OpenCV 4.1.1보단 OpenCV 4.1.0으로 진행하세요..

    • it응용 2019.08.06 14:49


      주신 방법으로 해결 되었습니다. 감사합니다 ㅠㅠ 개인적인 궁금증으로 -DWITH_WEBP=OFF의 의미가 무엇인지 궁금합니다.
      마지막으로 재능 기부에 다시한번 감사드립니다!

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.06 15:00 신고


        해결되서 다행입니다 : )



        아래 링크에서 소개하는 WebP(웹피) 이미지 포맷을 OpenCV에서 사용할지 결정하는 옵션입니다.

        https://ko.wikipedia.org/wiki/WebP


        감사합니다.


    • 9번 과정에서 한 오류가 계속 반복됩니다. 2019.08.13 16:50


      안녕하세요 주인장님. 안드로이드로 opencv 임포트해서 구현하신 예제들이 꽤 있어서 한 번 실행시켜보려고 하다가... 이 포스팅까지 오게 되었습니다.
      그래서 포스팅 내용대로 차근차근 확인을 해보았으나... 똑같은 오류가 계속 발생해서 이렇게 댓글 남겨봅니다.

      1. 9번 과정 이전(1~8번)에 대한 확인
      - cmake를 설치하였는가?
      설치했습니다. 버전도 동일하구 "Add CMake to the system PATH for all users" 체크까지 완벽하게 했습니다.(사진대로 함)

      - opencv 버전을 제대로 설치하였는가?
      4.1.0 버전으로 다 설치했습니다. extra 모듈 또한 같은 버전으로 설치했으며, 주인장님께서 생성하신 디렉토리 명 "opencv-sources"까지 완벽하게 했습니다.
      ㄴ 파생 (댓글 참조) : "opencv-4.1.0" 디렉토리 안에 "CMakeLists.txt"가 있는가? 예 있습니다.

      - ninja를 설치하였는가?
      설치했습니다. 버전도 동일하구 cmd에서 ninja 명령 사용시 사진처럼 표시가 되었습니다.

      - Oracle의 JDK를 설치하였는가?
      안드로이드 스튜디오를 설치하는 과정에서 이미 설치를 했습니다. 다만 버전이 jdk1.8.0_221로 다르긴 하지만 설치를 하였습니다.(211로 바꾸고 싶었으나 삭제 후 원하는 버전으로 재설치 하는 과정에서 문제가 발생할 것 같아 놔뒀습니다.) cmd에서 제가 설치한 버전으로 나오는 것을 확인했고, 그 내용은 아래와 같습니다.

      C:\Users\OOO>java -version
      java version "1.8.0_221"
      Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

      - Ant를 설치하였는가?
      동일한 버전으로 설치하였고, cmd 결과 화면도 동일하게 나왔습니다.

      - Android SDK Tools 25.2.5를 다운받아 디렉터리명을 "tools"로 이름 변경을 해주었는가? SDK Manager 설정도 빠짐없이 다 하였는가?
      사진이랑 완벽하게 동일하게 하였습니다. 다만 우려되는 것은, 이 설정을 하면서 SDK Build-Tools 28.0.3을 빼고 모두 체크해제 하는 과정에서 다른 빌드 툴이 삭제가 되어버렸는데... 이것이 나중에 다른 앱을 만들 때 영향이 가지 않는가 입니다.

      - Android 28과 NDK를 설치하였는가?
      네 설치하였습니다. "NDK (Side by Side)" 라는 것도 설치를 하였습니다. 이미 안드로이드 스튜디오를 만지작하면서 NDK를 미리 다운받아놓긴 했는데... 혹시나 해서.

      - 8번 과정을 제대로 수행하였는가?
      그렇습니다. 여기까진 원활히 되었습니다...

      2. 9번 과정에서 발생한 문제
      제가 9번 과정을 수행한 것을 모두 보여드리겠습니다. 결과도 같이.

      Microsoft Windows [Version 6.1.7601]
      Copyright (c) 2009 Microsoft Corporation. All rights reserved.

      C:\Users\OOO>cd \

      C:\>cd C:\opencv-sources\opencv-4.1.0

      C:\opencv-sources\opencv-4.1.0>mkdir build

      C:\opencv-sources\opencv-4.1.0>cd build

      C:\opencv-sources\opencv-4.1.0\build>cmake -GNinja -DCMAKE_INSTALL_PREFIX=C:/Ope
      nCV-android-sdk -DANDROID_PROJECTS_BUILD_TYPE=”ANT" -DBUILD_ANDROID_PROJECTS=O
      N -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_JAVA=O
      N -DBUILD_opencv_java=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FAT_JAVA_LIB=ON -DBUILD
      _PYTHON=OFF -DINSTALL_ANDROID_EXAMPLES=OFF -DANDROID_EXAMPLES_WITH_LIBS=OFF -DBU
      ILD_DOCS=OFF -DWITH_OPENCL=ON -DANDROID_NDK_HOST_X64=ON -DCMAKE_TOOLCHAIN_FILE=C
      :/Users/OOO/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolcha
      in.cmake -DANDROID_NDK=C:/Users/OOO/AppData/Local/Android/Sdk/ndk-bundle -DA
      NDROID_SDK=C:/Users/OOO/AppData/Local/Android/Sdk -DANDROID_TOOLCHAIN=clang
      -DANDROID_STL=c++_static -DANDROID_ARM_NEON=ON -DANDROID_ABI=arm64-v8a -DANDROID
      _NDK_HOST_X64=ON -D OPENCV_EXTRA_MODULES_PATH=C:\opencv-sources\opencv_contrib-
      4.1.0\modules -DOPENCV_ENABLE_NONFREE=ON -DANDROID_NATIVE_API_LEVEL=14 -DANDROID
      _SDK_TARGET=28 ..
      CMake Warning:
      No source or binary directory provided. Both will be assumed to be the
      same as the current working directory, but note that this warning will
      become a fatal error in future CMake releases.


      CMake Error: The source directory "C:/opencv-sources/opencv-4.1.0/build" does no
      t appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.

      위의 결과가 그 오류이고, 이것을 몇 번이고 봤습니다... 댓글에도 비슷한 사례가 있나 싶어서 보았지만 좋은 결과를 얻진 못했고, 버전도 다르게 설치해가며 시도해도 마찬가지였습니다... 저는 여기서 더 나아가질 못합니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.13 17:27 신고


        검색해보니..
        cmake 관련 문제일 확률이 높아보입니다.
        버전에 따라 관련 이슈가 있는 듯합니다.

        혹시 cmake를 다른 버전으로 바꿔보셨나요?


        이것저것 깔린 상태에서 진행한거라 문제를 못찾는 거일 수도 있어보여서..
        검토를 다시 해봐야 겠네요..

      • 위 댓쓴이입니다 2019.08.13 20:41


        cmake-3.14.3-win32-x86
        cmake-3.14.3-win64-x64
        cmake-3.14.4-win32-x86
        cmake-3.14.4-win64-x64
        cmake-3.14.6-win32-x86
        cmake-3.14.6-win64-x64
        cmake-3.15.2-win32-x86
        cmake-3.15.2-win64-x64

        위의 8가지 버전의 cmake를 모두 다운받아서 확인을 해봤지만 똑같은 오류가 발생했습니다...

      • 물론 하나 해보고 지우고 하나 해보고 지우고 2019.08.13 20:42


        그렇게 했습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.13 20:45 신고


        OpenCV 버전을 4.1.1로 해서 다시 테스트해보고 있습니다. 기다려보세요..

      • 본댓 글쓴이입니다 2019.08.16 20:16


        안녕하세요 주인장님. 2019년 8월 16일자에 블로그 테마(굉장히 세련된 느낌입니다)와 해당 글이 수정되었음을 알아차리고 기쁜 마음으로 다시 차근차근 따라해보았습니다. 영상 따라 확인을 하였더니 다행히 정상적인 절차를 밟으면서 모두 완료를 하였고, 영상에서 알려주신 openCV 예제를 다시 한 번 확인해볼 예정입니다.
        비록 며칠 헤매긴 했지만, 이거 왜 안돼 하면서 넘기고 다른 글쓴이가 쓴 opencv 빌드 등을 찾으러 갔다면 더 오래 헤맸을 수도 있습니다. 저는 이렇게 댓글을 남겨 주인장님과 해당 오류에 대해 얘기를 해보고 다시 시도해보고 결국 원활하게 끝냈다는 것에 의미를 두고있고, 주인장 분께도 감사 인사를 드립니다.

        아래는 제가 겪은 오류가 왜 나왔는지를 전에 진행했던 과정들과 비교해가며 적어보겠습니다.
        -----------------------
        1.(가장 유력) python이 여러개 설치되어있던 문제
        python 상위 버전이 있는 경우, 그 상위 버전만 구동되는 것으로 멋대로 생각하고 cmd창에서 python 실행 시 제대로 된 버전으로 실행되는 지를 확인을 안했습니다. 제 컴퓨터에는 총 세 버전의 python이 깔려있었고, 그 중 anaconda 버전도 있었는데, 이 버전이 다른 파이썬의 실행을 방해하는 것을 확인하였습니다. 따라서 영상에서 알려준 python 버전이 제대로 실행되는 지를 확인하고, 만약 아니라면 이외의 다른 python은 삭제하기를 권장합니다. 아마 영상에서 쓰인 python 버전은 안드로이드용 opencv 임포트 용으로만 쓰인 것이므로, 다른 버전의 python을 사용하고 싶다면 모든 과정 완료 후 다른 버전 까시면 될 것으로 보여집니다.

        2. JDK과 관련한 내용
        JDK 과정에서 영상에서는 path 내용에 jdk 자체가 아닌, android와 관련된 java 파일명으로 변경이 되었던데 이것이 해결책이 될 수도 있습니다. 아직 본 글 내용은 영상과 다르므로 주의하셔야 겠습니다. 다만 영상이든 본 글 내용이든 성공하신 분들은 계시므로 JDK path 내용 수정과 관련한 문제는 없을 것으로 생각됩니다.

        이 외에는 설치를 요구하는 다른 프로그램들의 버전이 최신화된 것 정도인데... 역시나 성공 사례가 있기 때문에 버전 업데이트로 인해 해결되는 케이스는 아니라보고, 제가 생각하는 원인은 1번 항목입니다. 혹시 저와 같은 증상을 겪고 계시다면 1번 항목 보고 한 번 다시 해보시는 걸 권장합니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.08.16 20:46 신고




        후기 남겨주셔서 감사합니다^^
        그리고 스킨 바꾸고 걱정했는데 다행이네요..
        댓글에 대한 댓글 적을 때 문제가 있어 고쳐야 할듯합니다.

        Python은 자바 라이브러리를 생성시 사용하기 때문에 꼭 설치되어야 합니다. 여러 버전이 설치된 경우 문제가 발생할 수 있군요.. 알려주셔서 감사합니다.

        오라클 JDK를 굳이 설치할 필요 있나해서 안드로이드 스튜디오에 포함되어 있는 OpenJDK를 사용해봤는데 문제 없이 동작했습니다..
        오라클 것을 사용해도 동일하게 성공할 듯합니다.


    • Favicon of https://dirrito.tistory.com BlogIcon 유령2세 2019.10.02 23:42 신고


      안녕하세요.

      다른 글에서 android studio에서 c++과 opencv를 이용하여 사진의 윤곽을 잡는 걸 테스트 했었는데, 현재 그 컴퓨터 상태로 이 글을 테스트해도 되는지 궁금합니다!

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.10.03 11:01 신고


        Android용으로 OpenCV를 새로 빌드하면 기존 OpenCV-android-sdk 폴더만 덮어쓰기 됩니다.

        기존 안드로이드 프로젝트의 설정을 바꿀 필요없이 똑같이 동작합니다.

    • 2019.12.26 03:05


      비밀댓글입니다

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2019.12.26 08:50 신고


        C:\opencv-sources\opencv-4.1.2 위치에 CMakeLists.txt 파일이 있어야 하는데 없는듯합니다. 확인해보세요.


        그리고

        C:\opencv-sources\opencv_contrib-4.1.0\modules는 C:\opencv-sources\opencv_contrib-4.1.2\modules로 변경해야 합니다.

    • TomKong 2020.01.09 00:42


      먼저 좋은글 감사합니다.
      궁금한게 있습니다. Python을 중간에 설치하고 코드 중에는 'Python (for build): '라는 부분도 있는데.
      Python 이 OpenCV를 사용함에 있어 어떤 목적으로 쓰이는건가요?

      NDK 대신에 Python을 안드로이드에서 사용하는건가요?

    • mgkim 2020.01.16 10:42


      11번중 아래 같은 애러가 발생하는데 왜그럴가요 ㅠ
      C:\opencv-sources\opencv-4.1.0\build>ninja -j4
      ninja: fatal: CreateProcess: 액세스가 거부되었습니다.64-v8a\liblibtiff.a


      jdk가 아래인것 말고는 모두 동일하게 셋팅 하였습니다.
      openjdk version "1.8.0_232"
      OpenJDK Runtime Environment (build 1.8.0_232-b09)
      OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

      • mgkim 2020.01.16 11:46


        CheckIncludeFile.c:1:10: fatal error: 'io.h' file not found

        #include <io.h>

        ^~~~~~

        1 error generated.

        ninja: build stopped: subcommand failed.

        저도 이개 발생한거였내요.. 이건 해결이 안된거죠?

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.16 23:00 신고


        다른 프로세스가 사용중인데 컴파일을 시도해서 발생한 듯합니다. 터미널을 닫거나 컴퓨터를 재부팅하면 해결될듯합니다.

        어느 것을 보고했는지 알 수 없지만..
        글 보다는
        영상을 보고 하는게 정확합니다.

    • 양갱 2020.01.19 20:01


      안녕하세요 항상 좋은 자료 덕분에 많은 도움을 얻고 있습니다!
      다름이 아니라 9번(깃허브 cmake 코드 복사한 것 실행) 실행 중에 에러가 발생하여 문의 드립니다

      CMake Error: The source directory "C:/Users" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.

      댓글들을 보고 이전 버전의 파이썬과 아나콘다도 지우고 실행해보았지만 여전히 같은 에러가 반복되고 있습니다.
      안드로이드 스튜디오와 opencv 버전은 글과 동일하게 사용하고 있습니다
      어떻게 해결해야 할까요 ㅠㅜ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.19 20:04 신고


        영상을 기준으로 진행하셔야 합니다. 혹시 몰라 남겨두었던 글은 혼동이 오는거 같아서 삭제한 상태입니다.

      • 양갱 2020.01.19 20:06


        네 그래서 영상을 기준으로 실행하고 있는데 9번이라고 표기한 것은 댓글 남기신 분들이 해당 단계를 9번이라고 발씀하시는 것 같아 표기한 것입니다!
        영상으로 cmake 명령까지 따라갔을 때 저런 에러가 발생했습니다

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.19 20:13 신고


        OpenCV 소스코드가 있는 경로에 문제가 있어서 CMake에서 인식이 안된듯합니다.

      • 양갱 2020.01.19 20:27


        영상과 동일하게 opencv-sources를 c드라이브에 넣어놨고, 혹시 몰라 복사한 명령어의 소스코드 주소 부분을 직접 폴더에 들어가 긁어온 주소로 바꾸었는데도 동일한 문제가 발생합니다..ㅠㅜ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.19 20:46 신고


        build 폴더를 삭제하고 다시 해보셨나요?

      • 양갱 2020.01.19 20:54


        친절히 답변해주셔서 정말 정말 감사합니다
        해당 문제는 해결이 되었는데 다른 에러가 발생했습니다

        CMake Error at cmake/OpenCVUtils.cmake:111 (find_program):
        Syntax error in cmake code at

        C:/opencv-sources/opencv-4.1.1/cmake/OpenCVUtils.cmake:111

        when parsing string

        ANDROID_EXECUTABLE;NAMES;android.bat;android;PATHS;C:\Users\user\AppData\Local\Android\Sdk/tools;DOC;Android 'android' tool location

        Invalid character escape '\U'.
        Call Stack (most recent call first):
        cmake/android/android_ant_projects.cmake:1 (find_host_program)
        cmake/android/OpenCVDetectAndroidSDK.cmake:221 (include)
        CMakeLists.txt:797 (include)


        -- Configuring incomplete, errors occurred!
        See also "C:/opencv-sources/opencv-4.1.1/build/CMakeFiles/CMakeOutput.log".
        See also "C:/opencv-sources/opencv-4.1.1/build/CMakeFiles/CMakeError.log".

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.19 20:57 신고


        에러 메시지에 다음같은 메시지가 있네요..
        실행시킨 명령어에 잘못된 문자가 포함되어 있지 않나보세요

        Invalid character escape '\U'.

      • 양갱 2020.01.19 21:07


        build를 삭제한 후 다시 만들어 실행했더니 해결되었습니다. 너무 급하게 질문 드렸던거 같아 죄송합니다. 그런데 자바 항목이 영상과 다른데 뭔가 잘못된 것일까요?

        Java: export all functions
        -- ant: NO
        -- Java wrappers: NO
        -- Java tests: NO
        --
        -- Install to: C:/OpenCV-android-sdk

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.19 21:08 신고


        자바 항목이 영상과 동일해야 합니다.. 사전에 설치되어야 하는 것들 중 빠진게 없는지 확인해보세요..

      • 양갱 2020.01.20 01:45


        기존에 vs에서 사용할 때 깔려있던 opencv 때문이었던 것 같습니다 해당 폴더의 이름을 바꾸고 진행하니 해결되었습니다 답변 정말 감사합니다!

      • 양갱 2020.01.20 02:19


        ninja -j4 명령어 실행 중 에러가 발생하여 다시 한번 질문 드립니다

        [1283/1309] Linking CXX shared library jni\arm64-v8a\libopencv_java4.so
        FAILED: jni/arm64-v8a/libopencv_java4.so
        cmd.exe /C "cd . && C:\Users\user\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Users/user/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/user/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -DNDEBUG -DNDEBUG -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libopencv_java4.so -o jni\arm64-v8a\libopencv_java4.so @CMakeFiles\opencv_java.rsp && cmd.exe /C "cd /D C:\opencv-sources\opencv-4.1.1\build\modules\java\jni && C:\Users\user\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip.exe --strip-unneeded C:/opencv-sources/opencv-4.1.1/build/jni/arm64-v8a/libopencv_java4.so""
        'cmd.exe'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
        배치 파일이 아닙니다.
        ninja: build stopped: subcommand failed.

        이런 에러가 뜨는데 왜그런걸까요 ㅠ

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.20 21:17 신고


        cmd.exe는 명령 프롬프트입니다. 명령 프롬프트 에서 cmake 명령을 한거 아닌가요?

      • 양갱 2020.01.21 13:53


        명령 프롬프트 cmd에서 cmake 명령어 실행 후 영상과 같은 결과가 나왔고, 이후 ninja 명령을 실행하던 도중 저런 에러가 발생했습니다.

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.21 21:27 신고


        구글에서 검색해도 마땅한 답이 안찾아지네요. 명령프롬프트에서 cmd를 실행못시키다니 이상한 현상이군요. 혹 ninja 버전을 바꾸면 어떨까 싶습니다.

    • 2020.01.26 21:44


      비밀댓글입니다

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.26 22:17 신고


        contrib에 포함된 모듈을 사용하지 않는한 OpenCV 공식홈페이지에서 배포하는 안드로이드용 OpenCV를 사용하면 됩니다

    • kang 2020.01.27 23:36


      sync는 성공하는데 build가 되지 않습다.. 구글링해도 원인을 못찾겠어서 질문드립니다..

      Build command failed.
      Error while executing process C:\Users\kangk\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\opencv-4.1.1-android-sdk\OpenCV-android-sdk\PlayGround\app\.cxx\cmake\debug\armeabi-v7a native-lib}
      ninja: Entering directory `C:\opencv-4.1.1-android-sdk\OpenCV-android-sdk\PlayGround\app\.cxx\cmake\debug\armeabi-v7a'

      ninja: error: 'C:/opencv-4.1.1-android-sdk/OpenCV-android-sdk/PlayGround/opencv/native/libs/armeabi-v7a/libopencv_java4.so', needed by 'C:/opencv-4.1.1-android-sdk/OpenCV-android-sdk/PlayGround/app/build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it

      • Favicon of https://webnautes.tistory.com BlogIcon webnautes 2020.01.28 21:10 신고


        앱을 빌드하다가 문제 생긴거라면..

        CMakeLists.txt 에서 경로가 틀린게 없나 확인해보세요.

      • entering 2020.02.29 11:44


        저 같은 경우 OpenCV-android-sdk/PlayGround/opencv/native/libs/ 안에 armeabi-8a 폴더에만 so 파일이 있어서
        gradle setting에 abi 옵션 줘서 해결했습니다

Designed by Tistory.