02-13-2009, 07:55 AM | #31 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
UIP disapointment...
Hello all,
While Uip is really great and simple to use, it is really slow on complex gui: A dialog with 256 (=16x16) buttons takes 40 sec to show while the same dialog programmed directly in Gtk+ takes only 8 sec. This is not a Lua problem: I used Uip's C-interface. I want to state clearly that Iup is ok for a simple gui (say 10-20 widgets), but I think it's worth a try to port the libraries mentioned by Iņigo... To be continued. |
02-13-2009, 10:03 AM | #32 | ||
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Almost there
Quote:
Anyway, Quote:
In fact I've only slept 1 hour tonight (yeah, porting is addictive ;-)), but I had to stop, a meeting with a very important customer this morning, so a shower, shaving, etc... I'll release a first version of the port to test in a few hours, posible saturday, stay tunned. Iņigo |
||
Advert | |
|
02-14-2009, 12:11 PM | #33 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
lgui for iliad v0.1 (lua gtk+ binding)
So here we are again.
Please, read the documentation in the file. It contains all the information I'm too tired to write again here They are some issues but I think it could be easily solved with your help. Once we solve them we could release an official package. I really appreciate your comments, suggestions, ideas, etc. Hope you like it, Iņigo |
02-14-2009, 02:43 PM | #34 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Hi Iņigo,
Nice marathon! get some sleep now Great that you have provided patches: that the best way to analyze and manage the differences. I'm not sure if I'll have much time this week, but I'll do my best... Can you run a simple test to get an idea about performance? A dialog wit 16x16 small exit buttons would be a good benchmark. I hope it shows in not much more than 8 seconds... A positive result would be very motivating PS: be very careful when changing lines that contain 'free' 'alloc' or 'ref'! We don't want memory leaks or core dumps... |
02-17-2009, 05:55 AM | #35 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Hi Iņigo,
Did you have time do do a simple performance test on the Iliad? I just played a bit with lobj, lgui and ldraw on my ubuntu box: nice libraries indeed! The examples are cool...
Last edited by hansel; 02-17-2009 at 09:10 AM. Reason: spelling |
Advert | |
|
02-20-2009, 05:40 PM | #36 | |||
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Sorry for the silence these days, I've been very busy at work.
Quote:
The main window appears after 7-8 secs, but it doesn't display the table with the 256 buttons. If I click on the body of the window just after main window is shown, table appears in less than 1 sec, that is, 8-9 secs. since the start. Don't know what's happening here... maybe a refresh issue? I've tried to insert a tbl:showAll() after table creation, but with no visible differences. The same script with a 4x4 table shows in 6 seconds. Quote:
Quote:
Btw, any idea about the problem I mention regarding theme? Iņigo |
|||
02-21-2009, 04:03 PM | #37 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Update...
Hi Iņigo,
I downloaded the most recent version of lobj en lgui, applied your patches, tweaked a little more and managed to compile and run everything! The example with many buttons runs fine (same speed as native gtk). Great work, great results Thanks! I have not experienced any problems!?!? See screen shots. I checked: you do NOT need liblua.a (or .so) to build the libraries. My build is a bit hacky right now. When I have some more time, Ill sort things out and try to release a documented package... To be continued... Last edited by hansel; 02-22-2009 at 09:27 AM. Reason: spelling |
02-22-2009, 08:35 AM | #38 | ||
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
Quote:
Kind regards, Iņigo |
||
02-22-2009, 07:14 PM | #39 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
NEW VERSION: lgui for iliad v0.2 (lua gtk+ binding)
I've noticed that there are new versions of lobj and lgui, so I've updated the patches and cleaned the package.
Changes: - patches updated to lobj v0.10.0, lgui v0.22.0 - don't link to liblua.so, it's not necessary, as hansen has demonstrated - update documentation Iņigo |
02-25-2009, 05:28 AM | #40 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Hi,
Quote:
I'm almost ready to build decent packages. I re-factored my build environment, which took more time than expected... I'd like to use the most recent sources (from svn) for lgui and lobj: they solved some problems and removed the build-time dependency for luac. They are here: http://svn.tuxfamily.org/viewvc.cgi/...ar.gz?view=tar and http://svn.tuxfamily.org/viewvc.cgi/...ar.gz?view=tar Could you make one more patch for this version? Jus't say it if you don't have time for this: I'll look in it myself. But it will take me some time, and I don't want to do double work... Continue the good work! EDIT: Wed Feb 25 19:59:53 UTC 2009 Here are ipk's, if somebody is impatient to try the new gui lib Documentation and updates will follow... It is really cool : the package for the Lua binding of Lgui is only 66KB! Please send some karma to Iņigo ASAP! EDIT:Thu Feb 26 07:18:35 UTC 2009 Iņigo, the new sources can wait until they release them officially... Last edited by hansel; 02-26-2009 at 02:21 AM. Reason: attachments |
|
02-27-2009, 04:10 AM | #41 | ||
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
anyway, I don't need the karma, I only do this for the money... or the girls... or... I can't remember the reasons... hehehe ;-) Quote:
I can start with the new patches just now, next week I'll be working abroad and won't be able to do it... do you still need them? Btw, if these packages work good enough, maybe you should open a new thread with them. This thread looks too buried to find something from casual searches. Thanks, Iņigo |
||
02-27-2009, 05:16 AM | #42 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
I prefer to publish it in this thread: maybe we can beat the nr of views of Adam's outdated sticky 'Liad Development VMWare image' thread |
|
02-27-2009, 10:07 AM | #43 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
theme issue persists
Hi,
I've checked the new packages, they work great... but the problem I mentioned before regarding theme contrast with my own building persists, so I suppose it's an issue of my iLiad. This is what I do: Code:
mydesktop$ ssh -l root ILIAD_IP iliad$ export DISPLAY=ILIAD_IP:0 iliad$ lua lgui_example.lua I've tested several apps I installed on the iLiad (emelfm2, leafpad, etc) and all of them are displayed perfectly, both when running from contentlister or from ssh shell. I've also checked all the gtkrc (gtk+ theme files) but I only have the standard ones in the standard places. Any idea? Iņigo Last edited by Iņigo; 02-27-2009 at 10:28 AM. Reason: UPDATE: 20090227 16:27: added ugly screenshot |
03-04-2009, 02:02 PM | #44 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
update
Update...
I'm exploring one more GTK binding for lua: lgob, by the same author as lgui. It is very 'alpha' now, but much more flexible and complete than lgui. It will be easier to use for older versions of the gnome libraries... I'll try to do an experimental build soon. Ref: http://svn.tuxfamily.org/viewvc.cgi/...vn/lgob/trunk/ EDIT Sat Mar 7 18:25:34 CET 2009: I have a first build running on my Iliad: gtk + dgk Last edited by hansel; 03-07-2009 at 12:26 PM. |
03-08-2009, 06:18 AM | #45 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Lgob
The more I play with Lgob, the more I like it!
I started a page about Lgob for Iliad. It has (some) references about building it... https://dev.mobileread.com/trac/luailiad/wiki/lgob |
Tags |
gtk+, iliad, lgob, lua, networking, xml |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pandigital announce the black Novel | Nate the great | News | 0 | 08-18-2010 05:21 PM |
iLiad China iLiad users can get developer package. | ericshliao | iRex Developer's Corner | 35 | 03-20-2010 05:21 AM |
iLiad Announce: Glade4Lua, develop graphical apps for the Iliad | hansel | iRex Developer's Corner | 1 | 10-27-2009 05:00 PM |
Sony to announce colour e-book ? | markiehill | News | 11 | 08-22-2009 12:45 PM |
Proud to announce our new moderator! | Alexander Turcic | Announcements | 5 | 12-08-2003 11:18 PM |