Giter Site home page Giter Site logo

android-ndk-service's Introduction

Android NDK Service

Per build: ndk-build nella root

Varibili d'ambiente usate:

# ANDROID SDK
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export ANDROID_SDK_ROOT="/Users/Roberto/Library/Android/sdk"
export PATH="/Users/Roberto/Library/Android/sdk/platform-tools":$PATH
export PATH="/Users/Roberto/Library/Android/sdk/build-tools/30.0.3/":$PATH
# ANDROID NDK
#export NDK_APPLICATION_MK=./Application.mk
#export APP_BUILD_SCRIPT=./Android.mk
#export NDK_PROJECT_PATH=.
export PATH="/Users/Roberto/Library/Android/sdk/ndk/22.0.7026061/:$PATH" # DEVI CAMBIARE ad ogni update

per selezionare l'architettura: APP_ABI := armeabi-v7a arm64-v8a x86

per prendere le libreria da un device:

adb shell uname -m # per sapere l'architettura del telefono
adb pull /system/lib/libutils.so
adb pull /system/lib/libcutils.so
adb pull /system/lib/libbinder.so
file libbinder.so # vedere se è 32 o 64 bit e mettere poi in jni/armv8l o armeabi-v7a
# copiare con adb push sul telefono
# spesso /sdcard è montato come non eseguibile, copiare altrove 
chmod +x helloworldclient
chmod +x helloworldservice
export LD_LIBRARY_PATH=.
./helloworldservice
# in altro terminale di adb
./helloworldclient

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.