引入librtmp 报错: fatal error: ‘openssl/ssl.h’ file not found
许多博客提示在CMAKELists 中添加,
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_CRYPTO")
并不好使!
需要在build.gradle中添加才好使
externalNativeBuild {
cmake {
cppFlags "-std=c++14"cppFlags "-fexceptions"cFlags "-DSTDC_HEADERS"cFlags "-DNO_CRYPTO"}ndk {
abiFilters "armeabi-v7a"}
}