outoff
Posts: 4
Joined: Tue Oct 23, 2012 12:44 pm

Pure Data GLX

Thu Oct 25, 2012 11:43 am

Hi list ! Greetings from Russia !
I need advice about GLX, what is it ?
I have installed Pure Data, hope to use Gem, basically PD works,
but not Gem ((
When I try build window for graphic content, I've error message:
"X Server has no OpenGL GLX extension"
I found libgl1-mesa-glx package, but system said, that last version is already installed !
Where my problem? May be I need someway show PD way to this extension? Bzz, just idea )

I use this manual to install PD
http://log.liminastudio.com/writing/tut ... spberry-pi

Thank you very much for any tip !

Sergey

factoid
Posts: 45
Joined: Tue Jul 17, 2012 5:35 am

Re: Pure Data GLX

Mon Oct 29, 2012 6:55 pm

GLX is an extension to the X windows server which allows GL programs to pass their commands through to the underlying renderer. On the pi there are two fundamental problems:

1) GLX is currently only designed to support OpenGL, not OpenGL ES. RPi doesn't actually support OpenGL, just OpenGL ES (1.1 and 2.0).

2) The underlying xf86-video driver needs to support GLX. The default X driver for the pi right now is the fbdev driver, which doesn't support GLX. I don't know of any drivers that are working on GLX support, but they'd have to provide some kind of translation mechanism as well to convert unsupported GL calls into their GL ES equivalents.

For the foreseeable future, you're probably out of luck.

outoff
Posts: 4
Joined: Tue Oct 23, 2012 12:44 pm

Re: Pure Data GLX

Tue Oct 30, 2012 10:54 am

ALAS !
Thank you for detailed answer !!!

ivanpianobcn
Posts: 13
Joined: Sun Apr 28, 2013 4:30 am

Re: Pure Data GLX

Wed May 01, 2013 9:56 pm

Okay... that's surprising.
I know this post have been dead for the last few months, but since I have the same exacly problem than our russian friend, is this incompatibility someway fixed already?
Is gem from Pure data working already?
If not, there's any way to make Processing work a little bit more fast? It's so slow...

Thx

bakercp
Posts: 3
Joined: Thu Oct 11, 2012 1:35 am

Re: Pure Data GLX

Thu Sep 12, 2013 10:43 pm

You might also consider using openFrameworks. Full support on the Raspberry Pi.

You can find the latest build here: http://www.openframeworks.cc/setup/raspberrypi/

User avatar
jbeale
Posts: 3474
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Pure Data GLX

Mon Oct 28, 2013 8:17 pm

Has anyone installed OpenFrameworks recently? I think my system is up to date:

Code: Select all

Linux raspberrypi 3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux
I followed the instructions at http://www.openframeworks.cc/setup/rasp ... arted.html exactly. I got the error: cannot convert 'VC_IMAGE_TRANSFORM_T' to 'DISPMANX_TRANSFORM_T' as promised, and then I applied the fix they suggest, and tried the 'make' process again. This halts afer 8 minutes with this error:

Code: Select all

g++ -Os -Wall -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -pthread -D_REENTRANT -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-1.0 -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/fmodex/include -I../../../libs/glfw/include -I../../../libs/glfw/include/GLFW -I../../../libs/kiss/include -I../../../libs/openssl/include -I../../../libs/openssl/include/openssl -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/math -I../../../libs/openFrameworks/events  -MMD -MP -MF ../../../libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/types/ofColor.d -MT../../../libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/types/ofColor.o -o ../../../libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/types/ofColor.o -c ../../../libs/openFrameworks/types/ofColor.cpp
{standard input}: Assembler messages:
{standard input}:24819: Warning: end of file not at end of a line; newline inserted
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[1]: *** [../../../libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/types/ofColor.o] Error 4
make: *** [Release] Error 2
make: Leaving directory `/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
anyone know how to fix it? By the way this is on a Model A with 256 MB ram, is this an out-of-memory problem? I did set the GPU share to 128 MB using raspi-config as specified.

EDIT: Just to be sure I did sudo apt-get update && sudo apt-get upgrade, set GPU to 128 MB (which I'm pretty sure it already was), rebooted and tried make again- strangely, the make process finished. But bad news, the example does not compile, complaining of undefined reference to ofColor_[various stuff].

Newk33
Posts: 13
Joined: Wed Mar 27, 2013 1:28 am

Re: Pure Data GLX

Wed Jan 22, 2014 12:57 pm

Did you had succes at getting things to work on the RasPi with it?
It should work like we can se in these videos:
http://youtu.be/0GnGHZq0Eyo
http://youtu.be/OPwUQnqoLe4

But i do hope it works with this: http://forum.openframeworks.cc/t/ofxduc ... orks/12274
:D
as i prefer visual, node based programming/tinkering like in PD

There have been some people porting pd's GEM to openGL-ES
as can be read here http://lists.puredata.info/pipermail/ge ... 05853.html
last post was nearly 2 years ago... anyone here know more about it?

Newk33
Posts: 13
Joined: Wed Mar 27, 2013 1:28 am

Re: Pure Data GLX

Wed Jan 22, 2014 5:24 pm

http://lists.puredata.info/pipermail/pd ... 04077.html

here is more recent discussion on GEM port

Return to “Graphics programming”