android x86 编译so库失败,android 人脸识别编译失败

Build command failed.

Error while executing process F:\dev\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\workplace\Baidu_Face_Offline_SDK_Android\iminect -BF:\workplace\Baidu_Face_Offline_SDK_Android\iminect\.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\workplace\Baidu_Face_Offline_SDK_Android\iminect\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=F:\dev\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC -DCMAKE_TOOLCHAIN_FILE=F:\dev\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.

Open File

It fails with the following output:

Change Dir: F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe"

"cmTC_ee5fd"

[1/2] Building C object CMakeFiles/cmTC_ee5fd.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_ee5fd

FAILED: cmd.exe /C "cd . &&

F:\dev\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe

--target=armv7-none-linux-androideabi16

--gcc-toolchain=F:/dev/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64

--sysroot=F:/dev/Android/Sdk/ndk-bundle/sysroot -isystem

F:/dev/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -g

-DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security

-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++

--sysroot F:/dev/Android/Sdk/ndk-bundle/platforms/android-16/arch-arm

-Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings

-Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a

-LF:/dev/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a

-Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro

-Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fpie

CMakeFiles/cmTC_ee5fd.dir/testCCompiler.c.o -o cmTC_ee5fd -latomic -lm &&

cd ."

error: unknown argument: '-nostdlib++'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process F:\dev\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\workplace\Baidu_Face_Offline_SDK_Android\iminect -BF:\workplace\Baidu_Face_Offline_SDK_Android\iminect\.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\workplace\Baidu_Face_Offline_SDK_Android\iminect\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=F:\dev\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC -DCMAKE_TOOLCHAIN_FILE=F:\dev\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.

Open File

It fails with the following output:

Change Dir: F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe"

"cmTC_5a5ab"

[1/2] Building C object CMakeFiles/cmTC_5a5ab.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_5a5ab

FAILED: cmd.exe /C "cd . &&

F:\dev\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe

--target=armv7-none-linux-androideabi16

--gcc-toolchain=F:/dev/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64

--sysroot=F:/dev/Android/Sdk/ndk-bundle/sysroot -isystem

F:/dev/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -g

-DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security

-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++

--sysroot F:/dev/Android/Sdk/ndk-bundle/platforms/android-16/arch-arm

-Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings

-Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a

-LF:/dev/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a

-Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro

-Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fpie

CMakeFiles/cmTC_5a5ab.dir/testCCompiler.c.o -o cmTC_5a5ab -latomic -lm &&

cd ."

error: unknown argument: '-nostdlib++'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/iminect/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process F:\dev\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\workplace\Baidu_Face_Offline_SDK_Android\orbbec -BF:\workplace\Baidu_Face_Offline_SDK_Android\orbbec\.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\workplace\Baidu_Face_Offline_SDK_Android\orbbec\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=F:\dev\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC -DCMAKE_TOOLCHAIN_FILE=F:\dev\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.

Open File

It fails with the following output:

Change Dir: F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe"

"cmTC_12b5d"

[1/2] Building C object CMakeFiles/cmTC_12b5d.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_12b5d

FAILED: cmd.exe /C "cd . &&

F:\dev\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe

--target=armv7-none-linux-androideabi16

--gcc-toolchain=F:/dev/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64

--sysroot=F:/dev/Android/Sdk/ndk-bundle/sysroot -isystem

F:/dev/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -g

-DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security

-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++

--sysroot F:/dev/Android/Sdk/ndk-bundle/platforms/android-16/arch-arm

-Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings

-Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a

-LF:/dev/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a

-Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro

-Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fpie

CMakeFiles/cmTC_12b5d.dir/testCCompiler.c.o -o cmTC_12b5d -latomic -lm &&

cd ."

error: unknown argument: '-nostdlib++'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process F:\dev\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\workplace\Baidu_Face_Offline_SDK_Android\orbbec -BF:\workplace\Baidu_Face_Offline_SDK_Android\orbbec\.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\workplace\Baidu_Face_Offline_SDK_Android\orbbec\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=F:\dev\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC -DCMAKE_TOOLCHAIN_FILE=F:\dev\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: F:/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/dev/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.

Open File

It fails with the following output:

Change Dir: F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"F:\dev\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe"

"cmTC_b089e"

[1/2] Building C object CMakeFiles/cmTC_b089e.dir/testCCompiler.c.o

[2/2] Linking C executable cmTC_b089e

FAILED: cmd.exe /C "cd . &&

F:\dev\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe

--target=armv7-none-linux-androideabi16

--gcc-toolchain=F:/dev/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64

--sysroot=F:/dev/Android/Sdk/ndk-bundle/sysroot -isystem

F:/dev/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -g

-DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security

-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++

--sysroot F:/dev/Android/Sdk/ndk-bundle/platforms/android-16/arch-arm

-Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings

-Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a

-LF:/dev/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a

-Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro

-Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fpie

CMakeFiles/cmTC_b089e.dir/testCCompiler.c.o -o cmTC_b089e -latomic -lm &&

cd ."

error: unknown argument: '-nostdlib++'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "F:/workplace/Baidu_Face_Offline_SDK_Android/orbbec/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值