Go to advanced search

by PeterO
Tue Sep 11, 2012 9:17 am
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12938

Re: stdio.h: No such file or directory.

D'OH !!! A minor point of terminology.... Although stdio.h is enclosed in angle brackets "< >" is is NOT called a tag. Tags are found in html,xml etc files. Also you will come across #include lines that don't use angle brackets but use normal double quotes. #include <math.h> #include "localIncludeFi...
by PeterO
Mon Sep 10, 2012 8:33 pm
Forum: Python
Topic: RPi.GPIO 'problem'
Replies: 7
Views: 1624

Re: RPi.GPIO 'problem'

If your design can put 5V on the GPIO pins you have a bad design !
PeterO
by PeterO
Mon Sep 10, 2012 8:07 pm
Forum: Raspbian
Topic: Idle Pi becomes unresponsive
Replies: 6
Views: 3552

Idle Pi becomes unresponsive

This has happened a few times now. After booting my PI I leave it idle (while reading mail etc etc). When I come to use it I find it unresponsive to keyboard, and although the network led flashes there is no reply to ping. It isn't totally dead because the green OK led flashes once few few seconds. ...
by PeterO
Mon Sep 10, 2012 3:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c device doesn't show up in i2cdetect
Replies: 9
Views: 28744

Re: i2c device doesn't show up in i2cdetect

pygmy_giant wrote:Jealous - I get 'could not open file /dev/i2c-0 ...'

Whatta gwan?
Have you looked at this guide to getting i2c going ?
http://quick2wire.com/articles/physical-python-part-1/
PeterO
by PeterO
Mon Sep 10, 2012 2:29 pm
Forum: C/C++
Topic: GPIO without root-priviledges
Replies: 9
Views: 9462

Re: GPIO without root-priviledges

raspberrypiguy1 wrote:If you just start up the GUI with sudo startx rather than just startx, this gives ever command root priverillages....
The Raspberry Pi Guy :)
I hope no one is taking that suggestion seriously !

PeterO
by PeterO
Mon Sep 10, 2012 8:54 am
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12938

Re: stdio.h: No such file or directory.

panik wrote:

Code: Select all

#include <stdio.h>
With nothing behind it and no spaces between the <>.
Yeah that caught my eye as well,. but there was no space there in the code that he posted earlier!
PeterO
by PeterO
Sun Sep 09, 2012 2:07 pm
Forum: Raspbian
Topic: Memory leak..?
Replies: 10
Views: 8354

Re: Memory leak..?

Don't credit me, I just did a bit of googling :-)
PeterO
by PeterO
Sun Sep 09, 2012 1:15 pm
Forum: Raspbian
Topic: Memory leak..?
Replies: 10
Views: 8354

Re: Memory leak..?

This may help explain things...
http://www.linuxatemyram.com/

If you run this (as root) the kernel will drop all the buffers and cache memory
sync; echo 3 > /proc/sys/vm/drop_caches

If you run free before and after you'll see the changes in memory usage.

PeterO
by PeterO
Sun Sep 09, 2012 11:24 am
Forum: Raspbian
Topic: Memory leak..?
Replies: 10
Views: 8354

Re: Memory leak..?

The kernel will use all free memory as disk cache, until it is needed for something else. You can consider the 99 Mb under "cached" to effectively be free.

PeterO
by PeterO
Sun Sep 09, 2012 7:24 am
Forum: Beginners
Topic: Issues about NFS for RPi...
Replies: 3
Views: 849

Re: Issues about NFS for RPi...

I have these two lines in /etc/exports on my Ubuntu desktop machine.....

/opt/RPI 192.168.1.35(rw,sync)
/video 192.168.1.35(rw,all_squash,sync) 192.168.1.100(rw,all_squash,sync)

As to installing cmake, have you tried "apt-get install cmake" ?

PeterO
by PeterO
Sun Sep 09, 2012 7:13 am
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12938

Re: stdio.h: No such file or directory.

When I wrote "add the -v switch" I meant to the existing command

gcc -v -o arrays_one arrays_one.c

PeterO
by PeterO
Sat Sep 08, 2012 8:08 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12938

Re: stdio.h: No such file or directory.

Command should be gcc -o arrays_one arrays_one.c But the code you've pasted is not a valid C program! tt.c:1:20: warning: extra tokens at end of #include directive [enabled by default] tt.c:2:1: error: expected identifier or ‘(’ before ‘{’ token You can't put anything after the ">" of a #include lin...
by PeterO
Sat Sep 08, 2012 7:04 pm
Forum: C/C++
Topic: stdio.h: No such file or directory.
Replies: 10
Views: 12938

Re: stdio.h: No such file or directory.

If you post an example .c file that produces this error, and the gcc command lines you used, then someone might be able to help.
PeterO
by PeterO
Fri Sep 07, 2012 6:00 pm
Forum: User groups and events
Topic: Second Milton Keynes Jam.
Replies: 25
Views: 3947

Re: Second Milton Keynes Jam.

I opened up the bookings for the 2nd Jam last evening and also emailed all the attendees from the first Jam to give them a bit of a head start. As of now 17 of the 40 tickets have been taken. So now it's time to tell the world. Grab your ticket while they last from http://www.eventbrite.com/event/42...
by PeterO
Fri Sep 07, 2012 5:49 pm
Forum: User groups and events
Topic: Second Milton Keynes Jam.
Replies: 25
Views: 3947

Re: Second Milton Keynes Jam.

DaveClax wrote:Any news on whether Rob Bishop will be joining us again and, if so, whether he will be bringing any Pi's to sell?
Dave
I havn't contacted Rob. According to http://www.raspberrypi.org/archives/tag/rob-bishop he'll still on his world tour on Sept 30th ;)
PeterO
by PeterO
Thu Sep 06, 2012 4:32 pm
Forum: General discussion
Topic: So: who's got a rev2 board?
Replies: 40
Views: 6984

Re: So: who's got a rev2 board?

I have one of the (soon to be) rare "Made in China" ones :lol:
PeterO
by PeterO
Thu Sep 06, 2012 2:20 pm
Forum: General discussion
Topic: Rev2 boards are here!
Replies: 103
Views: 14120

Re: Rev2 boards are here!

The article only says Farnell is using Sony's production facility, so is seems RS is still producing theirs in China.
PeterO
by PeterO
Thu Sep 06, 2012 12:00 pm
Forum: Troubleshooting
Topic: Latest firmware/kernel kills USB+Ethernet
Replies: 17
Views: 2424

Re: Latest firmware/kernel kills USB+Ethernet

I've had a couple of "hangs" in the last few days... USB and ethernet seem dead but green led still flashing once in a while so the machine isn't completely dead. I can't check kernel versions and config at the moment but it seems to have started after the last kernel update I did earlier this week.
by PeterO
Tue Sep 04, 2012 8:11 pm
Forum: C/C++
Topic: A question on Geany.
Replies: 5
Views: 4932

Re: A question on Geany.

You need to create a project (if you havn't done so already).

Menu Project / Properties / Build

Add "-l bcm2835" to the end of the Build command . <<<<< AARRGGHHH typo !!!! Should be -lbcm2835 with no space !

HTH

PeterO
by PeterO
Mon Sep 03, 2012 8:52 pm
Forum: C/C++
Topic: Raspberry Pi startup guide to programming RS232
Replies: 10
Views: 7569

Re: Raspberry Pi startup guide to programming RS232

Arceles wrote:Then it's time to begin some programming on the RPI, but of course... you won't be doing within the RPI, but instead we will use a cross compiler.
Why make life difficult ? geany and gcc is perfectly usable on the Pi.
PeterO
by PeterO
Mon Sep 03, 2012 8:38 pm
Forum: Media centres
Topic: OpenELEC vs Raspbmc vs Xbian
Replies: 70
Views: 123381

Re: OpenELEC vs Raspbmc vs Xbian

I've tried all three, and none of them seem to be able to to the most basic of things ( like play a DVD!) .

Unless you have some huge stash of programmes you've already downloaded from the 'net they all seem pretty much pointless.....
PeterO
by PeterO
Fri Aug 31, 2012 7:50 pm
Forum: Media centres
Topic: building Xbmc problems
Replies: 10
Views: 7717

Re: building Xbmc problems

OK, all built and running, except when I put a Disk (DVD or CD) into the drive it is recognised but when I try to play it I get a pop-up telling me to put the disc in the drive, where it is already !

I see a few other posts about this on various forums but no solutions.

PeterO
by PeterO
Thu Aug 30, 2012 6:57 pm
Forum: Media centres
Topic: building Xbmc problems
Replies: 10
Views: 7717

Re: building Xbmc problems

Following the instructions at http://www.raspbian.org/RaspbianXBMC, using up to date Raspian as the starting point,

I'm seeing lots of warnings during the build: "swp{b} use is deprecated for this architecture"

Is that normal or have a made a mistake in following the instructions ?

PeterO
by PeterO
Wed Aug 29, 2012 7:25 pm
Forum: Staffroom, classroom and projects
Topic: I want this in my school
Replies: 14
Views: 1961

Re: I want this in my school

Have you checked out the "User Groups" forum
http://www.raspberrypi.org/phpBB3/viewforum.php?f=57
and the RaspberryJam pages
http://raspberryjam.org.uk/raspberryjam-locations/ ?
There may be a local group or event you can attend to get some face-to-face help.
PeterO

Go to advanced search