Jump to content

How to build MIOS_Studio for Ubuntu


Recommended Posts

I had trouble with the MIOS_Studio download for Linux (maybe because I have the 64 bit version of Ubuntu 14). It just didn't work for me. So here's a tutorial on how to make MIOS_Studio (actually MIOS_Studio_Debug) on Ubuntu in case anyone else has the same issue

Open a terminal. Make a svn folder, and get the recent mios32 repo:
cd ~/
mkdir svn
svn co svn://svnmios.midibox.org/mios32/

when it's done, unpack juce:
cd ~/svn/mios32/trunk/tools/juce
unzip unpack_me.zip

Go to the mios_studio directory for linux:
cd ~/svn/mios32/trunk/tools/mios_studio/Builds/Linux

I had a bunch of missing packages that I needed to install. You can try do a make first, but I needed these:
sudo apt-get install libasound2-dev
sudo apt-get install libx11-dev
sudo apt-get install libxinerama-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libxcursor-dev

After that, do a make:
sudo make

If all went well, MIOS Studio should ready for you in the build folder:
cd build

If it runs, go ahead and quit it, and copy it to your desktop or wherever:
cp MIOS_Studio_Debug ~/Desktop

Done! You can now double click the icon and it should just work. 



If Make Fails

If make results in an error (e.g. missing file), you might need a package or two. To figure out which package has the file, use apt-file:
sudo apt-get install apt-file

Then update it:
apt-file update

So here's an example of an error during make:
../../../juce/modules/juce_events/juce_events.cpp:55:23: fatal error: X11/Xlib.h: No such file or directory
  #include <X11/Xlib.h>

Find a package with this file by doing this:
apt-file search X11/Xlib.h

which gives you this:
emscripten: /usr/share/emscripten/system/include/X11/Xlib.h
ivtools-dev: /usr/include/IV-X11/Xlib.h
libghc-x11-dev: /usr/lib/haskell-packages/ghc/lib/X11-
libhugs-x11-bundled: /usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
libroot-core5.34: /usr/lib/x86_64-linux-gnu/root5.34/cint/include/X11/Xlib.h
libx11-dev: /usr/include/X11/Xlib.h

you probably want libx11-dev (libroot-core5.34 might also work), so:
sudo apt-get install libx11-dev

Before you run make again though, do a clean:
sudo make clean

and try again:
sudo make

Edited by tonedef
a little more legible
  • Like 2
Link to comment
Share on other sites

  • smashtv pinned this topic
  • 2 years later...

THX! without that i would have been lost! :cheers:

worked at the first moment!


i had enough to close and re-open the Mios-Studio every time when uploading new code... specially while programming over weeks daily :pout: deep into code...(and that rescan joke? not funny)

my cores bootloader is setup ed, to show up as "MIOS32" (when not in bootload mode), so i hardcodet that in mios-studio to be set when press "Rescan mididevices", working under linux mint kernel 4.4.0-98

no more closing MidiStudio, or have to close multiple-open-instances because of codeing and trying and uploading, then everytime the resize of the window, search and open hexfile and so on. Of course that is hardcodet, but in my case it is good this way, now i know how to compile anyway - thx

open: svn/mios32/trunk/tools/mios_studio/src/gui/MiosStudio.cpp

edit: i deleted all from"case rescanDevices" to "break;" and wrote this instead: (the line is about 955 or so)

 case rescanDevices:
        initialMidiScanCounter = 1;

dont really know exact what is going on there, but for me its working, and thats enough.

also some colorchanging by searching the gui/....cpp filesvia


but the background of the main-fields are still white... to bad...

Edited by Phatline
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...