1.windows cmake 编译ncnn?

  关键是要把ndk中的make路径,写到path里面

2. 使用ndk编译时候gnustl_shared, c++_static 或者 c++_shared的区别是什么?

这是native c++文件链接不同的c++标准库。gnustl_shared, 指使用shared方式,链接gnu的stl库

 c++_static 使用static方式链接llvm的c++库,目前llvm的支持比gnu更好,所以gnustl_shared处于逐渐被淘汰的地位。

名称    说明>    功能
libstdc++(默认)    默认最小系统 C++ 运行时库。    不适用
gabi++_static    GAbi++ 运行时(静态)。    C++ 异常和 RTTI
gabi++_shared    GAbi++ 运行时(共享)。    C++ 异常和 RTTI
stlport_static    STLport 运行时(静态)。    C++ 异常和 RTTI;标准库
stlport_shared    STLport 运行时(共享)。    C++ 异常和 RTTI;标准库
gnustl_static    GNU STL(静态)。    C++ 异常和 RTTI;标准库
gnustl_shared    GNU STL(共享)。    C++ 异常和 RTTI;标准库
c++_static    LLVM libc++ 运行时(静态)。    C++ 异常和 RTTI;标准库
c++_shared    LLVM libc++ 运行时(共享)。    C++ 异常和 RTTI;标准库

https://www.jianshu.com/p/9ce282dc3966


3. android gradle plugin和gradle有什么区别?

  前者是android为了使用gradle进行自动构建写的插件,gradle是基于ant, maven的概念的自动化构建工具。插播,gradle是使用groovy领域语言来配置编写,摒弃了xml方式。

4.如何升级android gradle plugin和gradle?

 版本之间的对应关系如下,项目根目录下面的build.gradle里面改写plugin版本,gradle/wrapper/gradle-wraper.properties里面改写gradle版本:

件版本

所需的 Gradle 版本
1.0.0 - 1.1.32.2.1 - 2.3
1.2.0 - 1.3.12.2.1 - 2.9
1.5.02.2.1 - 2.13
2.0.0 - 2.1.22.10 - 2.13
2.1.3 - 2.2.32.14.1+
2.3.0+3.3+
3.0.0+4.1+
3.1.0+4.4+
3.2.0 - 3.2.14.6+
3.3.0 - 3.3.24.10.1+
3.4.0 - 3.4.15.1.1+
3.5.0+

5.4.1-5.6.4

 

 

 

5 升级plugin时候入到如下错误:如何处理。

Could not find com.android.tools.build:gradle:3.5.0.
Searched in the following locations:
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar
Required by:
    project :
Add Google Maven repository and sync project
Open File

在顶层build.gradle里面,两处jcenter前面加上google()

6.jcenter goolgle什么区别?

  在以前,远端gradle库有jcenter和maven来各自维护独立的仓库,gradle4.1后,google也建立了仓库

7.gradle同步起很慢,如何加速?如何设置?

  设置gradle源为阿里,下面这样

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven{url "https://maven.aliyun.com/nexus/content/repositories/jcenter"}
        maven{url "https://maven.aliyun.com/nexus/content/groups/public"}
        maven{url "https://maven.aliyun.com/nexus/content/repositories/google"}
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven{url "https://maven.aliyun.com/nexus/content/repositories/jcenter"}
        maven{url "https://maven.aliyun.com/nexus/content/groups/public"}
        maven{url "https://maven.aliyun.com/nexus/content/repositories/google"}
        google()
        jcenter()
        maven {
            url "https://maven.google.com"
        }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

5.模型放在asset里面还是拷贝到sd卡目录?

 

6. ncnn crop层是做什么操作?

 

7. ncnn linux rentinaface 图片输入形状是什么?bchw, bhwc?

  bhwc

8. ncnn rentinaface, crop0层的输入尺寸是什么?如何打印

data 输入:300, 300, 3

第一个blob:    20, 20, 64

 第二个blob:   19, 19, 64

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐