当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
指针常量与常量指针 巧记
【内推】新相微电子
h5页面回退到微信小程序并携带参数
JS控制只能输入数字并且最多允许小数点两位
LaTeX 图片加标题 文本分栏自动换行
DevExpress中针对指定列进行百分比转换
LaTeX uses frame to make PPT pictures without labels
前置++和后置++的区别
【FAQ】CCAPI Compatible EOS Camera List (Updated in August 2022)
《PyTorch深度学习实践》第十一课(卷积神经网络CNN高级版)
文本样式这一篇文章就够了
Freeswitch操作基本配置
Nacos集群搭建
NACOS Configuration Center Settings Profile
What is the website ICP record?
盒子模型大详解
Redis
淘宝宝贝页面制作
lingo入门——河北省第三届研究生建模竞赛B题
技术分析模式(十一)如何交易头肩形态