Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2009, 07:55 AM   #31
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Unhappy 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.
hansel is offline   Reply With Quote
Old 02-13-2009, 10:03 AM   #32
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by hansel
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.
It was too nice to be good...

Anyway,

Quote:
Originally Posted by hansel
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.
I have almost completed the port, 2 functions to fix and check everything works smoothly on the iliad .
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
Iņigo is offline   Reply With Quote
Advert
Old 02-14-2009, 12:11 PM   #33
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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
Attached Files
File Type: gz iliad-lua-lgui-0.1.tar.gz (162.0 KB, 411 views)
Iņigo is offline   Reply With Quote
Old 02-14-2009, 02:43 PM   #34
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
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...
hansel is offline   Reply With Quote
Old 02-17-2009, 05:55 AM   #35
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Hi Iņigo,
Quote:
Originally Posted by Iņigo View Post
I really appreciate your comments, suggestions, ideas, etc
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...
  • About liblua.so or liblua.a: I think you do not need liblua at all: the functions we need are already in the Lua interpreter. They are resolved fine at runtime.
  • I reported the small problems in the makefiles to the authors: they solved it quickly in the svn version. (http://svn.tuxfamily.org/viewvc.cgi/oproj_oprojsvn/)
  • I agree that it is better to separate the gui stuff in a separate package.
I'll play some more when I have time...

Last edited by hansel; 02-17-2009 at 09:10 AM. Reason: spelling
hansel is offline   Reply With Quote
Advert
Old 02-20-2009, 05:40 PM   #36
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by hansel
Did you have time do do a simple performance test on the Iliad?
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...
I've used the attached file. It's a modification of the Application.lua example included in lgui sources, with a table in the body of the window. There we have 16x16 buttons connected to click callbacks.

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:
Originally Posted by hansel
be very careful when changing lines that contain 'free' 'alloc' or 'ref'! We don't want memory leaks or core dumps...
Don't be afraid, I've only modified a new function that didn't exist in old glib v2.6.7.

Quote:
Originally Posted by hansel
About liblua.so or liblua.a: I think you do not need liblua at all: the functions we need are already in the Lua interpreter. They are resolved fine at runtime.
I'll try to build again without linking to liblua.so. Thanks for the tip.


Btw, any idea about the problem I mention regarding theme?

Iņigo
Attached Files
File Type: gz Application.lua.gz (1.4 KB, 354 views)
Iņigo is offline   Reply With Quote
Old 02-21-2009, 04:03 PM   #37
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
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!
Quote:
Originally Posted by Iņigo View Post
Btw, any idea about the problem I mention regarding theme?Iņigo
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...
Attached Thumbnails
Click image for larger version

Name:	many.png
Views:	455
Size:	117.7 KB
ID:	24101   Click image for larger version

Name:	textview.png
Views:	443
Size:	36.5 KB
ID:	24102  

Last edited by hansel; 02-22-2009 at 09:27 AM. Reason: spelling
hansel is offline   Reply With Quote
Old 02-22-2009, 08:35 AM   #38
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by hansel View Post
I downloaded the most recent version of lobj en lgui, applied yout 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.
wow, I think I'll leave compilation and packaging to you, cause I suppose the problems I'm suffering are due to my building environment.

Quote:
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...
Waiting for it ;-)

Kind regards,
Iņigo
Iņigo is offline   Reply With Quote
Old 02-22-2009, 07:14 PM   #39
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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
Attached Files
File Type: gz iliad-lua-lgui-0.2.tar.gz (103.7 KB, 383 views)
Iņigo is offline   Reply With Quote
Old 02-25-2009, 05:28 AM   #40
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Hi,
Quote:
Originally Posted by Iņigo View Post
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
Great!
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...
Attached Files
File Type: ipk lua5.1-iliad-1.2.ipk (221.0 KB, 417 views)
File Type: ipk lgui-iliad-0.2.ipk (66.3 KB, 354 views)

Last edited by hansel; 02-26-2009 at 02:21 AM. Reason: attachments
hansel is offline   Reply With Quote
Old 02-27-2009, 04:10 AM   #41
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
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:
Originally Posted by hansel View Post
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!
great!!!
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:
Originally Posted by hansel View Post
EDIT:Thu Feb 26 07:18:35 UTC 2009
Iņigo, the new sources can wait until they release them officially...
Last published sources were released on Feb 16th, are any useful features or fixes included in svn since then?

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
Iņigo is offline   Reply With Quote
Old 02-27-2009, 05:16 AM   #42
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by Iņigo View Post
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.
It's not urgent, the current version is good enough. We can update when the release a new version.

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
hansel is offline   Reply With Quote
Old 02-27-2009, 10:07 AM   #43
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Question 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
After it, the example window displays on iLiad's screen but every widget is drawn with the same colour, so no contrast between different widgets.

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
Attached Thumbnails
Click image for larger version

Name:	27022009.jpg
Views:	454
Size:	268.2 KB
ID:	24551  

Last edited by Iņigo; 02-27-2009 at 10:28 AM. Reason: UPDATE: 20090227 16:27: added ugly screenshot
Iņigo is offline   Reply With Quote
Old 03-04-2009, 02:02 PM   #44
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
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.
hansel is offline   Reply With Quote
Old 03-08-2009, 06:18 AM   #45
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
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
hansel is offline   Reply With Quote
Reply

Tags
gtk+, iliad, lgob, lua, networking, xml


Forum Jump

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


All times are GMT -4. The time now is 10:21 AM.


MobileRead.com is a privately owned, operated and funded community.