您的位置:首页 > 其它

如何将一个已经编译好的so文件编译进system/lib64目录下

2015-11-27 15:44 162 查看
在proting fingerprint sensor的时候,厂商给出的guide里需要将libvfmClient.so放入

机台的system/lib64目录下

具体的做法如下:

首先在源码中搜寻是否有类似的做法,因为so文件需要编译之后才可以使用,不能直接cp

在frameworks/native/opengl/libs目录下的

Android.mk文件中加入

###############################################################################

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \

libvfmClient.so
\

#

LOCAL_MODULE:= libvfmClient

#

include $(BUILD_SHARED_LIBRARY)

###############################################################################

编译mmm frameworks/native/opengl/libs/之后发现

Export includes file: frameworks/native/opengl/libs/Android.mk -- out/target/product/Z00L/obj/SHARED_LIBRARIES/libvfmClient_intermediates/export_includes

target Strip: libvfmClient (out/target/product/Z00L/obj/lib/libvfmClient.so)

Install: out/target/product/Z00L/system/lib64/libvfmClient.so

这样的编译结果表面编译成功了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: