On 5/8/06, Steve Kieu <[EMAIL PROTECTED]> wrote:

OK now I got it working with ugly hack :-)

I undo all changes in loadlib.c and luaconf.h to its original. AND I
manually edit the $WXLUAROOTDIR/modules/Makefile   and add

-DLUA_USE_LINUX  to  CFLAGS
and
-Wl,-E -ldl -lreadline -lhistory -lncurses     to LDFLAGS

(Just copy from the lua Makefile  distribution the linux section)
and everything works as expected :-)
I hope you guys find where it is wrong in the build system and fix it
'officially', I am sorry I do not know enough about it to help.

Ohhh, I see now, you're using configure? It doesn't give the right
flags to build lua for unix systems.

Francesco, where would you add some checks for configure's system
determination to add lua's flags? In wxLua/configure or somewhere in
bakefile?

See modules/lua/Makefile
PLATS= aix ansi bsd generic linux macosx mingw posix solaris

and modules/lua/src/Makefile where it translates these into the cflags
and libs. eg.
linux:
       $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl
-lreadline -lhistory -lncurses"

Maybe it's possible to just translate configure's system to lua's
system and just call lua's Makefile as $(MAKE) platform? Though I
think the install would be broken then?

-----------------------------------------------------------

Steve, for now try to use the Makefiles in the src dirs. If you want
to build everything, just go into apps/wxlua/src and type make and
you'll get all the libs, though this uses the wx-config script from
wxWidgets so it puts the libs along with the wxWidgets libs so that
must be a writeable dir, eg. probably not installed to usr/local or
wherever.

Regards,
   John Labenski


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to