[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash OpenGL bindings

From: L A Walsh
Subject: bash OpenGL bindings
Date: Mon, 09 Apr 2018 15:37:26 -0700
User-agent: Thunderbird

Interesting use of bash to run openGL stuff.

FWIW, ran the progs on my linux box, and the display was on
my Win7 box via 'X' -- and the openGL stuff worked in real-time.

For those who want to try an interesting use of bash.
I unzip'ed the source at 14:59, and am writing this @ 15:33...
So to get it to build and write this ~30 minutes.

Not sure why I get file-descriptor errors when I close a window,
but doesn't seem to affect the running of the
"programs" (bash scripts).

Originally saw this "interesting" use of bash on "slashdot",
that pointed to:


With a source repo @:


After a bit of poking, in the script dir, I found I needed to do
 autoreconf -fi

That created configure, which let me know what 'devel'
packages I was missing (from suse 13.2...a bit dated, but so what?)...

Mesa-devel-10.3.7-91.9.2.x86_64.rpm Mesa-libGLESv1_CM-devel-10.3.7-91.9.2.x86_64.rpm Mesa-libGLESv2-devel-10.3.7-91.9.2.x86_64.rpm Mesa-libglapi-devel-10.3.7-91.9.2.x86_64.rpm libgbm-devel-10.3.7-91.9.2.x86_64.rpm libwayland-egl-devel-10.3.7-91.9.2.x86_64.rpm

He gives package names for a few other distros.

Then it built and seems to run some examples in:

I seem to get some errors when I close a window:
BrowseFonts.sh*  FlightSim.sh*  ImgCube.sh*  ModelViewer.sh*  Pyramids.sh*
Robot.sh*        SpinText.sh*
 ModelViewer.sh ../lib-bash/Ship.lib
Enabling nonblocking mode on stdin
Initializing SDL
Setting video mode
Recording time
Entering main loop
Shutting down.
./../lib-bash/CmdlineGL.lib: line 113: read: 63: invalid file descriptor: Bad file descriptor ./../lib-bash/CmdlineGL.lib: line 113: read: 63: invalid file descriptor: Bad file descriptor ./../lib-bash/CmdlineGL.lib: line 113: read: 63: invalid file descriptor: Bad file descriptor
Reading from pipe timed out...  shutting down.
./../lib-bash/CmdlineGL.lib: line 135: 60: Bad file descriptor
./../lib-bash/CmdlineGL.lib: line 135: 60: Bad file descriptor

Amazing what you can do w/bash these days....  :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]