[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: primitive graphics application
- From: Asko Kauppi <askok@...>
- Date: Mon, 4 May 2009 19:26:45 +0300
To respond to your original mail:
- "make" itself does not clobber files maintained by apt-get or
others. Be restful, and try it. You will be unnecessarily limiting
your choices if sticking to LuaRocks only (also, LR might not have the
latest versions of all the modules)
- don't do "make install". Study the Makefile, and copy necessary
files (.so and maybe some .lua) to the appropriate folders. You can
even have them under your user account root, say ~/lua and make
LUA_PATH and LUA_CPATH point there. The mechanism is easy and efficient.
Having re-read the mail, I realize the "microcomputer" isn't the one
showing the graphics. Therefore, let me change my recommendation to
IUP / LuaGnome (though I've used neither). Cairo alone does not have
event handlers, which would be needed for interaction with the
graphics. If it were output only, Cairo itself is more than enough.
Dave Smead kirjoitti 4.5.2009 kello 8:15:
I'm a Lua newbie, but a programmer of many years using C and Python.
I've used Linux exclusively since 1994, Debian most of that time and
presently using Ubuntu 8.10.
At the moment I'm still having some difficulties getting Lua packages
installed because I'm not up to speed on luarocks yet. I'm a little
hesitant to download packages outside the luarocks mechanism because
painfully aware that grabbing a tar.gz file and running make will
sometimes clobber library versions that are used by programs obtained
via apt-get, (that is make a mess that is difficult to clean up).
My immediate interest is using Lua to access graphics primitives
draw-line, draw-circle, draw-arc, etc. I see there are bindings to
opengl, wx, tk and others. While I need some gui widgets, mostly I
widgets that represent analog meters, and trend graphs, (plots). I
C code from the 1980's that ran on DOS with a primitive vgalib so
primitive is fine for what I need.
Can anyone offer opinions of which graphics library would be best
The graphics rendering program will run on a Linux machine, but I want
to connect it via a TCP socket to a very small microcomputer that
the rendering program what to draw using ASCII strings, or better yet,
by passing a Lua table to the rendering program.
Thanks in advance for any words of wisdom.