Coder Social home page Coder Social logo

liuxuanhai / socketcanjni Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zengjfos/socketcanjni

0.0 2.0 0.0 965 KB

尝试将libsocket-can-java移植到Android上的,里面对libsocket-can-java添加了注释,发现该库还需要加强。

License: Apache License 2.0

Makefile 50.79% C++ 11.94% C 20.01% Shell 0.41% Java 16.86%

socketcanjni's Introduction

SocketCanJNI

尝试将libsocket-can-java移植到Android上的,里面对libsocket-can-java添加了注释,发现该库还需要加强。

说明

  • 本人对libsocket-can-java源码进行了解读,相关部分都加了注释;
  • libsocket-can-java其源码中没有对滤波的实现,当然其中还要一些有关CAN的设定也是没有的;
  • 本demo仅仅做了移植这部分内容的测试,并未去实现其他的相关任何内容。

JNI NDK 编译方法

  • jni/Android.mk
    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE    := CanSocket
    LOCAL_SRC_FILES := CanSocket.cpp
    LOCAL_LDLIBS    := -llog
    LOCAL_C_INCLUDES := ./include

    include $(BUILD_SHARED_LIBRARY)
  • jni/Application.mk
    APP_PLATFORM := android-9
    APP_STL := stlport_static

JNI Android Source Code 编译方法

  • jni/Android.mk
    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE    := libCanSocket
    LOCAL_SRC_FILES := CanSocket.cpp
    LOCAL_LDLIBS    := -llog
    LOCAL_C_INCLUDES := ndk/sources/cxx-stl/stlport/stlport
    LOCAL_STATIC_LIBRARIES += libstlport_static

    include $(BUILD_SHARED_LIBRARY)

Author

socketcanjni's People

Contributors

zengjfos avatar

Watchers

James Cloos avatar C++ 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.