Go to advanced search

by smithnerd
Sat Jul 28, 2012 3:38 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 62095

Re: Example program to draw random shapes using the C compil

gcc -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -L/opt/vc/lib -lGLESv2 demo.c -o demo For young players, this may look daunting, but it's really not. It translates as: gcc - the GNU C compiler command -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads - the include paths - ...
by smithnerd
Fri Jul 27, 2012 3:17 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 62095

Re: Example program to draw random shapes

Works out of the box here, on the latest official Raspbian/wheezy build.
by smithnerd
Fri Jul 27, 2012 2:39 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 62095

Re: Example program to draw random shapes

gcc -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -L/opt/vc/lib -lGLESv2 demo.c -o demo
by smithnerd
Fri Jul 27, 2012 2:33 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 62095

Re: Example program to draw random shapes

Very nice!
by smithnerd
Thu Jul 19, 2012 2:19 pm
Forum: Advanced users
Topic: Minimising SD card writes
Replies: 8
Views: 7597

Minimising SD card writes

I'm trying to minimise unnecessary writes to the SD card. I have nulled .bash_history, which keeps the current shell history in memory, but never writes it anywhere, thus: pi$ ln -sf /dev/null ~/.bash_history I don't really want to use NFS, so I installed 'sshfs' and added 'pi' to the 'fuser' group....
by smithnerd
Mon Jul 16, 2012 2:28 pm
Forum: Raspbian
Topic: I2C errors
Replies: 8
Views: 3712

Re: I2C errors

This won't help with the immediate problem, but you will probably run into another problem. The post digital switchover transmitter frequencies in the dvb-utils package are all wrong, and have been for months. I tried to log a bug with ubuntu, but gave up after failing to get into their bug reportin...
by smithnerd
Fri Jul 13, 2012 12:19 pm
Forum: OpenVG
Topic: Working tiger demo?
Replies: 15
Views: 5851

Re: Working tiger demo?

Well, I warn you, it's a raw snapshot. A hack on a hack really, and based on skim-reading the Khronos OpenVG reference sheet, not the actual spec. Swap this out for main.c: http://pastebin.com/raw.php?i=YAcPWmXR I think I was compiling (on Raspbian) with: gcc main.c tiger.c -o tiger \ -I/opt/vc/incl...
by smithnerd
Thu Jul 12, 2012 5:02 pm
Forum: OpenVG
Topic: Working tiger demo?
Replies: 15
Views: 5851

Re: Working tiger demo?

I ported it to my Pi yesterday. It took some effort to understand how to marry the EGL initialisation parts of 'hello_triangle.c' with the windows only parts of the tiger demo 'main.c', but I got there in the end. It seems to render quite quickly at 1280x1024. I'm sure my efforts won't be as polishe...

Go to advanced search