求助官方人脸闸机demo下载下来该替换的地方全部替换之后编译异常
Android Studio 3.1
JAVA 1.8
Build command failed.
Error while executing process D:\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\facedemo2\facesdk\.externalNativeBuild\cmake\debug\armeabi-v7a --target rtsp}
[1/3] Building CXX object CMakeFiles/rtsp.dir/src/main/cpp/RtspJni.cpp.o
[2/3] Building CXX object CMakeFiles/rtsp.dir/src/main/cpp/RtspClient.cpp.o
FAILED: D:\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=D:/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/sdk/ndk-bundle/sysroot -Drtsp_EXPORTS -I../../../../src/main/cpp/include -isystem D:/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include -isystem D:/sdk/ndk-bundle/sources/android/support/include -isystem D:/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++abi/include -isystem D:/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=19 -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 -std=c++11 -std=gnu++11 -fexceptions -frtti -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/rtsp.dir/src/main/cpp/RtspJni.cpp.o -MF CMakeFiles\rtsp.dir\src\main\cpp\RtspJni.cpp.o.d -o CMakeFiles/rtsp.dir/src/main/cpp/RtspJni.cpp.o -c E:\facedemo2\facesdk\src\main\cpp\RtspJni.cpp
In file included from E:\facedemo2\facesdk\src\main\cpp\RtspJni.cpp:5:
E:\facedemo2\facesdk\src\main\cpp/RtspClient.hpp:13:10: fatal error: 'hash_map' file not found
#include
^~~~~~~~~~
1 error generated.
FAILED: D:\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=D:/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/sdk/ndk-bundle/sysroot -Drtsp_EXPORTS -I../../../../src/main/cpp/include -isystem D:/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include -isystem D:/sdk/ndk-bundle/sources/android/support/include -isystem D:/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++abi/include -isystem D:/sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=19 -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 -std=c++11 -std=gnu++11 -fexceptions -frtti -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/rtsp.dir/src/main/cpp/RtspClient.cpp.o -MF CMakeFiles\rtsp.dir\src\main\cpp\RtspClient.cpp.o.d -o CMakeFiles/rtsp.dir/src/main/cpp/RtspClient.cpp.o -c E:\facedemo2\facesdk\src\main\cpp\RtspClient.cpp
In file included from E:\facedemo2\facesdk\src\main\cpp\RtspClient.cpp:5:
E:\facedemo2\facesdk\src\main\cpp/RtspClient.hpp:13:10: fatal error: 'hash_map' file not found
#include
^~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
RtspClient.hpp文件中
//使用#include 改为#include
#include
前辈,这个问题解决了吗?
这是运行时错误,咱们的问题、报错,一模一样。。我是集成百度采集SDK的问题以后,Android studio提示安装NDK,然后安装完成后,编译时,报NDK错误: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi。我去下载了r16 NDK, 把缺失的文件包拷进NDK的toolchains 文件夹里,编译通过了。 但是接下来就是这个运行时错误。头大!
求解!