[ANN] Lua-GD 2.0.33r2 released

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Lua-GD 2.0.33r2 released

Alexandre Erwin Ittner-2
Hi folks,

Lua-GD version 2.0.33r2, the first release of Lua-GD for Lua 5.1, is now
available on LuaForge. There was no changes in the API, but this release
provides a few improvements to the code and uses the new module system.
Binaries for Debian/Ubuntu and Win32 are available for i386 platforms.
These binaries also work with LuaJit 1.1.0.

Also, Lua-GD now uses the same license as Lua 5.1 (previous versions were
LGPLed).

For more information: http://luaforge.net/projects/lua-gd/


Have fun!

--
Alexandre Erwin Ittner - [hidden email]
GPG pub key 0x0041A1FB from http://pgp.mit.edu


-------------------------------------------------------
Esta mensagem foi verificada pelo Anti-Vírus NetUno.
NetUno Internet - http://www.netuno.com.br

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua-GD 2.0.33r2 released

Rick Burton
Alexandre Erwin Ittner <aittner <at> netuno.com.br> writes:

>
> Have fun!
>

Not just yet! ;)

Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
LuaJIT 1.1.0  Copyright (C) 2005-2006 Mike Pall
> require("gd")
error loading module 'gd' from file '.\gd.dll':
        One of the library files needed to run this application cannot be found.


stack traceback:
        [C]: ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?
>

Looking at a hex dump of the GD.DLL I see a LUA51.DLL mentioned.

But LUAJit doesn't use that!

Here's what I have:

FREETY~1 DLL       460,800  05-09-04  2:49p freetype6.dll
GD       DLL        48,640  05-02-06 12:46p gd.dll
JPEG62   DLL       127,488  05-15-05  2:08p jpeg62.dll
LIBGD2   DLL       251,392  08-26-05  8:37p libgd2.dll
LIBICO~1 DLL       898,048  03-16-04  9:37p libiconv2.dll
LIBPNG13 DLL       203,264  12-04-04  1:09a libpng13.dll
LUAJIT   EXE       297,697  03-16-06  6:06p luajit.exe
XPM4     DLL        52,224  02-13-05 11:54p xpm4.dll
ZLIB1    DLL        75,264  07-20-05  6:05p zlib1.dll

I have Dev-C MinGW 3.4.2 not the 3.4.4 version you used.
And I do not have the time to upgrade or hunt down all the required libraries to
compile. :(

Could you include a lua.exe and luac.exe for Windows in future downloads?
I think apps like this one could help get LUA in the door at many programming
environments! But you have to "help out" the Windows people :)

Also is there a luaw.exe like pythonw.exe or rubyw.exe so you don't get the DOS
Command line box every time when running a lua app from a Windows shortcut?

Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua-GD 2.0.33r2 released

Mike Pall-5-2
Hi,

Rick Burton wrote:
> Looking at a hex dump of the GD.DLL I see a LUA51.DLL mentioned.
>
> But LUAJit doesn't use that!

Of course it does -- provided you compiled it according to the
instructions given in luajit_install.html. The Makefile even has
a target for compiling with MinGW ...

You should get a (small) luajit.exe and a (200K+) lua51.dll which
is link-compatible with extension modules compiled for plain Lua.

I.e. Lua-GD should work out-of-the-box with LuaJIT.

> LUAJIT   EXE       297,697  03-16-06  6:06p luajit.exe

Ummm, you compiled everything statically into one executable.
This doesn't work for Windows. C extension modules really need
the Lua or LuaJIT core to be in an extra DLL.

Bye,
     Mike
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua-GD 2.0.33r2 released

Rick Burton
Mike Pall <mikelu-0605 <at> mike.de> writes:

>
> Of course it does -- provided you compiled it according to the
> instructions given in luajit_install.html. The Makefile even has
> a target for compiling with MinGW ...
>

Thanks, I remember my compiler problems back in March now!

I've been stuck on 5.0 and was getting back to converting to 5.1

It doesn't work correctly for me on Win 98 SE Dev-Cpp 5.0 (4.9.9.2) gcc 3.4.2

In my D:\Dev-Cpp\LuaJIT  directory, Dev-Cpp programs are in C:\Dev-Cpp

make mingw
cd src && C:/DEV-CPP/BIN/MAKE.EXE mingw
Too many parameters - &&

Hum... I don't think that syntax for cd works on Win 98.

And from D:\Dev-Cpp\LuaJIT\src

make mingw
C:/DEV-CPP/BIN/MAKE.EXE "LUA_A=lua51.dll" "LUA_T=luajit.exe" \
"AR=gcc -shared -o" "RANLIB=strip --strip-unneeded" \
"MYCFLAGS=-DLUA_BUILD_AS_DLL -maccumulate-outgoing-args" \
"MYLIBS=" "MYLDFLAGS=-s" luajit.exe

Then strangely, it stops and changes to the C: drive from the D: drive.

Going back to the D: drive and doing

make mingw all

And it builds luajit.exe fine.

This problem also occurs with the LUA 5.1 distro.

I have built other open source programs with my C: D: drive setup and have not
had these types of problems.

-- Rick

P.S. luajit is very nice work!

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua-GD 2.0.33r2 released

Alexandre Erwin Ittner-2
In reply to this post by Rick Burton
Rick Burton <[hidden email]> wrote

> I have Dev-C MinGW 3.4.2 not the 3.4.4 version you used.
> And I do not have the time to upgrade or hunt down all the required libraries to
> compile. :(
>
> Could you include a lua.exe and luac.exe for Windows in future downloads?
> I think apps like this one could help get LUA in the door at many programming
> environments! But you have to "help out" the Windows people :)

I've uploaded a Win32 build of LuaJIT with MingW32 3.4.4, the same that I
used for this build of Lua-GD.  This should make the things easier for
Win32 users that don't can/want compile the interpreter. You can download
it from http://luaforge.net/frs/?group_id=90

Also, the Lua 5.1 binaries from LuaBinaries should work with Lua-GD.


--
Alexandre Erwin Ittner - [hidden email]
GPG pub key 0x0041A1FB from http://pgp.mit.edu


-------------------------------------------------------
Esta mensagem foi verificada pelo Anti-Vírus NetUno.
NetUno Internet - http://www.netuno.com.br

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua-GD 2.0.33r2 released

Rick Burton
> I've uploaded a Win32 build of LuaJIT with MingW32 3.4.4, the same that I
> used for this build of Lua-GD.  This should make the things easier for
> Win32 users that don't can/want compile the interpreter. You can download
> it from http://luaforge.net/frs/?group_id=90

Many thanks!

> Also, the Lua 5.1 binaries from LuaBinaries should work with Lua-GD.

That's what I thought, but...

"lua5.1.exe"
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
> require "gd"
error loading module 'gd' from file '.\gd.dll':
        One of the library files needed to run this application cannot be found.

stack traceback:
        [C]: ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?

No luck, I think they changed the name of the LUA51.DLL to LUA5.1.DLL

It would help if this error message would say what library file it could not
load! Not sure if this is a LUA core or a user code issue.

-- Rick