Compiling LMMS - Umcaruje/lmms GitHub Wiki

Dependencies

The following dependencies should be met before compiling LMMS:

Required libraries:

Optional, but strongly recommended (with devel-files each):

The last four dependencies on the list are necessary for audio playback. You may provide one or more of those, depending on what sound server(s) you'd like to use with LMMS.

For building, you'll also need:

  • GCC with g++
  • CMake (>= 2.4.5 required, >=2.6.0 recommended)

For example, for installing all dependencies on Ubuntu 12.04 (or later) at once, run:

sudo apt-get build-dep lmms && sudo apt-get install libfltk1.3-dev

Or, manually:

sudo apt-get install build-essential cmake libqt4-dev libsndfile1-dev libfftw3-dev \
libvorbis-dev libogg-dev libasound2-dev libjack-dev libsdl-dev libsamplerate0-dev \
libstk0-dev libfluidsynth-dev portaudio19-dev libfltk1.3-dev wine-dev \
libxinerama-dev libxft-dev libgig-dev

On some Debian based system if you receive No rule to make target /usr/bin/fluid, install fluid manually:

sudo apt-get install fluid

On 64 bits systems you may also have to:

sudo apt-get install libc6-dev-i386 gcc-multilib g++-multilib

(Fixes "compilation terminated. winegcc: g++ failed")

Building on Linux

Note for Ubuntu users: You may run into problems compiling LMMS on Ubuntu 12.04 or above, as the ia32-libs package has been removed from the repositories. See this page for more information: http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package

Instructions on compiling and installing LMMS:

  1. Assuming you have already fetched the sources (see Accessing git repository if not), switch to the source root directory, and create a new directory which is needed for you build.

    mkdir build
  2. Optionally, you can also create a "target" directory, or you can install LMMS to any directory of your choice.

    mkdir target
  3. Then configure LMMS with CMake, using the previously created target directory (or any directory of your choice, in which case just replace "../target" with the directory you want to use).

    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=../target

    Note: On some Debian based systems if VST fails to locate wine-dev, append -DWINE_LIBRARY=/usr/lib/i386-linux-gnu/libwine.so

    Note: For debugging pass the debug flag into cmake -DCMAKE_BUILD_TYPE=DEBUG

  4. Now compile LMMS: (People with more than one CPU core can use make's -j2 option to compile some files in parallel instead, accelerating the process. Otherwise make is just fine. )

    make -j2
  5. Finally, install LMMS into the previously specified directory:

    make install
  6. and, of course, run it:

    ../target/bin/lmms
  7. Note: If you have an older version of LMMS installed, you may run into some GUI problems and glitches. This is because LMMS 1.0.0 is no longer compatible with old 0.4.x themes. To solve the problem:

    • Run LMMS
    • Go to settings and select the folder tab
    • Clear the "artwork directory" setting so that it's empty
    • Restart LMMS
⚠️ **GitHub.com Fallback** ⚠️