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 11-21-2006, 11:30 AM   #16
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Abiword for the iliad

Hi!

I've compiled AbiWord-2.4, but don't have my iliad at hand (no, it's not bricked, it's just that it's at home and when in home I literally don't have any time to mess with it), so I'll need cooperation:

Attached to this message is a tar.gz that contains the executable compiled for the iliad.

I need to know what are the needed dependencies.

1. copy the file to the iliad
2. uncompress the file with a
# tar -xvzf abiword24-iliad.tar.gz
3. do an ldd on the uncompressed file so that it lists the missing libraries:
# ldd ./AbiWord-2.4
4. Copy the result of that to a reply to this message :-)

Then, I'll pack another tar.gz with the missing libraries and someone will have to try again to see about what it complains (because I'm sure it will complain about missing files...).

P.S.: BTW, Scotty, this is going to be the test case of the modified libX11 with embedded calls to liberipc/liberdm... hopes up! If it works, there will be no need to port each new app we want in the iliad, just a recompilation will suffice.
Attached Files
File Type: gz abiword24-iliad.tar.gz (3.14 MB, 381 views)
Antartica is offline   Reply With Quote
Old 11-21-2006, 02:54 PM   #17
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Antartica, I know you think embedding the erdm in the X11 lib means the end of porting to the iLiad but ...

The Matchbox window manager needs special care in the code.
The popup keyboard needs to be enabled or auto popped up as needed.
The frenetic busy LED needs to be turned off if launched via [SHELL] hack.
The buttons need special handling in order to operate with them (pagebar, up button etc...)
And many of the apps I've worked with need a fair amount of rework to make them into unzip-n-go applications that don't need things installed to the root filesystem.
Plus if there is anything you can update on the iLiad with a higher brick factor than the X11 library... I don't want to meet it.

I'm testing your abiword.

By the way, you realize only you and I likely have ldd on our iLiad's right?

Last edited by scotty1024; 11-21-2006 at 03:02 PM.
scotty1024 is offline   Reply With Quote
Advert
Old 11-21-2006, 03:02 PM   #18
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
OK, forget ldd (turns out even I don't have it), here's the objdump -p output.

Code:
root@ereader:/media/cf/Applications/AbiWord# objdump -p AbiWord-2.4 

AbiWord-2.4:     file format elf32-littlearm

Program Header:
    PHDR off    0x00000034 vaddr 0x00008034 paddr 0x00008034 align 2**2
         filesz 0x000000c0 memsz 0x000000c0 flags r-x
  INTERP off    0x000000f4 vaddr 0x000080f4 paddr 0x000080f4 align 2**0
         filesz 0x00000013 memsz 0x00000013 flags r--
    LOAD off    0x00000000 vaddr 0x00008000 paddr 0x00008000 align 2**15
         filesz 0x0072513c memsz 0x0072513c flags r-x
    LOAD off    0x0072513c vaddr 0x0073513c paddr 0x0073513c align 2**15
         filesz 0x000a075c memsz 0x00132534 flags rw-
 DYNAMIC off    0x007c47f0 vaddr 0x007d47f0 paddr 0x007d47f0 align 2**2
         filesz 0x000001e0 memsz 0x000001e0 flags rw-
    NOTE off    0x00000108 vaddr 0x00008108 paddr 0x00008108 align 2**2
         filesz 0x00000020 memsz 0x00000020 flags r--

Dynamic Section:
  NEEDED      libpangoxft-1.0.so.0
  NEEDED      libpangoft2-1.0.so.0
  NEEDED      libglade-2.0.so.0
  NEEDED      libgtk-x11-2.0.so.0
  NEEDED      libxml2.so.2
  NEEDED      libgdk-x11-2.0.so.0
  NEEDED      libatk-1.0.so.0
  NEEDED      libgdk_pixbuf-2.0.so.0
  NEEDED      libpangocairo-1.0.so.0
  NEEDED      libpango-1.0.so.0
  NEEDED      libcairo.so.2
  NEEDED      libgobject-2.0.so.0
  NEEDED      libgmodule-2.0.so.0
  NEEDED      libdl.so.2
  NEEDED      libglib-2.0.so.0
  NEEDED      libfreetype.so.6
  NEEDED      libfontconfig.so.1
  NEEDED      libpng12.so.0
  NEEDED      libXrender.so.1
  NEEDED      libX11.so.6
  NEEDED      libSM.so.6
  NEEDED      libICE.so.6
  NEEDED      libgnomeprintui-2-2.so.0
  NEEDED      libgnomeprint-2-2.so.0
  NEEDED      libgnomecanvas-2.so.0
  NEEDED      libart_lgpl_2.so.2
  NEEDED      libm.so.6
  NEEDED      libenchant.so.1
  NEEDED      libfribidi.so.0
  NEEDED      libpopt.so.0
  NEEDED      libXft.so.2
  NEEDED      libgthread-2.0.so.0
  NEEDED      libstdc++.so.6
  NEEDED      libgcc_s.so.1
  NEEDED      libpthread.so.0
  NEEDED      libc.so.6
  INIT        0x119204
  FINI        0x5e4de0
  HASH        0x8128
  STRTAB      0x6be3c
  SYMTAB      0x28dbc
  STRSZ       0xa2fae
  SYMENT      0x10
  DEBUG       0x0
  PLTGOT      0x7d4a2c
  PLTRELSZ    0x1c98
  PLTREL      0x11
  JMPREL      0x11756c
  REL         0x1174fc
  RELSZ       0x70
  RELENT      0x8
  VERNEED     0x1173fc
  VERNEEDNUM  0x5
  VERSYM      0x10edea

Version References:
  required from libm.so.6:
    0x0d696910 0x00 09 GLIBC_2.0
  required from libstdc++.so.6:
    0x056bafd3 0x00 11 CXXABI_1.3
    0x08922974 0x00 08 GLIBCXX_3.4
  required from libgcc_s.so.1:
    0x0d696910 0x00 12 GLIBC_2.0
    0x0b792650 0x00 04 GCC_3.0
  required from libpthread.so.0:
    0x0d696910 0x00 03 GLIBC_2.0
  required from libc.so.6:
    0x0d696913 0x00 10 GLIBC_2.3
    0x09691f73 0x00 07 GLIBC_2.1.3
    0x0d696912 0x00 06 GLIBC_2.2
    0x0d696911 0x00 05 GLIBC_2.1
    0x0d696910 0x00 02 GLIBC_2.0
private flags = 202: [APCS-32] [FPA float format] [software FP] [has entry point]
To quote Hell Boy "You're going to need some serious roughage to pass all that."

Last edited by scotty1024; 11-21-2006 at 03:06 PM.
scotty1024 is offline   Reply With Quote
Old 11-22-2006, 02:28 AM   #19
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by scotty1024
Antartica, I know you think embedding the erdm in the X11 lib means the end of porting to the iLiad but ...

The Matchbox window manager needs special care in the code.
The popup keyboard needs to be enabled or auto popped up as needed.
The frenetic busy LED needs to be turned off if launched via [SHELL] hack.
As I see it:
- For "full screen apps", there is no need to make the main window a popup. I want them to be as big as they can (hey, at home I'm using ratpoison window manager in the htpc because it does exactly that; it's nice for low resolution displays -- the TV definitely is a low resolution display, the iliad also qualifies not because the resolution but because the size...)

- The popup keyboard and the busy LED only need to be enabled once, at application startup, so this is done one at libX11 startup :-).

Quote:
Originally Posted by scotty1024
The buttons need special handling in order to operate with them (pagebar, up button etc...)
- I agree that this is a problem. I would like a more general aproach, so as to map them to sane keys (I've not resolved the problem of how -- yet; perhaps with a helper application...):

up-button: keypad-up
down-button: keypad-down
select-button: enter
flipbar-advance: space
flipbar-backwards: backspace
return-to-previous-menu: escape
main-menu: (I don't know-- I would like this key to open the contents in books, and to open the menus in applications, but I think that there isn't a standard binding for that)

Quote:
Originally Posted by scotty1024
And many of the apps I've worked with need a fair amount of rework to make them into unzip-n-go applications that don't need things installed to the root filesystem.
sed is your friend here :-) (after compiling the app, you can change strings of paths to another strings, if you don't change the length of said strings -- coupled with the unix permissivity of double-slashes for directories, you can use shorter path strings, too).

Quote:
Originally Posted by scotty1024
Plus if there is anything you can update on the iLiad with a higher brick factor than the X11 library... I don't want to meet it.
I agree, but only if it's installed in root.

But I don't want to install the patched libX11 in the root filesystem, but in the local libs directory of each app (so the brick factor is null).

Quote:
Originally Posted by scotty1024
I'm testing your abiword.
Thanks :-)

Quote:
Originally Posted by scotty1024
By the way, you realize only you and I likely have ldd on our iLiad's
right?
Ups! I forgot that...

In reality ldd for elf executables is just a helper script, that calls the binary with a special environment variable set (LD_TRACE_LOADED_OBJECTS=1).

So, if you can post the output of

Code:
# LD_TRACE_LOADED_OBJECTS=1 ./AbiWord-2.4
I would very grateful.

P.S.: I attach the ldd script. It's part of the generated tools when you build the crosscompiler using crosstool (search for ldd in the build directory). I hope that it works with the shell of the iliad, but I didn't tested it...
Attached Files
File Type: gz ldd-iliad.tar.gz (2.0 KB, 387 views)

Last edited by Antartica; 11-22-2006 at 02:31 AM.
Antartica is offline   Reply With Quote
Old 11-22-2006, 05:14 AM   #20
henkvdg
Groupie
henkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of it
 
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
Quote:
Originally Posted by henkvdg
Would this be something usefull to port to the iLiad?

http://www.nllgg.nl/Ted

What do you think?
The author of TED is thrilled by the idea of bringing his baby to the iLiad.
henkvdg is offline   Reply With Quote
Advert
Old 11-22-2006, 05:33 AM   #21
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
About the keys: all iLiad hardkeys are mapped to normal keyboard keys.
The flipbar is PgUp and PgDn, the arrow up/down keys are Up and Down, the confirm key is Return, the UP key is Home. Long presses are different keys: F1 through F6.

You need to make sure the "xresname" in the registry is correct though, so in your program you would need to set that name to "sh" for use with the SHELL hack I guess. This is so contentLister can send the keys to your program.

Hope that helps. Please feel free to post questions like these on the iRex SW forum, they will be answered.
Matthijs is offline   Reply With Quote
Old 11-22-2006, 05:37 AM   #22
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by Matthijs
About the keys: all iLiad hardkeys are mapped to normal keyboard keys.
Thanks Matthijs. Nice to know. :-).
Antartica is offline   Reply With Quote
Old 11-22-2006, 06:05 AM   #23
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by henkvdg
The author of TED is thrilled by the idea of bringing his baby to the iLiad.
Ted is easy to compile. Here you have:
http://projects.mobileread.com/iliad...iad_0.1.tar.gz

Gotchas:
- The package doesn't have the manifest.xml nor the icon.
- I've not tested it yet. It uses the libX11 hack (untested, but it will not brick your iliad -- although having to reset it with the back-button is factible).
- The package is bigger than needed, some libs of the lib directory are redundant and could be deleted (but not libX11... or you 'll miss the autorefresh hack).By bigger than needed I mean: 9MB of package, 26MB of installed size.

Conclusion: if it works, great, if not... it's just a work in progress O:-).

P.S.: Anyone would like my current patch to libX11? Or is it better to wait to release it until it works?
Antartica is offline   Reply With Quote
Old 11-22-2006, 06:10 AM   #24
jęd
Evangelist
jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.
 
Posts: 458
Karma: 293
Join Date: May 2006
Quote:
Originally Posted by Antartica
P.S.: Anyone would like my current patch to libX11? Or is it better to wait to release it until it works?
Where is the patch in the tar ball...? I might be wrong, but the files all appear to be binary files...
jęd is offline   Reply With Quote
Old 11-22-2006, 06:21 AM   #25
henkvdg
Groupie
henkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of ithenkvdg has read War And Peace ... all of it
 
Posts: 180
Karma: 66830
Join Date: Oct 2006
Device: IREX iLiad, Pocketbook Pro 903
I tried it, it does not work yet. I had to reset my iLiad.
It seems like it is starting up forever.


Quote:
Originally Posted by Antartica
Ted is easy to compile. Here you have:
http://projects.mobileread.com/iliad...iad_0.1.tar.gz

Gotchas:
- The package doesn't have the manifest.xml nor the icon.
- I've not tested it yet. It uses the libX11 hack (untested, but it will not brick your iliad -- although having to reset it with the back-button is factible).
- The package is bigger than needed, some libs of the lib directory are redundant and could be deleted (but not libX11... or you 'll miss the autorefresh hack).By bigger than needed I mean: 9MB of package, 26MB of installed size.

Conclusion: if it works, great, if not... it's just a work in progress O:-).

P.S.: Anyone would like my current patch to libX11? Or is it better to wait to release it until it works?
henkvdg is offline   Reply With Quote
Old 11-22-2006, 06:35 AM   #26
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by jęd
Where is the patch in the tar ball...? I might be wrong, but the files all appear to be binary files...
That was exactly my question, if someone wanted the patch in its current untested shape.

Here you have ;-)
Attached Files
File Type: txt libX11-patch-iliad_20061122-1.diff.txt (3.9 KB, 364 views)
Antartica is offline   Reply With Quote
Old 11-22-2006, 06:38 AM   #27
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by henkvdg
I tried it, it does not work yet. I had to reset my iLiad.
It seems like it is starting up forever.
Thank you very much.

I might have missed something . I'll review the code and hopefully generate a new version.

Stay tuned .

Last edited by Antartica; 11-22-2006 at 06:41 AM.
Antartica is offline   Reply With Quote
Old 11-22-2006, 06:48 AM   #28
jęd
Evangelist
jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.jęd has a complete set of Star Wars action figures.
 
Posts: 458
Karma: 293
Join Date: May 2006
Quote:
Originally Posted by Antartica
That was exactly my question, if someone wanted the patch in its current untested shape.

Here you have ;-)
One of the things I'm trying to do is encourage people to publish diff scripts when they publish ported apps... It helps everyone if we can all see the tricks each of us use...!
jęd is offline   Reply With Quote
Old 11-22-2006, 07:20 AM   #29
Riocaz
Fulfilled but not by iRex
Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.Riocaz ought to be getting tired of karma fortunes by now.
 
Posts: 932
Karma: 286846
Join Date: May 2006
Location: London
Device: Far too many
may I suggest moving this to the Development area?
Riocaz is offline   Reply With Quote
Old 11-22-2006, 07:53 AM   #30
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Quote:
Originally Posted by Matthijs
You need to make sure the "xresname" in the registry is correct though, so in your program you would need to set that name to "sh" for use with the SHELL hack I guess. This is so contentLister can send the keys to your program.
Antartica, another Xlib intercept for you... need to force the main window name. But of course that then changes the resource names.

Or perhaps you can change Xlib to report the name to iRex as "sh" and keep the original resource name for purposes of loading resources?
scotty1024 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Onyx Text Editor? Risto Andere Lesegeräte 1 05-25-2010 05:34 AM
Text Editor Problem crutledge Sigil 2 08-10-2009 10:12 AM
Leafpad Text editor allovertheglobe iRex 8 07-26-2009 04:41 AM
GNU nano text editor (like pico) bobj iRex 0 06-27-2008 10:38 PM
iLiad as a text editor Capodasello Introduce Yourself 7 12-02-2007 08:43 AM


All times are GMT -4. The time now is 11:10 PM.


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