当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【FAQ】什么是 Canon CCAPI
日本卫生设备行业协会:日本温水喷淋马桶座出货量达1亿套
UDP广播
Promise (三) async/await
cs231n学习记录
LaTeX image captioning text column automatic line wrapping
(2022杭电多校六)1012-Loop(单调栈+思维)
NB-IOT智能云家具项目系列实站
Rapid Medical超小体积且唯一可调的取栓器获得FDA核准
MySQL表操作练习
图像处理、分析与机器视觉一书纠错笔记
## 简讲protobuf-从原理到使用
(四)旋转物体检测数据roLabelImg转DOTA格式
八大排序之快速排序
(2022杭电多校六)1010-Planar graph(最小生成树)
深夜小酌,50道经典SQL题,真香~
MySql面试题总结
Pytorch分布式并行处理
【2022 DSCTF决赛wp】
《PyTorch深度学习实践》第十课(卷积神经网络CNN)









