当前位置:网站首页>王学岗-编译出运行的文件
王学岗-编译出运行的文件
2022-08-02 07:47:00 【qczg_wxg】
我们依照上篇博客写的步骤,编译出在Linux中可执行的main文件。然后把它放到手机SDcard 中执行,发现无法执行。
补充:
放到Sdcard中步骤
adb shell
adb sdcard
./main0801
在Linux中可以执行,但在Android无法执行,我们无法跨平台执行。这个时候就用到NDK了。
在Linux系统中下载NDK
wget NDK地址
mv 文件改名字
unzip解压
把NDK解压到目录中。开始编译了
pwd拿到当前文件的路径,
打开vim /etc/profile
配置环境变量
export NDKROOT=/root/study/android-ndk-r25
export PATH= N D K R O O T : NDKROOT: NDKROOT:PATH
source /etc/profile 保存修改
输入echo $NDKROOT查看是否修改成功
如果输出NDK路径则表示修改成功,如我的路径是:/root/study/android-ndk-r25
边栏推荐
- 2022-7-31 12点 程序爱生活 恒指底背离中,有1-2周反弹希望
- 原型模式
- I.MX6U-ALPHA开发板(EPIT定时器实验)
- MySQL事务(transaction) (有这篇就足够了..)
- Control 'ContentPlaceHolder1_ddlDepartment' of type 'DropDownList' must be placed inside a form tag with runat=server.
- I.MX6U-ALPHA开发板(定时器按键消抖)
- Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
- IO进程线程->进程->day4
- .NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
- flutter 自己写一个组件
猜你喜欢

MySQL事务隔离级别详解

Understand the Chisel language. 30. Chisel advanced communication state machine (2) - FSMD: Take Popcount as an example

7.联合索引(最左前缀原则)

用户身份标识与账号体系实践

59: Chapter 5: Develop admin management services: 12: MongoDB usage scenarios; (non-core data, non-core data with a relatively large amount of data, small private files such as face photos;)

5分钟搞懂MySQL - 行转列

Xilinx Constraint Study Notes - Timing Constraints

按键控制流水灯(计时器)

Application and case analysis of CASA model and CENTURY model

牛客2022 暑期多校4 D Jobs (Easy Version)(递推优化策略)
随机推荐
5分钟搞懂MySQL - 行转列
小说里的编程 【连载之二十五】元宇宙里月亮弯弯
MGRE环境下的OSPF
Kind of weird!Access the destination URL, the host can container but not
离线部署通过tiup 配置好topology.yaml文件指定PD TV TIDBserver 是不是会自动在其他机器创建好对应得模块?
HCIP 第五天
Visual Analysis of DeadLock
CASA模型、CENTURY模型应用与案例分析
Shell变成规范与变量
3D激光slam:LeGO-LOAM---地面点提取方法及代码分析
playwright 爬虫使用
17、生成长图,并上传至服务器
mysql去除重复数据
WebForm DropDownList分别绑定年月
高仿【华为消费者业务官网】和精彩动画剖析:练习在低代码平台中嵌入JS代码
基本SQL语句(一篇就够了)
Probability Theory and Mathematical Statistics
HCIP第二天
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
WebForm DropDownList bind year and month respectively