Go to advanced search

by plusuncold
Mon Apr 18, 2016 11:16 am
Forum: C/C++
Topic: Differentiate RPi from other SBCs using compiler flags/etc
Replies: 2
Views: 742

Re: Differentiate RPi from other SBCs using compiler flags/e

jahboater wrote:This file, if it exists, contains a nul terminated string starting with Raspberry Pi.

Code: Select all

/sys/firmware/devicetree/base/model
That's very helpful! Thanks!
by plusuncold
Wed Apr 13, 2016 6:43 am
Forum: C/C++
Topic: Differentiate RPi from other SBCs using compiler flags/etc
Replies: 2
Views: 742

Differentiate RPi from other SBCs using compiler flags/etc

Hi, I'm developing a program using Andrew Holme's GPU_FFT (which uses the Pi's GPU to speed up FFT), but it must also run on other OSes. Currently my code looks like this: FFT* FFT::getInstance() { if (!instance.get()) { #if defined(__linux__) instance.reset(new RPiGPU_FFT); #else instance.reset(new...
by plusuncold
Wed Jul 01, 2015 2:20 pm
Forum: C/C++
Topic: 'undefined reference to 'mbox_open()'
Replies: 37
Views: 7699

Re: Using GPU_FFT in Qt 'undefined reference to 'mbox_open()

All the source files from /opt/vc/src are imported into the project.
by plusuncold
Wed Jul 01, 2015 1:37 pm
Forum: C/C++
Topic: 'undefined reference to 'mbox_open()'
Replies: 37
Views: 7699

'undefined reference to 'mbox_open()'

I'm attempting to use the GPU_FFT library and when I try to use the mbox_open() function in mailbox.h I get a compile error
undefined reference to 'mbox_open()
I've included the following libraries:
-lasound -ldl -lrt -lm

The last three are used in the example hello_fft.bin makefile
by plusuncold
Wed Jun 10, 2015 9:14 pm
Forum: Raspberry Pi OS
Topic: [Solved] apt-get "404 Not Found"
Replies: 6
Views: 8411

Re: apt-get "404 Not Found"

It's working now! Thanks for the help!
by plusuncold
Wed Jun 10, 2015 7:52 pm
Forum: Raspberry Pi OS
Topic: [Solved] apt-get "404 Not Found"
Replies: 6
Views: 8411

Re: apt-get "404 Not Found"

This is the command and the output: pi@raspberrypi:~$ wget http://mirrordirector.raspbian.org/raspbian/pool/main/f/fuse/fuse_2.9.0-2+deb7u2_armhf.deb --2015-06-10 19:49:59-- http://mirrordirector.raspbian.org/raspbian/pool/main/f/fuse/fuse_2.9.0-2+deb7u2_armhf.deb Resolving mirrordirector.raspbian.o...
by plusuncold
Wed Jun 10, 2015 7:25 pm
Forum: Raspberry Pi OS
Topic: [Solved] apt-get "404 Not Found"
Replies: 6
Views: 8411

[Solved] apt-get "404 Not Found"

Hi, I've got 2 Pis in the house (an early B and a Pi2) and on both I'm getting problems when using apt-get to upgrade or install packages. Before upgrading I've used 'sudo apt-get update'. The issue seems to be with packages from the raspbian.org repo. Here's the output from 'sudo apt-get update' on...
by plusuncold
Thu Apr 04, 2013 12:56 am
Forum: Graphics, sound and multimedia
Topic: RPi Radio with squeal
Replies: 2
Views: 941

Re: RPi Radio with squeal

Thanks for the reply! I'll look into that - I figured some signal was interfering with the radio's proper 9V/GND but reached the end of my electrical knowledge!
by plusuncold
Wed Apr 03, 2013 9:20 pm
Forum: Graphics, sound and multimedia
Topic: RPi Radio with squeal
Replies: 2
Views: 941

RPi Radio with squeal

I've been working on a Raspberry Pi internet radio. The audio is spliced from the audio jack into the radio where it then goes into the radio's amplifier and speaker. Additionally I have the RPi powered off the radio's AC supply through a DC-DC step down transformer into the GPIO pins. After I conne...

Go to advanced search