Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目直接跑不了 #2

Open
MaZhiJun opened this issue May 23, 2018 · 2 comments
Open

项目直接跑不了 #2

MaZhiJun opened this issue May 23, 2018 · 2 comments

Comments

@MaZhiJun
Copy link

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 (1)\OpenCV4Android-master\app -BD:\Documents\Downloads\OpenCV4Android-master (1)\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 (1)\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 (1)/OpenCV4Android-master/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

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

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

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

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

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 (1)\OpenCV4Android-master\app -BD:\Documents\Downloads\OpenCV4Android-master (1)\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 (1)\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 (1)/OpenCV4Android-master/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

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

@MaZhiJun
Copy link
Author

几乎和昨天的问题是一样的

@jiangdongguo
Copy link
Owner

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants