Nagilo
Posts: 4
Joined: Mon Jun 10, 2013 8:42 am

Image Processing with OpenGL and Shaders

Mon Jun 17, 2013 10:55 am

I found this really nice article http://www.linuxjournal.com/content/ima ... nd-shaders but wasn't able to compile it on the rPi. Did anyone ever used this sample?

That's the error I got for make
cc -c -Wformat=2 -Wall -Wswitch-default -Wswitch-enum -Wunused-parameter -Wextra -Wshadow -Wbad-function-cast -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunreachable-code -ffast-math -march=pentium3 -g -DGL_CHECK callbacks.c
cc1: error: bad value (pentium3) for -march switch
make: *** [callbacks.o] Error 1

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Image Processing with OpenGL and Shaders

Mon Jun 17, 2013 12:26 pm

The error is pretty self explanatory - you are compiling for a Pentium architecture. The Raspi is an ARM architecture.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

rasmus25
Posts: 13
Joined: Mon Feb 04, 2013 3:53 pm

Re: Image Processing with OpenGL and Shaders

Fri Aug 09, 2013 2:43 pm

Also bear in mind that Raspberry Pi does not support the same OpenGL as your desktop computer. Like most embedded systems, it supports OpenGL ES, which is a stripped-down version of OpenGL. You need to modify OpenGL code (including shaders) to make it work on Pi.

Return to “OpenGLES”