How to Build/Compile and Install LMMS from Source Code!

How to Build/Compile and Install LMMS from Source Code!


Hello, I’m Jousboxx. Welcome to my
tutorial about building and installing LMMS from source code. I’m running on Ubuntu 16.04 but this
process should work on almost any relatively recent Ubuntu release. so
first of all we need to remove any existing LMMS and WINE installations. Then,
you need to install WINE 1.8 which is a more recent version (that will make VST
plugins more stable) using a PPA, which stands for personal package archive. Then
we’re going to install the LMMS build dependencies, which are packages that are
required to build LMMS from source. Then we’re going to download and extract
the source code, and then we’re going to build and install LMMS. Before we get
started it’s good to backup the LMMS folder. Usually this isn’t necessary but in case
something goes wrong or if your system is different than mine, you might lose
that folder and with it all of your projects and samples and music and stuff.
So just copy that and paste it somewhere safe like the desktop. Open up a terminal and run ‘sudo apt-get
remove lmms wine wine-dev’. Hit enter, Type in your password, and it will ask
you if you want to remove the packages. Press Y and hit enter. Now do ‘sudo
apt-get autoremove’ This will remove any leftover junk from the previous command.
Now we’re going to install WINE 1.8. I’ll put a link to this website in the
description, and I have it bookmarked so we can get to it really fast. Scroll down to the instructions and do
‘sudo add-apt-repository ppa:ubuntu-wine/ppa’. This PPA is managed
by Scott Ritchie and Maarten Lankhorst. Thank you! Now do ‘sudo apt-get update’ and
then ‘sudo apt-get install wine 1.8 wine1.8-dev’. You don’t need to install
winetricks like listed on the command on the left because that is a GUI
interface that allows you to install windows programs on Ubuntu, but that’s
not necessary because the only reason we’re installing WINE is so we can use
VST plugins which don’t need the separate program. Now we also want to do
this command here: ‘sudo dpkg add-architecture i386’ I don’t
believe that this is necessary for building but it will eliminate a lot of
potential errors and overall just make the process smoother. So we finished
installing WINE 1.8, and now we are going to go to the LMMS
github page at github.com/LMMS. Click LMMS, and this would be a good
point to download the source code because the button”s right there. So
download that, save file, and then go to wiki, and link near the middle
‘Compiling LMMS’. This is a handy instruction manual for us including a
list of build dependencies, and this command that will manually install of
them. So just copy that whole command and paste it into your terminal. So it’s
going to give us this error because it’s not sure which version of wine-dev it
should install: 1.8 or 1.6. We just installed wine-dev 1.8, so we don’t need to install
either version. So press the up arrow to go back to that command, and go to the
place where it says wine-dev and just erase it. Enter, Yes. We are on a 64-bit system and
it’s almost certain that you are too, so this command will install the multiarch
libraries for the compiler, which fixes “compilation terminated, winegcc g++
failed” which is very annoying. Ubuntu isn’t considered an ‘other debian-based
system’ so you don’t need to run that command, we’re not on a Debian i386
system so we don’t need to run that. So we already fetched the sources, but we do
need to extract them. So go into your downloads folder, right click that and
click ‘extract here’. You can go in there and look around, all the source code is
in there and if you’re like good at code you can maybe like modify some stuff but
that’s up to you. Go back to the terminal once you’re done and type in ‘cd (for
change directory) Downloads’, then ‘cd lmms-master’ and
then ‘ls’, ‘mkdir build’. Now we’re going to do change directory into build and
then ‘cmake ..’ . ‘..’ means “target this command on the directory outside this
one”. This will basically just check to make sure everything set up properly for
compiling LMMS and also It’ll generate some like files and stuff. If
there are like a few errors up there and like a few things not found that’s
probably OK, that happens every time I’ve done it, but as long as you get
those three messages at the bottom: ‘configuring done’, ‘generating done’, and
‘build files have been written to blah blah blah’ You’re good. Now do ‘make – j [number of CPU cores you have]’. If you’re not sure how many CPU cores
you have, you can go into a new terminal and type in ‘lscpu’. Now go up until you
see an entry called number of CPUs or just CPUs or if you have one socket
which would probably do CPUs per socket, and that’s the number right there. So
just put that number in. I’m running on a two core processor. And now we’re
building LMMS! this may take a long time or it might
not it, really depends on how good your computer is. For me it took about like
eight minutes. And… Congratulations! You’ve successfully
built LMMS from source code. If you didn’t get to this place tell me in the comments, and if there was
an error post that too. I’ll try to help you. If you did get here
do ‘. /lmms’ and prepare to be amazed! So as you can see they have an awesome
new theme, if you want to check any of these boxes you can, and then for the
sound device if you’re not sure just try those devices one by one — just do
the first one, restart LMMS, do the second one, restart, and so-and-so, and
whichever one works best is probably the right one. OK, that window will appear, OK and voila! Custom-built, pre-release LMMS.
So click TripleOscillator a few times just to make sure everything works as
far as sound, and then you can close LMMS. And now we’re going to actually install LMMS, so it’s going to appear in your menu, it’s going to be saved on your hard
drive, all that stuff. So do ‘sudo make install’ and then you can close all those
windows. Now.open up a browser and go to ‘synth1.com’. This is a VST that works
very well on all platforms and it’s good to test to make sure VeSTige is working
properly. VeSTige can be kind of unstable, especially on custom built LMMS, versions, so
just test it. So go to your downloads folder, right-click that one, extract here, and then you can look
inside but you want to take the whole folder. Cut it go into the LMMS folder
and put it in plugins/VST. Put it right there. Yup, my projects are still there so it
didn’t overwrite them when we compiled it. And now you can go into your menu, LMMS should
be in it and go ahead and launch it. Put in a new VeSTige track click it and open
up Synth1. Since this is the first time we’ve run WINE on this computer it’s going to pop up this window saying
we need to configure WINE. Or that it needs to configure or whatever. It may have you
install several Mono and Gecko packages to give you compatibility with the VST
plugin, just go along with it and click install. Make sure you don’t click LMMS
during this process because it is very unstable. And then just reload the VST
plugin and there you go! Hit some keys to make sure everything’s working. [Totally not ripping off Destiny by LocoMatt] and that’s pretty much it. Just use LMMS normally and check out all the cool new features! Thanks for watching this, I hope it
helped you and have a good day. Bye. [I call this thingy ‘Melting Point’. Maybe I’ll release it sometime, IDK.]

5 thoughts on “How to Build/Compile and Install LMMS from Source Code!”

  1. You shouldn't download the zip, and rather use git clone, cause it will save you a shitload of time when a new version comes out.

  2. This tutorial was really helpful thanks! Though I did have to manually install a couple of files from Synaptic like fltk and Fluid, etc, etc. I'm currently using Linux Mint 17.3 Rosa.

Leave a Reply

Your email address will not be published. Required fields are marked *