BLM-Scalar emulation JUCE app compiled for the Raspberry Pi

borfo
By borfo in MIDIbox BLM,
I got the BLM scalar app working on the Raspberry Pi (Debian) - I can use the Pi to run the Novation Launchpad BLM, it works pretty much perfectly, although it leaves some lit LEDs behind the current step indicator occasionally until it passes again.  No big deal...   The compiled Raspberry Pi binary is here:   http://www.boxx.ca/BLM-Rpi     Let me know if it works for you.   It segfaults if it is run from the terminal without X (TK, could this be made headless?).  So, set your Pi to automatically log in, startx, and then start the BLM emulator, and you've got a headless device to run the Launchpad BLM.   you might have to install the following JUCE dependencies on your pi: sudo apt-get -y install freeglut3-dev libasound2-dev libfreetype6-dev libjack-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev mesa-common-dev   Needs a powered USB hub if you're running the SEQ and two launchpads from the Pi...  But you can power the Pi from the same hub.   ############################   To compile it yourself: On your computer:

Open the BLM scalar app in introjucer.  Add the following in the Extra Processor Definitions section:

JUCE_USE_XSHM=0 JUCE_USE_XINERAMA=0

Save the project, and copy it over to your Pi.  I copied the whole MIOS32 directory over.

On your Pi:

sudo apt-get -y install freeglut3-dev libasound2-dev libfreetype6-dev libjack-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev mesa-common-dev libjack0

(JUCE dependencies)

Enter the JUCE project's Builds/Linux directory.

Recent JUCE builds require GCC 4.7 - my compile was throwing errors before I did this:

sudo apt-get install gcc-4.7 g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --config gcc

...and choose 4.7

...then "make".  The compile is slow, but it worked for me - took about half an hour.
  • 7 replies