How To Build and Deploy LV2 Plugin to MOD Duo

From MOD Wiki
Revision as of 13:34, 4 May 2016 by Alercunha (talk | contribs)
Jump to navigation Jump to search

Introduction

In order to have a LV2 plugin running in a MOD Device you'll need the following:

  1. Understand the very basics of LV2
  2. Create a new LV2 plugin
  3. Get the build tools
  4. Create your project make files
  5. Compile it
  6. Deploy it
  7. Publish it

Let's dive in.

Basics of LV2

Create a new LV2 plugin

TODO: add samples

Get the build tools

A LV2 plugin is just a binary. However to run in a MOD Device it must be compiled using a cross-compiler targeting that particular hardware and software (libraries). Luckily this process has been made easy. All you need is to clone MOD Plugin Builder and follow the instructions.

$ git clone https://github.com/moddevices/mod-plugin-builder
$ ./bootstrap.sh

A few notable packages that you'll need:

$ apt-get install gperf texinfo libtool automake libncurses5-dev mercurial hg

Once finished you should have the cross compiler installed in ~/mod-workdir.

$ ls ~/mod-workdir
$ build download toolchain


Create your project make files

mod-plugin-builder is based on Buildroot which requires you to create make files that indicate how you plugin should be built. You must have a {projectname}.mk file in mod-plugin-builder/plugins/package/{projectname} folder.