Skip to content
glop102 edited this page Dec 14, 2015 · 13 revisions

How to make this software run! This setup guide is possibly out of date as this software if still in development and the requirements may change as this project matures.

#Automagical

Pre-Reqs

sudo make base

this will bring up a menu system. Go down to enable the camera. Then use the right arrow key to select finish, and the script will continue

Actual System

make

Manual

Pre-Reqs

First lets enable the tools to let the camera be used.

sudo apt-get install git g++-4.8
sudo raspi-config
advanced -> enable camera

Now lets download the files

git clone https://github.com/glop102/Raspberry-Pi-Camera-Ring

This rest of this guide is structured such that it assumes that you are within the directory of the part you want to use. This means that if you want the PI to be the Admin station, you move into the Admin directory before continuing.

cd Raspberry-Pi-Camera-Ring

#choose one of the following
cd Admin
cd Camera

Compiling

Assuming you are using Raspbian, this part takes a little bit of work since Raspbian uses an older version of g++. We first install the newer version of the compiler.

sudo apt-get install g++-4.8

Now that the new compiler is installed, you have a choice.

The easy way - this breaks the auto-update

nano Makefile

CC=g++
#change to read
CC=g++-4.8

The right way - make the whole system use g++-4.8

cd /usr/bin
sudo rm g++  #remove the olde version
sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++ #bring in the new version

Now that we have the compiler properly set to go

make

Autostart

It is great that the software works, but it is better if you only have to plug in the PI to make it work. This section makes the software start when the PI is powered on.

#this file tells the computer what software to run on startup
sudo nano /etc/rc.local
#add these lines to the bottom (before the exit 0;)
#these lines change to run in the proper folder
#this allows the admin to find the www folder with the webpage in it
#it also allows the auto-update to work for the camera

cd /absolute/path/to/folder/
#example - if you cloned into the home folder
/home/pi/Raspberry-Pi-Camera-Ring/Admin/

#now lets run the program
sudo ./main.out &
Clone this wiki locally