problems with Lua
"Andreas K. Foerster" <[email protected]> Fri, 19 Jul 2013 21:48:31 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
Hello, my project is Lua-AKFAvatar[1]. That is an unusual graphical user interface which can be scripted with Lua[2]. Since I try to keep everything small and portable, I thought it would be a good idea if it could be compiled with dietlibc for embedded Linux systems with a framebuffer. To my own surprise I could get it working to some extend. The GUI stuff runs. But also to my surprise, now it is Lua which seems to make trouble. It seems to have trouble with numbers. Lua uses double for numbers. And often I get a NaN instead of a simple number. That is at least one problem, maybe there are others. So has anyone here experience with Lua and dietlibc? Any hints? I use Lua-5.2.2. I compiled it with > make ansi CC="diet gcc -m32" If you want to test AKFAvatar for the Linux framebuffer you have to get it from the GIT repository[3]. Put liblua.a for dietlibc in that directory. Eventually put the header files there too, if they aren't already in the usual places. Then build it with > ./configure --host=x86 CC="diet gcc -std=gnu99" > make lua-akfavatar-linuxfb Note: configure still requires SDL-1.2, but that isn't used in this case. So you should have it installed, but it needn't be compiled for dietlibc. It's all still experimental... [1] http://akfavatar.nongnu.org [2] http://www.lua.org [3] git clone git://git.sv.nongnu.org/akfavatar.git -- AKFoerster <http://AKFoerster.de/>