Difference between revisions of "How To Build and Deploy LV2 Plugin to MOD Duo"

From MOD Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
$ ./bootstrap.sh
 
$ ./bootstrap.sh
 
</source>
 
</source>
 
A few notable packages that you'll need:
 
<source lang="console">
 
$ apt-get install gperf texinfo libtool automake libncurses5-dev mercurial hg
 
</source>
 
 
Once finished you should have the cross compiler installed in <code>~/mod-workdir</code>.
 
 
<source lang="console">
 
$ ls ~/mod-workdir
 
$ build download toolchain
 
</source>
 
 
  
 
== Create your project make files ==
 
== Create your project make files ==

Revision as of 02:33, 5 May 2016

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

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.