these are my current notes regarding JUCE on a Raspberry Pi B+. I don't need to modify the JUCE Makefile.
.. author: Samuel Gaehwiler (klangfreund.com)
***************
Raspberry Pi B+
***************
On OSX
======
If you intend to work with the Cirrus Logic Audio Card, download the Raspbian Image from
http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card -> Firmware Download.
Format the microSD card using the SDFormatter https://www.sdcard.org/downloads/formatter_4/ .
Choose "Quick Format".
Call the Card "RECOVERY" (It would be renamed to this from the Raspberry Pi anyways).
(Source: http://www.raspberrypi.org/help/noobs-setup/)
Ensure that disk4 really corresponds to the microSD card::
diskutil info /Volumes/RECOVERY/
In Disk Utility, unmount the RECOVERY disk. (don't eject in Finder.)
Copy the img (7.34GB) to the microSD card::
sudo dd bs=1m if=cirrus_audio.img of=/dev/disk4
(Source: http://www.instantsupportsite.com/self-help/raspberry-pi/raspberry-p-wheezy-installation/)
bs = blocksize
This took 3112 seconds to complete... (next time, check if dd has a -v / --verbose flag)
On the Raspberry Pi
===================
Blank Screen
------------
If your display remains blank, you should select the correct output mode for your display by pressing one of the following number keys on your keyboard:
1. HDMI mode - this is the default display mode.
2. HDMI safe mode - select this mode if you are using the HDMI connector and cannot see anything on screen when the Pi has booted.
3. Composite PAL mode - select either this mode or composite NTSC mode if you are using the composite RCA video connector.
4. Composite NTSC mode
(Source: INSTRUCTIONS-README.txt)
What did it for me: Reset the display.
Dvorak keyboard layout
----------------------
sudo dpkg-reconfigure keyboard-configuration
Choose the generic keyboard
Choose Dvorak (international with dead keys)
Reboot
(Source: http://www.raspberrypi.org/forums/viewtopic.php?f=27&t=12860 )
Essentials
----------
sudo apt-get install vim
JUCE
====
Get JUCE
--------
git clone --depth 1 git://github.com/julianstorer/JUCE.git
Dependencies needed by JUCE
---------------------------
sudo apt-get -y install g++ libfreetype6-dev libx11-dev libxinerama-dev libxcursor-dev mesa-common-dev libasound2-dev freeglut3-dev libxcomposite-dev libjack-dev
Ugrade g++ to support C++11
---------------------------
# Upgrade g++
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 gcc-4.7 as default
Modify the JuceLibraryCode/AppConfig.h
--------------------------------------
#define JUCE_USE_XSHM 0
#define JUCE_USE_XINERAMA 0
Sources:
http://www.juce.com/forum/topic/juce-raspberry-pi-opengl
https://github.com/rec/echomesh/blob/master/documentation/Building%20Juce%20applications%20on%20the%20Raspberry%20Pi.md
Build
-----
::
make CONFIG=Release