Coder Social home page Coder Social logo

ndk_deep's Introduction

NDK_DEEP

javah 命令

BUILD FAILED in 1s 192:NDK_DEEP mac$ javah 用法: javah [options] 其中, [options] 包括: -o 输出文件 (只能使用 -d 或 -o 之一) -d

输出目录 -v -verbose 启用详细输出 -h --help -? 输出此消息 -version 输出版本信息 -jni 生成 JNI 样式的标头文件 (默认值) -force 始终写入输出文件 -classpath 从中加载类的路径 -cp 从中加载类的路径 -bootclasspath 从中加载引导类的路径 是使用其全限定名称指定的 (例如, java.lang.Object)。

cmakelist配置

生成方式

as工具栏->build->rebuild project

.so文件目录

build->intermediates->cmake

日志的使用方式

  1. 引入头文件 #include <android/log.h>
  2. 增加 #define LOG_TAG "C_TAG"
  3. 增加 #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, VA_ARGS)

调用方式 LOGD("==============hello.length=%d",hello.length());

JAVA和NDK数据对比

[https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/types.html]

ndk_deep's People

Contributors

nbxxf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.