Udoo Quad – successfully compile and run PD puredata and Gem

  • von

puredata and gem running stable on udoo quad. compiled everything from source (miller’s vanilla + Gem from git)

download latest udoobuntu version and flash it to a miniSD (the rest is done in the terminal/bash) and start your udoo (tested on quad and neo extended)

check statut / enable ssh on udoo if you want to control udoo from client computer:
$ sudo service ssh status / start

check release and kernel (i use 14.04.5 LTS – linux udoo 3.14.56):
$ uname -a
$ lsb_release -a

$ sudo apt-get update
if something is missing in ‚update‘ $ sudo dpkg –configure -a
$ sudo apt-get upgrade

check if openGL is active and running for the use of Gem:
$ glxinfo
the output of glxinfo should show
direct rendering: YES
openGL vendor sting: Vivante Corporation
openGL render string: Vivante GC2000
openGL version string: 2.1 2.0.1 (or similar)
if glxinfo is not installed do:
$ sudo apt-get install mesa-utils

install some useful tools for compilation and audio stuff (maybe some are kicked out or replaced but apt-get ist clever enough to tell us):
$  sudo apt-get install xubuntu-restricted-extras cdrdao htop gedit subversion git build-essential geany autoconf2.13 autotools-dev automake libtool libglu1-mesa-dev libgl1-mesa-dev libxxf86vm-dev ftgl-dev libtiff5-dev libjpeg-dev libmagick++-dev libmpeg2-4-dev libmpeg3-dev libavifile-0.7-dev libquicktime-dev libdv4-dev libv4l-dev libgmerlin-dev libmpg123-dev libavc1394-dev gmerlin libgmerlin-avdec-dev alsa-firmware-loaders alsa-tools alsa-tools-gui nvidia-common ffado-mixer-qt4 qjackctl libasound2-dev jackd2 libjack-jackd2-dev autoconf

–> on neo I enabled realtime priority of jack
–> on quad I disabled realtime priority of jack (i think)

set timezone for NAT service (zb berlin):
$ cat /etc/timezone  -> shows actual settings
$ sudo dpkg-reconfigure tzdata  -> here you can set where you are

=== installing PD ===

check which version is installed and which version is available in the udoobuntu distro repositories (maybe you don’t need to compile pd for your task)
$ apt-cache policy puredata

download latest Puredata version Pd-vanilla from miller’s website and delete all previous versions of pd (if sudo make install is desired) from /usr/local/lib/pd oder /usr/lib/pd etc

$ cd /home/udooer (let’s say we do everything in the home-folder)
$ curl -o pd-0.48-1.src.tar.gz http://msp.ucsd.edu/Software/pd-0.48-1.src.tar.gz
$ tar xzvf pd-0.48-1.src.tar.gz pd-0.48-1/
$ cd pd-0.48-1
$ ./autogen.sh
$ ./configure –enable-jack
$ make
$ sudo make install (–> to install pd to /usr/local/lib/pd)

now we should have pd v0.48-1 running (when started you recognize it when saying ‚priority 94 scheduling failed‘)!

======== getting ready for Gem (Graphics Environment for Multimedia) ==========

for me this worked on other computers but NOT on udoo:
$ sudo apt-get build-dep gem

solution is installing all Gem-related packages with synaptic:
$ sudo apt-get install synaptic
$ sudo synaptic (with root privileges to be able to install directly from GUI)
search for gem and mark and apply to install all Gem (Graphics Env. for Multim.) packages

now we are ready to download and compile Gem (latest version/maybe unstable?) – this will take some time on the little udoo

$ cd /home/udooer/
$ git clone https://github.com/umlaeute/Gem.git
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

if you have doubts of correct compilation of Gem cross-check the output of the ./configure and make process with the website at the end of this post.

now we can run pd + Gem on the Udoo.
$ pd   -> after startup of pd we will see the Gem infos. if not check the preferences in Pd main window (ctrl+R):
path = /usr/local/lib/pd/extra/Gem and startup lib = Gem

==== ISSUES ====
1) when I create a gemwin object in a new pd window I get an error message. opening Gem-helpfiles from the Browser works without problems. my workaround is to put a [declare -path /usr/local/lib/pd/extra/Gem] object into the patch window. I don’t really know why this happens because Gem is loaded at startup etc. I’ll find out.
2) Gem can’t find vera.ttf (eg. for text2d) so use the termial to search for it in your pd folder (or whole system) and add the path to pd or copy .ttf to your patch-folder
$ find . -name ‚vera.ttf‘

 

for Gem see also: https://jonghyunkim816.wordpress.com/2016/02/21/build-pd-gem-on-linux/