Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:compiling_installing_-_linux [2016/07/12 11:24] – [Compile from tar-ball] devadocumentation:compiling_installing_-_linux [2021/06/10 06:53] (current) deva
Line 1: Line 1:
-======Compiling and Installing on linux (LV2)====== +======Compiling and Installing on linux (LV2 only)====== 
-This guide will show you how to unpack, compile and install the lv2 version of the drumgizmo plugin. It will also show how to make it usable for the LV2 host Ardour3+This guide will show you how to unpack, compile and install the lv2 version of the drumgizmo plugin. It will also show how to make it usable for the LV2 host Ardour
-=====Install dependecies=====+=====Install dependencies=====
 The dependencies needed are: The dependencies needed are:
-  * lv2-devel in at least version 1.0 +  * lv2 >= 1.0 (https://lv2plug.in/) 
-  * libx11-dev (for the UI) +  * Xlib (for the UI) (https://www.x.org/
-  * libsndfile-devel in at least version 1.0.21 +  * sndfile >= 1.0.21 (http://www.mega-nerd.com/libsndfile/)
-  * zita-resampler-devel (or libsamplerate-devel if zita-resampler is not availble on your platform) +
-  * libexpat-devel.+
  
 On a Debian based system (this includes Ubuntu) the following command should work: On a Debian based system (this includes Ubuntu) the following command should work:
 <code> <code>
-sudo apt-get install \+sudo apt install \
   build-essential \   build-essential \
 +  autoconf \
 +  automake \
 +  libtool \
   lv2-dev \   lv2-dev \
   xorg-dev \   xorg-dev \
-  libsndfile1-dev +  libsndfile1-dev
-  libzita-resampler-dev \ +
-  libexpat-devel+
 </code> </code>
  
 +If you plan on compiling the command-line tool as well you will need the following dependencies as well:
 +<code>
 +sudo apt install \
 +  libjack-dev \
 +  libsmf-dev \
 +  libasound2-dev
 +</code>
 =====Compile from tar-ball===== =====Compile from tar-ball=====
 First download the latest source tar-ball from [[:getting_drumgizmo|this]] location. First download the latest source tar-ball from [[:getting_drumgizmo|this]] location.
-In this example version 0.9.10 will be used.+In this example version 0.9.15 will be used.
  
-Unpack the source file by issuing the followng command:+Unpack the source file by issuing the following command:
 <code> <code>
-tar xvzf drumgizmo-0.9.10.tar.gz+tar xvzf drumgizmo-0.9.15.tar.gz
 </code> </code>
  
-This will produce a folder with the name ''drumgizmo-0.9.10''.+This will produce a folder with the name ''drumgizmo-0.9.15''.
  
 Now do the following to configure and compile the plugin: Now do the following to configure and compile the plugin:
 <code> <code>
-cd drumgizmo-0.9.10 +cd drumgizmo-0.9.15 
-./configure --prefix=$PWD/install --enable-lv2 --disable-cli+./configure --prefix=$PWD/install --with-lv2dir=$HOME/.lv2 --enable-lv2 --disable-cli
 make make
 make install make install
 </code> </code>
  
 +If you also want the command line tool, replace the ''--disable-cli'' argument with ''--enable-cli''.
 =====Compile from git sources===== =====Compile from git sources=====
 First clone the git sources as described [[:getting_drumgizmo#latest_source_code|this]] location. First clone the git sources as described [[:getting_drumgizmo#latest_source_code|this]] location.
Line 47: Line 54:
 </code> </code>
  
-Now install the **cppunit-devel** package (needed for ./autogen.sh to run). How you install this varies from distro to distroOn Ubuntu, it installs using: +If the git repository was already cloned earlier (and you made a ''git pull'' instead of a clone) be sure to run ''git submodule init; git submodule update'' before you compile.
-<code> +
-sudo apt-get install libcppunit-dev +
-</code>+
  
 Now do the following to configure and compile the plugin: Now do the following to configure and compile the plugin:
 <code> <code>
 ./autogen.sh # Note this step is only necessary when compiling from git sources. ./autogen.sh # Note this step is only necessary when compiling from git sources.
-./configure --prefix=$PWD/install --enable-lv2+./configure --prefix=$PWD/install --with-lv2dir=$HOME/.lv2 --enable-lv2 --disable-cli
 make make
 make install make install
 </code> </code>
 The configure step might fail if the lv2-devel package is not present with at least version 1.0. The configure step might fail if the lv2-devel package is not present with at least version 1.0.
-It also requires libsndfile-devel in at least version 1.0.21 and libexpat-devel.+It also requires libsndfile-devel in at least version 1.0.21.
  
 +If you also want the command line tool, replace the ''--disable-cli'' argumnt with ''--enable-cli''.
 =====Install===== =====Install=====
-When the ''make install'' step has been successfully performed the source directory will contain a folder named ''install''. +When the ''make install'' step has been successfully performed plugin has been installed in the folder $HOME/.lv2/drumgizmo.lv2. This folder contain all the lv2 plugins for the current user and will automatically be found by the lv2 hosts.
-In this folder the install/lib/lv2/drumgizmo.lv2 is located. This folder contain all the files needed for the plugin to run. +
-In order to make it work with Ardour3, either copy this directory to the lv2 plugin dir (usually /usr/lib/lv2) or add the following line to the top of the .bashrc file in your home directory: +
-<code> +
-export LV2_PATH=XXXXX/drumgizmo-0.9.10/install/lib/lv2/drumgizmo.lv2 +
-</code> +
-, where XXXXX is the path to the location where you extracted the drumgizmo sourcecode. +
- +
-**NOTE**: This will not be activated before you log out and back in again.+
  
-Now fire up Ardour and everything should be dandy.+Now fire up your favorite DAW and everything should be dandy.
  
 =====Using===== =====Using=====
-Add a midi track to Ardour 3 (Ardour 2 doesn't support midi) and add the DrumGizmo plugin to this track.+Add a midi track to Ardour and add the DrumGizmo plugin to this track.
 Open the GUI and select the drumkit and midimap to use. The drumkit is loaded in the background so it might take a while before it is fully ready to use. Open the GUI and select the drumkit and midimap to use. The drumkit is loaded in the background so it might take a while before it is fully ready to use.
  
documentation/compiling_installing_-_linux.1468315481.txt.gz · Last modified: 2016/07/12 11:24 by deva
Trace:
GNU Free Documentation License 1.3
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0