请问Android中可以使用JNI调用非JNI规范纯C函数编译出的so文件吗
我使用的是针对特殊平台产生的非JNI规范的so文件,在Android官网看到谷歌采用了一种新的make方式,通过Cmake和CMakeLists.txt来链接编译
我看到官方的源码谷歌官方示例直接放在默认的libry目录下,我想让他在自己的目录下找,但是最新的这种CMake方式,不知道so文件和头文件的目录应该怎么建立。谷歌官方NDK
add_library( iconv
SHARED
IMPORTED )
set_target_properties( # Specifies the target library.
iconv
# Specifies the parameter you want to define.
PROPERTIES IMPORTED_LOCATION
# Provides the path to the library you want to import.
/libs/src/armeabi/libiconv.so)
#include_directories( imported-lib/src/include/ )
target_link_libraries( # Specifies the target library.
native-lib
# Links the target library to the log library
# included in the NDK.
iconv ${log-lib} )
但是Make时一直报错,显示iconv.so needed by native-lib.so ; missing or no known rule to make it