当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
MySql面试题总结
技术分析模式(八)双顶和底
D41_buffer pool
cs231n学习记录
VSCode编写OpenCV
Collision, character controller, Cloth components (cloth), joints in the Unity physics engine
Nacos集群的搭建过程详解
DevExpress中针对指定列进行百分比转换
【5】Docker中部署MySQL
八大排序之堆排序
文件内音频的时长统计并生成csv文件
Promise (三) async/await
盒子模型小练习
小程序input框不允许输入负数
《PyTorch深度学习实践》第十课(卷积神经网络CNN)
深夜小酌,50道经典SQL题,真香~
【2022 DSCTF决赛wp】
After docker is deployed, mysql cannot connect
LabVIEW中如何实现任意形状的不规则按键
白鹭egret添加新页面教程,如何添加新页面








