How To Build and Deploy LV2 Plugin to MOD Duo
Jump to navigation
Jump to search
Contents
Introduction
In order to have a LV2 plugin running in a MOD Device you'll need the following:
- Understand the very basics of LV2
- Create a new LV2 plugin
- Get the build tools
- Create your project make files
- Compile it
- Deploy it
- 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
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.