ndk-build编译so文件

上传者: xiaoyifeishuang1 | 上传时间: 2022-12-14 16:19:03 | 文件大小: 8.83MB | 文件类型: ZIP
在Ubuntu的情况下,ndk-build编译C++成Android Studio可用的so文件。这里是一个将android-ndk-r21e生成交叉编译链之后,可以直接使用ndk-build这个指令就可以生成Android Studio可以使用的依赖库.so文件。CRC16是一个CRC16/MODBUS验证码,可以拿到一个整数值。需要换算成16进制的 Android Studio的这个类和内容是必须的,不然无法调用C++ package wolf.xiao.clanguage; /** * author:wolf * create date:2022/12/14 * Describe: */ public class CToJavaUtil { public static native String getCContent(); static { System.loadLibrary("ctojavautil"); } }

文件下载

资源详情

[{"title":"( 22 个子文件 8.83MB ) ndk-build编译so文件","children":[{"title":"CWork","children":[{"title":".vs","children":[{"title":"ProjectSettings.json <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"CWork","children":[{"title":"v15","children":[{"title":"Browse.VC.db <span style='color:#111;'> 5.09MB </span>","children":null,"spread":false},{"title":".suo <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"a182fc86541d10","children":[{"title":"WOLF_XIAO_CLANGUAGE_CTOJAVAUTIL.ipch <span style='color:#111;'> 28.69MB </span>","children":null,"spread":false}],"spread":true},{"title":"10c61273b45d673e","children":[{"title":"CRC16.ipch <span style='color:#111;'> 1.81MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"VSWorkspaceState.json <span style='color:#111;'> 226B </span>","children":null,"spread":false},{"title":"slnx.sqlite <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"local","children":[{"title":"armeabi-v7a","children":[{"title":"libc++_shared.so <span style='color:#111;'> 3.98MB </span>","children":null,"spread":false},{"title":"libctojavautil.so <span style='color:#111;'> 266.99KB </span>","children":null,"spread":false},{"title":"objs","children":[{"title":"ctojavautil","children":[{"title":"wolf_xiao_clanguage_CToJavaUtil.o <span style='color:#111;'> 227.57KB </span>","children":null,"spread":false},{"title":"wolf_xiao_clanguage_CToJavaUtil.o.d <span style='color:#111;'> 13.47KB </span>","children":null,"spread":false},{"title":"CRC16.o.d <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"CRC16.o <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"jni","children":[{"title":"wolf_xiao_clanguage_CToJavaUtil.h <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"CRC16.cpp <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"wolf_xiao_clanguage_CToJavaUtil.cpp <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"Application.mk <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"CRC16.h <span style='color:#111;'> 65B </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"armeabi-v7a","children":[{"title":"libc++_shared.so <span style='color:#111;'> 541.80KB </span>","children":null,"spread":false},{"title":"libctojavautil.so <span style='color:#111;'> 25.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".vscode","children":[{"title":"settings.json <span style='color:#111;'> 65B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明