当前位置:网站首页>The NDK compiler so libraries
The NDK compiler so libraries
2022-08-05 06:56:00 【shuangrenlong】
1.android studio Select the ndk version to download in the sdk settings
ndk development version we downloaded here is 21.0.6113669
Android stuido's local.properties needs to configure sdk and ndk paths
For example
sdk.dir=C\:\\Sdk
ndk.dir=C\:\\Sdk\\ndk\\21.0.6113669
2. Configure the ndk environment variable Path as long as it points to the directory of the ndk-build.cmd file
3. Check whether the ndk environment is well configured cmd command: ndk-build -v
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NOWARRANTY, to the extent permitted by law.
Indicates that the environment has been configured
4. Compile the library
The first method is to put the file into the project app module and the java-level directory jni..Don't wrap jni in another folder, then enter this directory
For example e: enter the E drive cd E:\jni enter the directory and then execute the command ndk-build will generate the so library
If unsuccessful, see what the error is..Is the directory of the file wrong? Adjust it again
Putting into the project is mainly to facilitate viewing the contents of the file and facilitate modification
The second method is actually the same as the first.Just don't put it into the project.Direct command to enter the directory (no need to change to jni), just execute ndk-build, so file will be generated, each cpp file will generate a so file
Pro-test can generate no problem
You can take a look
边栏推荐
猜你喜欢

深入分析若依数据权限@datascope (注解+AOP+动态sql拼接) 【循序渐进,附分析过程】

矩阵的构造

NACOS配置中心设置配置文件

Error correction notes for the book Image Processing, Analysis and Machine Vision

Source code analysis of Nacos configuration service (full)

八大排序之堆排序

《PyTorch深度学习实践》第十课(卷积神经网络CNN)

Get the network input dimensions of the pretrained model

LaTeX 图片加标题 文本分栏自动换行

2022杭电多校六 1007-Shinobu loves trip(同余方程)
随机推荐
淘宝宝贝页面制作
In-depth analysis if according to data authority @datascope (annotation + AOP + dynamic sql splicing) [step by step, with analysis process]
小程序input框不允许输入负数
2022最强版应届生软件测试面试攻略
scikit-image图像处理笔记
Matplotlib绘图笔记
export使用
ES2020新特性
数据库多表关联插入数据
Quick Start to Drools Rule Engine (1)
【MyCat简单介绍】
盒子模型中过度约束问题及其解决办法
【考研结束第一天,过于空虚,想对自己进行总结一下】
技术分析模式(十一)如何交易头肩形态
document.querySelector()方法
【FAQ】What is Canon CCAPI
Redis
《PyTorch深度学习实践》第十一课(卷积神经网络CNN高级版)
LaTeX image captioning text column automatic line wrapping
MySQL的主从模式搭建