Last active
December 14, 2015 16:49
-
-
Save bakercp/5117866 to your computer and use it in GitHub Desktop.
pcDuino Startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
References: | |
- https://github.com/sparkfun/pcDuino/wiki/Getting-started | |
- http://www.youtube.com/watch?feature=player_embedded&v=-2j_ELN3LnU | |
Before: | |
You need to prepare an external disk. This can be an SD card via a USB reader, or a USB stick, or an external hard drive. It must be formatted with linux partition, rather than FAT32 (usually the default). There are many ways to format your SD card, but one easy way on the pcDuino is this: | |
@ the terminal | |
1. Open up Disk Utility in Start->Preferences->Disk Utility | |
2. Find your volume (may be an Generic STORAGE DEVICE). | |
3. Unmount the volume. | |
4. Format the drive (choose Master Boot Record). | |
5. Format the volume (choose ext4), take ownership. Do not encrypt. | |
Done! | |
1. Plug in HDMI, Ethernet, USB Keyboard, USB Mouse. | |
2. Plug in power between Ethernet and HDMI. | |
3. Wait for loging ... not much to see. | |
4. In LXTerminal | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-get upgrade | |
(waiting ...) | |
sudo apt-get install \ | |
openssh-client \ | |
openssh-server \ | |
libnss-mdns \ | |
avahi-daemon \ | |
libavahi-compat-libdnssd-dev \ | |
git \ | |
distcc \ | |
curl \ | |
wget \ | |
4. (optional) ssh into the pcduino. | |
5. Plug in a USB drive, SD card or some external storage device. Since the internal Flash memory is only 2GB, we need to do our development on an external device. This USB volume must be formatted for linux because permissions, etc are required. | |
If your card is not linux formatted run the command: | |
6. Add a git-friendly public / private keypair to the .ssh directory. | |
7. git clone git@github.com:openFrameworks-RaspberryPi/openFrameworks.git | |
8. Install dependencies: | |
apt-get install \ | |
libgstreamer0.10-dev \ | |
libgstreamer-plugins-base0.10-dev \ | |
libavcodec-dev \ | |
libavformat-dev \ | |
libavutil-dev \ | |
libswscale-dev \ | |
freeglut3-dev \ | |
libasound2-dev \ | |
libxmu-dev \ | |
libxxf86vm-dev \ | |
g++ \ | |
libgl1-mesa-dev \ | |
libglu1-mesa-dev \ | |
libraw1394-dev \ | |
libudev-dev \ | |
libdrm-dev \ | |
gstreamer0.10-ffmpeg \ | |
libglew1.7-dev \ | |
libopenal-dev \ | |
libsndfile-dev \ | |
libfreeimage-dev \ | |
libcairo2-dev \ | |
libgtk2.0-dev \ | |
libjack-jackd2-dev \ | |
python-lxml \ | |
python-argparse \ | |
portaudio19-dev \ | |
libssl-dev \ | |
Note: libglew1.7-dev replaces libglew-dev | |
9. Install codecs: | |
sudo apt-get install \ | |
libmpg123-dev \ | |
gstreamer0.10-plugins-ugly | |
10. In the factory ubuntu install, it appears that the `/usr/include/GLES` headers are missing. The libraries (libGLESv1_CM etc) are in the `/usr/libs/` file as they should be. So, in order to get everything linking, I simply created the directory and filled it with the 3 header files from the current Raspberry Pi GLES include directory. | |
From there, I made a slight modification to this file and place it in the: | |
`$(OF_ROOT)/libs/openFrameworksComplied/project/linuxarmv7l/config.linuxarmv7l.pcduino.mk` folder. | |
https://gist.github.com/bakercp/5122611 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment