Skip to content

demo缺少文件而且build的时候总是报错 #1

Description

@MaZhiJun

ABIs [armeabi, mips] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].

ABIs [armeabi, mips] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].

Build command failed.

Error while executing process E:\androidsdk\Androidsdk\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app -BD:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-18 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=E:\androidsdk\Androidsdk\sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=E:\androidsdk\Androidsdk\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\androidsdk\Androidsdk\sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja -DANDROID_ARM_NEON=TRUE -DANDROID_TOOLCHAIN=clang -DCMAKE_BUILD_TYPE=Release}

CMake Error in E:/androidsdk/Androidsdk/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:

A logical block opening on the line

E:/androidsdk/Androidsdk/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:277 (if)

is not closed.

Call Stack (most recent call first):

E:/androidsdk/Androidsdk/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)

CMakeLists.txt

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error in CMakeLists.txt:

No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment

variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

the compiler, or to the compiler name if it is in the PATH.

No CMAKE_CXX_COMPILER could be found.

variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path

to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

See also "D:/Documents/Downloads/OpenCV4Android-master/OpenCV4Android-master/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "D:/Documents/Downloads/OpenCV4Android-master/OpenCV4Android-master/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process E:\androidsdk\Androidsdk\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app -BD:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-18 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Documents\Downloads\OpenCV4Android-master\OpenCV4Android-master\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=E:\androidsdk\Androidsdk\sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=E:\androidsdk\Androidsdk\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\androidsdk\Androidsdk\sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja -DANDROID_ARM_NEON=TRUE -DANDROID_TOOLCHAIN=clang -DCMAKE_BUILD_TYPE=Release}

CMake Error in E:/androidsdk/Androidsdk/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:

A logical block opening on the line

E:/androidsdk/Androidsdk/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:277 (if)

is not closed.

Call Stack (most recent call first):

E:/androidsdk/Androidsdk/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)

CMakeLists.txt

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error in CMakeLists.txt:

No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment

variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

the compiler, or to the compiler name if it is in the PATH.

No CMAKE_CXX_COMPILER could be found.

variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path

to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

See also "D:/Documents/Downloads/OpenCV4Android-master/OpenCV4Android-master/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "D:/Documents/Downloads/OpenCV4Android-master/OpenCV4Android-master/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions