Giter Club home page Giter Club logo

torch-android-build-box's Introduction

Automated buildbox for torch-android

Run one command and have torch-android for armv7a and armv8 ready for action.

This Vagrant Box provisions an Ubuntu 14.04 64bit VM with Android SDK/NDK, correct cmake version and other dependencies. After provisioning it builds Torch and torch-android. Finally you can find the built binaries, headers and lua-lib in ./mounted. Depending on available computation power the build time will be between 15min-2h.

You can use this to build torch-android on all platforms supported by VirtualBox; Windows, OSX, Linux etc.

Instructions

Prerequisite; Install Vagrant and VirtualBox.

Let's get started:

  1. git clone https://github.com/paramsen/torch-android-build-box.git
  2. cd torch-android-build-box
    • Protip; vim Vagrantfile, increase RAM/CPUs as much as your computer can afford
    • Protip 2; vim Vagrantfile, update to the newest NDK if it isn't up to date
  3. vagrant up -> Vagrant builds torch-android (expect it to take 30min-2hrs depending on the available computation power)
  4. ls mounted -> Verify that the build completed successfully, mounted will contain the following directories each containing built files
    mounted
    ├── arm64-v8a
    ├── armeabi-v7a
    ├── headers
    └── lua
    
  5. vagrant halt -> Stop the VM
  6. vagrant destroy -f -> Delete the VM from disk, keeps the built stuff in ./mounted
  7. You're ready to proceed to the next article and use the built binaries in your Android Studio project

Config (speed up build time)

In the Vagrantfile you can edit available RAM and CPUs, increase these as much as your computer can afford.

More info about using torch-android

Read my torch-android writeup for more info.

LICENSE

I created this purely for educational purposes, hence the MIT license.

torch-android-build-box's People

Contributors

paramsen avatar avlbanuba avatar

Watchers

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.