[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:
https://opensource.com/article/18/4/opengl-bindings-bash
With a source repo @:
https://github.com/nrdvana/CmdlineGL/
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?)...
libSDL-devel-1.2.15-14.1.3.x86_64.rpm
libSDL_image-devel-1.2.12-8.1.3.x86_64.rpm
ftgl-devel-2.1.2.99.5-32.1.5.x86_64.rpm
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:
CmdlineGL-master/share/examples
I seem to get some errors when I close a window:
ls
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.... :-)
-linda
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bash OpenGL bindings,
L A Walsh <=