Raspberry Pi 2 Setup Guide (0.8.4)

Yes is rpi2 b+.
I just bought it last week
And im sure i download linuxarmv7 heres i what i get:
Linux raspberry pi 3.12.28 #709 PREEMPT mon sep 8 15:28:00 BST 2014 Armv6l GNU/linux

the Armv6l in your uname output indicates that it’s a Raspberry Pi 1. The B+ is still a raspberry pi 1.

I think this is what you probably have:

https://www.raspberrypi.org/products/model-b-plus/

Whereas you need this one for this setup guide:

https://www.raspberrypi.org/products/raspberry-pi-2-model-b/

mm my bad yes is raspberry pi 1 i thought it was two
anyways so i follow this http://openframeworks.cc/setup/raspberrypi/Raspberry-Pi-Getting-Started.html i’m good to go?

@jorgeav No worries! Yeah, that link should work.

I moved a post to a new topic: Unable to compile for Raspberry Pi

1 Like

I hit the same issue as above - any thoughts?

checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 glesv1_cm glesv2 egl 
../../../libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:260: *** couldn't find some pkg-config packages, did you run the latest install_dependencies.sh?.  Stop.

When I run install_dependencies it seems fine, but not sure if this is a big issue or just a non-issue…this comes up in the midst of all the installing:

Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
W: Failed to fetch http://http.debian.net/debian-backports/dists/squeeze-backports(-sloppy)/main/binary-armhf/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Looks like your DNS is screwed up

do the following to check:

cat /etc/resolv.conf

if you see a nameserver that is on your network i.e. 192.168.2.1 or 10.0.1.1 or something that is in your IP address range you’ll need to edit resolv.conf to add an external DNS like Google’s 8.8.8.8 or Level3’s 4.2.2.2

you’ll need SU to edit /etc/resolv.conf

sudo nano /etc/resolv.conf

and don’t forget to

make clean

I’m getting the same error @bakercp . I’ve redone steps 8-11 a few times and cleaned up in between but still same results.

checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 glesv1_cm glesv2 egl 
../../../libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:260: *** couldn't find some pkg-config packages, did you run the latest install_dependencies.sh?.  Stop.

Hey @mattanimation can you confirm the OF version, Raspberry Pi version etc?

the version of OFX is v0.8.4 like in the above steps

here is the cpu info:

processor	: 0
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 64.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 1
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 64.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 2
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 64.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 3
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 64.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

Hardware	: BCM2709
Revision	: a21041
Serial		: 00000000a40ddd54

[UPDATE: just noticed i’d skyped step 8 for some reason… works like a charm now!]

Hey, I’m trying to compile in rpi2 with the arch linux arm distro.
I followed all the steps (changing step 9 to cd ~/of_v0.8.4_linuxarmv7l_release/scripts/linux/archlinux/) but it says that rpi2 is not a valid Platform Variant.

Is this issue related to the arch linux distro?

Hey, I have the same issue as @MattAnimation @BakerCP. My hardware is the same as well… Sometimes I can compile, but when I run it gets stuck in an infinite loop. Bear in mind I’m running the Pi via ssh and a ethernet cable - is this a factor?

Sorry for late response, adding ‘sudo’ to the command worked for me. Thanks!

Now that I’m a part of this forum I can gladly commit to the group that got this working. Thanks!

Thank you very much! I got my pi2 yesterday and I’m gonna try my OF applications, I’m very excited!

Two things please when installing on a brand new Rpi 2 B with latest Raspberian code:

A. I notice that there are two errors during the install_dependencies.sh step:

  1. http://apt.wxwidgets.org etch-wx Release.gpg - this web site cannot be resolved

  2. http://apt.jenslody.de stables/main armhf Packages - a 404 error is being thrown.

Is anyone else having this issue? What is the impact to overall stability?

B. When I make the example 3DPromitivesexample, and do a make run, it will not run. is states t cannot find some pkg-config packages, Related to above?

Any help appreciated.

Hi @gary_r_lee I’d recommend trying to run the RPI2 with the latest distribution of oF 0.9.0+. I have confirmed that RPI1 and RPI2 are working pretty smoothly at this point, but will update this guide with links to updated install as soon as 0.9.0 is officially released.

Are you including the PLATFORM_VARIANT line when running too?

I’m running 0.9.0 right now on the latest Raspbian wheezy . (Raspberry Pi 2)
I had some trouble getting gcc 4.8
( see the announcement topic: 0.9.0 Release Candidate 1 )

I’ll be doing a clean install of raspbian this week, and try again from scratch