Git Product home page Git Product logo

androidsink's Introduction

Androidsink

Android example for gstreamer-rs

Build

This project uses Mozilla's rut-android-gradle. Before building the project the following environment variables should be specified.

# Environment variables
export ANDROID_HOME=<path/to/android/home>
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/build-tools/29.0.2:$ANDROID_HOME/platform-tools
export ANDROID_NDK_HOME=<path/to/ndk>
export PATH=$PATH:$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
export CC=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
export CXX=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
export PKG_CONFIG_ALLOW_CROSS=1 
export GST_PKG_CONFIG=<path/to/android/gstreamers/pkgconfig>

The folder pointed to by GST_PKG_CONFIG should have the following structure:

  • pkgconfig
    • armv7
    • arm64
    • x86
    • x86_64

To build the rust library:

cd examples/sink
./gradlew cargoBuild

In order to build the whole project, all the gstreamer libraries used should be copied into examples/sink/app/build/rustJniLibs.

To build and install the android package:

cd examples/sink
./gradlew installDebug

androidsink's People

Contributors

sirius-cc-wu avatar

Stargazers

 avatar Volodymyr Lisivka avatar

Watchers

Sirius Wu avatar James Cloos 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.