I neither have a clue nor a Raspberry Pi 2.
But on this new hardware I would use the Raspberry Snappy Ubuntu or a regular Linux distro to not run into issues only present on the stripped-down Raspbian.
Fair point! - cheers
Had the exact same issue today with the latest Rasbian:
Following the above steps on Raspberry PI 2 , when I do:
make CONFIG=Release
I get a scary:
Compiling Main.cpp
*** glibc detected *** g++: double free or corruption (top): 0x00e44418 ***
Aborted
Makefile:129: recipe for target 'build/intermediate/Release/Main_90ebc5c2.o' failed
make: *** [build/intermediate/Release/Main_90ebc5c2.o] Error 134
Installing gcc/g++ 4.8 instead of 4.7 resolved the issue:
sudo apt-get install gcc-4.8 g++-4.8 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 # 80 is the priority. The higher this number, the higher the priority. update-alternatives --config gcc # and choose 0 = auto = gcc-4.8 as default
Have the save error on Raspberry Pi 3 - but am already at 4.8:
gcc version 4.8.4 (Raspbian 4.8.4-1)
make CONFIG=Release gives this error:
Compiling jucer_AppearanceSettings.cpp
*** Error in `g++’: double free or corruption (top): 0x00f53250 ***
Aborted
Makefile:138: recipe for target ‘build/intermediate/Release/jucer_AppearanceSettings_788d9889.o’ failed
make: *** [build/intermediate/Release/jucer_AppearanceSettings_788d9889.o] Error 134
Any ideas?
Thanks!
aha - this fixed it. Thanks!
If you are trying to compile juce_gui_basics, you will need the X11 extensions xrandr.h, otherwise it will throw back a missing file or directory error (when using Raspbian, at least).
Simple apt get retrieves these missing depencies.
sudo apt-get install libxrandr-dev
I found everything here (Pinned to the top of the Linux section of this forum) List of Juce dependencies under linux