@eLearner_Network wrote:
PiBakery download:
*Use to configure under “On First boot”> setup WIFI, set user password to, and set hostname…(OPTIONAL: enable VNC, enable SPI, enable I2C) then in a separate block under “On Every Boot”> Set boot option to “Console logged in”PiFinder download:
http://ivanx.com/raspberrypi/files/PiFinder.zip*Use PiFinder to locate the SSH Address of your Pi
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###
————————————————————————
sudo apt-get cleansudo apt-get update
sudo apt-get upgrade
sudo raspi-config
- Select 7 Advanced Options: Select 1 Expand Filesystem and hit Enter
- Select 7 Advanced Options: Select A3 Memory Split and hit Enter
- Type 64 and Hit ok
- Select 7 Advanced Options: Select A7 GL Driver
- G3 Legacy and Hit
- “The GL driver is disabled.” Hit ok
- Hit Finish
————————————————————————cd
wget http://ci.openframeworks.cc/versions/nightly/of_v20180313_linuxarmv6l_nightly.tar.gz
sudo reboot
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
mkdir openFrameworks
tar vxfz of_v20180313_linuxarmv6l_nightly.tar.gz -C openFrameworks --strip-components 1
cd /home/pi/openFrameworks/scripts/linux/debian
sudo ./install_dependencies.sh
Do you want to continue? [Y/n] y hit return
Do you want to continue? [Y/n] y hit return
sudo ./install_codecs.sh
Do you want to continue? [Y/n] y hit return
cd /home/pi/openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l
nano config.linuxarmv6l.default.mk
- Replace
PLATFORM_LIBRARIES += GLESv2
PLATFORM_LIBRARIES += GLESv1_CM
PLATFORM_LIBRARIES += EGL
with
PLATFORM_LIBRARIES += brcmGLESv2
PLATFORM_LIBRARIES += brcmEGL
*To save the changes you’ve made, press Control + O
*hit return
*To exit nano, type Control + Xsudo make Release -C /home/pi/openFrameworks/libs/openFrameworksCompiled/project
————————————————————————
*Compile your first app
cd /home/pi/openFrameworks/examples/graphics/polygonExamplemake
make run
————————————————————————
Unlike other platforms, OF Raspberry Pi projects do not make use of the projectGenerator. To create your own project from scratch, copy examples/empty/emptyExample into apps/myApps/yourProjectName folder and start from there
For example:
————————————————————————
*File Structure: cp -R /home/pi/openFrameworks/examples/empty/emptyExample /home/pi/openFrameworks/apps/myApps/myRpiApp*File Structure: cd /home/pi/openFrameworks/apps/myApps/myRpiApp
————————————————————————
*Our polygonExample:
cp -R /home/pi/openFrameworks/examples/graphics/polygonExample /home/pi/openFrameworks/apps/myApps/myRpiAppcd /home/pi/openFrameworks/apps/myApps/myRpiApp
make
make run
————————————————————————
#Don’t forget to reset the memory split from raspi-config back to 128 or 256.sudo shutdown -h now
————————————————————————
#ofxPiMapper
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
cd /home/pi/openFrameworks/addons/
git clone https://github.com/jvcleave/ofxOMXPlayer.git
cd /home/pi/openFrameworks/addons/ofxOMXPlayer
git checkout 0.9.0-compatible
cd /home/pi/openFrameworks/addons
git clone https://github.com/kr15h/ofxPiMapper.git
cd /home/pi/openFrameworks/addons/ofxPiMapper/example
make && ./bin/example
————————————————————————
————————————————————————
*to run example:
cd /home/pi/openFrameworks/addons/ofxPiMapper/examplemake && ./bin/example
./bin/example -f
————————————————————————*to move example:
cp -R /home/pi/openFrameworks/addons/ofxPiMapper/example /home/pi/openFrameworks/apps/myApps/PiMapperApp
*to run PiMapperApp:
cd /home/pi/openFrameworks/apps/myApps/PiMapperApp./bin/example -f
————————————————————————sudo shutdown -h now
————————————————————————
#ofxKinect
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###sudo apt-get clean
sudo apt-get update
sudo apt-get update
cd /home/pi/openFrameworks/examples/computer_vision/kinectExample
sudo make
cd bin
sudo ./kinectExample
————————————————————————
————————————————————————
*to move example:
cp -R /home/pi/openFrameworks/examples/computer_vision/kinectExample /home/pi/openFrameworks/apps/myApps/kinectApp
*to run ofxKinectApp:
cd /home/pi/openFrameworks/apps/myApps/kinectApp/binsudo ./kinectExample
————————————————————————
sudo shutdown -h now
Posts: 1
Participants: 1