I feel like I am really close to getting a .pd patch to work, but I'm not sure what is going wrong.
Here is where I am at:
- set sound card as default in ALSA and can successfully play sample sound files in /usr/share/sounds/alsa/ using "aplay"
- have downloaded Pure Data to root folder
- created sine.pd patch file, taken from the tutorial I link to below in the root dir
I'm fairly new to command line, so I've been looking around for PD and Edison tutorials and found http://charlesmartin.com.au/blog/2015/2/5/running-pd-on-the-intel-galileo this for the Galileo.
In the tutorial, under "Getting Packages", I have hooked up to Alex T's repo (thanks Alex!), however I was not able to install uclibc. Everything else I was able to install fine in the root dir.
Then, following the INSTALL.txt file in Pure Data, I used these commands:
With each return it goes into the directories and runs through, everything looks ok, but I'm not sure if I am missing a critical error buried somewhere.
When I run the last recommended command:
I get this at the bottom of the run:
Makefile:914: recipe for target 'all-recursive' failed
make *** [all-recursive] Error 1
make: Leaving directory '/pure-data'
Makefile:813: recipe for target 'all' failed
make: *** [all] Error 2
I go to my root dir. and run the sine.pd patch:
pd -nogui -blocksize 1024 sine.pd
It opens (I assume) and prints:
print: turned dsp on.
The problem is that I do not hear anything when I plug headphones into the sound card, and have played samples and used timbre.js successfully before.
What I think it may be is that I am not installing Pure Data correctly. What does the Edison use to install applications?
Honestly I do not know how to tell if it is installing correctly while it is running through files, except for pulling out those two errors after the "make" command.
Any suggestions as to why this might not be working are appreciated. Thank you!
Hi postITnote ,
You can't use the command:
This is because the repo: http://repo.opkg.net/galileo/repo http://repo.opkg.net/galileo/repo is for Galileo/uclibC image and not for Edison. For Edison, you must follow the instructions in: http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html Edison Package Repo Configuration Instructions
You can try with:
src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32" >> /etc/opkg/base-feeds.conf
root@edison:~# opkg update
root@edison:~# opkg install git
root@edison:~# git clone git://git.code.sf.net/p/pure-data/pure-data
root@edison:~# cd pure-data
root@edison:~/pure-data# ./configure --enable-alsa
root@edison:~/pure-data# make install
Let us know the result of trying with this
I pointed to that tutorial, but I didn't use the Galileo repo for the reason you state. I am using AlexT_Intelrepo. I've been piecing together any info I can find and excluding the parts that I believe won't work. After writing to my base-feeds.config file to pull from Alex_T's repo, I went through the commands you suggest before I wrote the post, which lead to the noted errors and with a patch that opened, but I couldn't hear. I'm going to get some advice today from a friend and will update if it moves forward.
Interesting. Perhaps my audio isn't set up correctly for PD either. In my configuration summary it seems to say that the jack is not enabled, which I tried to correct with.
However, it still says "no".
Here are the links to my gists with everything that spits out after each command.
https://gist.github.com/laraCat/6c3db7ce16de1a98259d ./configure --enable-alsa
https://gist.github.com/laraCat/f43ff20dab29bae7d43b make install
Thanks for looking!