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 04-10-2009, 12:33 AM   #76
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by -Thomas- View Post
Take a look at /usr/share/contentlister/mode/XX where XX is one of en, de, fr or nl, depending on your language.
Thanx for the tip. I took a look in one of them, it seems that something (the line "<Identifier>MAIN</Identifier>") is hard-encoded in contentlister and must modify source code to expand a link.

Code:
<?xml version="1.0" standalone="no"?>
<!--manifest file for memory extensions-->
<package>
  <metadata>
    <dc-metadata>
      <Title>Main Memory</Title>
      <Description>Content in the internal memory of your iLiad.</Description>
    </dc-metadata>
    <y-metadata>
      <image>MainMemory.png</image>
      <version>000</version>
    </y-metadata>
  </metadata>
  <storage>
     <Identifier>MAIN</Identifier>
  </storage>
</package>
ericshliao is offline   Reply With Quote
Old 04-10-2009, 12:37 AM   #77
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Ah! I must be wrong. That <Identifier> is configurable in /mnt/settings/registry/registry.xml. Although I haven't really test it, I found something familiar in the file.
ericshliao is offline   Reply With Quote
Old 04-13-2009, 12:57 PM   #78
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I think it's not possible to add a working link in top menu. I found that adding a dir in /usr/share/contentlister/mode will only create a dummy menuitem which is not functioning. Although iLiad uses registry.xml to control the link to menuitem, the types of menuitems are hardcoded in liberregxml, so there is no way to add more "functioning" menuitems in top menu.
Too bad.
ericshliao is offline   Reply With Quote
Old 06-28-2009, 11:56 PM   #79
nigeldb
email tragic
nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.
 
nigeldb's Avatar
 
Posts: 52
Karma: 1614
Join Date: Aug 2008
Location: Melbourne
Device: iLiad, Cybook, iPhone
Having a problem installing

Hi,


I'm installing my first programmes and am very keen on getting contenLister up and running, but I'm doing something wrong.

1. I have mrxvt installed and working on CF
2. I have just installed FBReader and that working fine on CF

Somewhere here it all goes terribly wrong.......
3. downloaded newLister-scr-1.0.5 as per post #1 to my laptop
Took a bit of time to work out what a .gz file was (bear with me, I'm new to this ) so downloaded PowerArchiver to do the unpacking.
4. Unpacked the .gz file using PowerArchiver which created a new folder "newLister" with a whole pile of files and 6 folders.
5. copied "newLister" folder across to CF card.
6. Opened CF card on Iliad, found "newLister", opened it and all I can see are unrecognisable files. (the icon has a big X on it).

aaargh.... Am I missing some other vital piece of software???

Many thanks for your patience

Nigel db
nigeldb is offline   Reply With Quote
Old 06-29-2009, 04:12 AM   #80
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
Hello Nigel,

Quote:
Originally Posted by nigeldb View Post
Hi,

3. downloaded newLister-scr-1.0.5 as per post #1 to my laptop
...
aaargh.... Am I missing some other vital piece of software???

Many thanks for your patience

Nigel db
You need to dowload the file with the binaries: newLister-bin-1.0.5.tar.gz
The file you have has the source files wich are intended for developers.

Good luck! Hansel.
hansel is offline   Reply With Quote
Old 06-29-2009, 08:13 AM   #81
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
hansel,
I am suffering a HDD failure, while waiting for rescuing back the data, I spent some time to implement a clickable titlebar on newlister.
I would like to ask you do me a favor. If not bothering, please help me check if my mod does work. Thanx.

The idea is simple. The top-most black bar is composed by two GtkLabel widgets: titleItem (on the left) and titleLocation (on the right). The following code makes them responsive to button-click events. If clicking on titleItem, call the same function just as MODE button pushed. If clicking on titleLocation, call the same function just as GO-UP button pushed.

Code:
g_signal_connect(G_OBJECT((g_lister.titleItem), "button_press_event",
  G_CALLBACK(ls_titleItem_press_event), data);
In "lister.cpp", add the above code right before "gtk_widget_show(g_lister.titleItem);".
Code:
g_signal_connect(G_OBJECT((g_lister.titleLocation), "button_press_event",
  G_CALLBACK(ls_titleLocation_press_event), data);
In "lister.cpp", Add the above code right before "gtk_widget_show(g_lister.titleLocation);".

Code:
void ls_titleItem_press_event(GtkWidget * widget, GdkEventButton * event, gpointer data)
{
  ctrl_mode_button_clicked();
}


void ls_titleLocation_press_event(GtkWidget * widget, GdkEventButton * event, gpointer data)
{
	GdkEvent *keyevent;
	keyevent = gdk_event_new(GDK_F5);
	((GdkEventKey *)keyevent)->keyval = GDK_F5;
	ctrl_listerArea_keypress(widget, keyPressCbk(window, (GdkEventKey *)keyevent, data);
	gdk_event_free(keyevent);
}
In "lister.cpp", add the above two function.

Last edited by ericshliao; 06-29-2009 at 12:33 PM.
ericshliao is offline   Reply With Quote
Old 06-29-2009, 05:13 PM   #82
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 ericshliao,

I'm quite tired and busy at the moment... and I broke the display of my Ubuntu laptop :-( , which has all my development stuff...

Right now I'm surfing around to find out which laptop to buy next, so it will be some weeks before I will be able to compile Iliad stuff again...

Continue the good work!
Hansel.
hansel is offline   Reply With Quote
Old 06-29-2009, 07:03 PM   #83
nigeldb
email tragic
nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.nigeldb once ate a cherry pie in a record 7 seconds.
 
nigeldb's Avatar
 
Posts: 52
Karma: 1614
Join Date: Aug 2008
Location: Melbourne
Device: iLiad, Cybook, iPhone
Thank you

Hi Hansel,

Thanks for that...hadn't realised there were two versions, one for noobs like me and one for programmers. I'll look out for bin versions in future

and watching the screen as it reboots......and yes, I did it properly this time! Brilliant pice of work Hansel....many thanks

nigel db
nigeldb is offline   Reply With Quote
Old 06-30-2009, 06:11 AM   #84
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by hansel View Post
Hi ericshliao,

I'm quite tired and busy at the moment... and I broke the display of my Ubuntu laptop :-( , which has all my development stuff...
It's alright. I will compile it after upgrading my desktop linux kernel. Wish you find a nice display to replace the broken one.
ericshliao is offline   Reply With Quote
Old 06-30-2009, 11:40 AM   #85
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I can build newLister with my above mod, but it will cause iLiad to reboot. The attachment is the binary mod of newLister, I put it in /usr/bin and replace the original newLister and make it executable.

I can't image why. Ideally, even if my code is not right, it should not cause iLiad fail to boot. Errors should only occur when I click on the titlebar.

Warning:
Don't use the attachment unless you know what you are doing.
Attached Files
File Type: zip newLister.zip (94.9 KB, 283 views)

Last edited by ericshliao; 06-30-2009 at 11:49 AM.
ericshliao is offline   Reply With Quote
Old 06-30-2009, 02:00 PM   #86
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I just realised that I made a ridiculous mistake. I modified the source code but ... I fotgot to save the change.

Besides, there are still some error in my code. I am working on it.
ericshliao is offline   Reply With Quote
Old 06-30-2009, 03:23 PM   #87
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
There seems something wrong with my cross-compile environment. I can build the original newLister 1.05, but it fails to run on iLiad.

Here is the diff file to patch newLister 1.05 to support clickable titlebar. I think the code should be ok. I can build the mod, but still it will not run on iLiad. Because I can't build a "runnable" original newLister 1.05, either, I guess it's the problem of my cross-compile environment, not my code.
Attached Files
File Type: zip newLister.diff.zip (673 Bytes, 265 views)

Last edited by ericshliao; 06-30-2009 at 03:59 PM.
ericshliao is offline   Reply With Quote
Old 06-30-2009, 06:45 PM   #88
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I tried to "ldd" the original newLister binary (extracted from hansel's package) and got the following output:
Code:
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
	libX11.so.6 => /lib/libX11.so.6 (0x00000000)
	libXau.so.0 => /lib/libXau.so.0 (0x00000000)
	libXcursor.so.1 => /lib/libXcursor.so.1 (0x00000000)
	libXext.so.6 => /lib/libXext.so.6 (0x00000000)
	libXfixes.so.0 => /lib/libXfixes.so.0 (0x00000000)
	libXft.so.2 => /lib/libXft.so.2 (0x00000000)
	libXrender.so.1 => /lib/libXrender.so.1 (0x00000000)
	libatk-1.0.so.0 => /usr/local/lib/libatk-1.0.so.0 (0x00000000)
	libc.so.6 => /lib/libc.so.6 (0x00000000)
	libcairo.so.2 => /usr/local/lib/libcairo.so.2 (0x00000000)
	libcrypto.so.0.9.7 => /lib/libcrypto.so.0.9.7 (0x00000000)
	libdl.so.2 => /lib/libdl.so.2 (0x00000000)
	liberdm.so.2 => /usr/local/lib/liberdm.so.2 (0x00000000)
	libergtk.so.0 => /usr/local/lib/libergtk.so.0 (0x00000000)
	liberipc.so.0 => /usr/local/lib/liberipc.so.0 (0x00000000)
	liberlog.so.1 => /lib/liberlog.so.1 (0x00000000)
	libermanifest.so.0 => /usr/local/lib/libermanifest.so.0 (0x00000000)
	liberregxml.so.0 => /usr/local/lib/liberregxml.so.0 (0x00000000)
	libexpat.so.0 => /lib/libexpat.so.0 (0x00000000)
	libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00000000)
	libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00000000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
	libgdk-x11-2.0.so.0 => /usr/local/lib/libgdk-x11-2.0.so.0 (0x00000000)
	libgdk_pixbuf-2.0.so.0 => /usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x00000000)
	libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x00000000)
	libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00000000)
	libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00000000)
	libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00000000)
	libgthread-2.0.so.0 => /usr/local/lib/libgthread-2.0.so.0 (0x00000000)
	libgtk-x11-2.0.so.0 => /usr/local/lib/libgtk-x11-2.0.so.0 (0x00000000)
	libm.so.6 => /lib/libm.so.6 (0x00000000)
	libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0x00000000)
	libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0 (0x00000000)
	libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0 (0x00000000)
	libpangox-1.0.so.0 => /usr/local/lib/libpangox-1.0.so.0 (0x00000000)
	libpangoxft-1.0.so.0 => /usr/local/lib/libpangoxft-1.0.so.0 (0x00000000)
	libpixman-1.so.0 => /usr/local/lib/libpixman-1.so.0 (0x00000000)
	libpng12.so.0 => /lib/libpng12.so.0 (0x00000000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
	librt.so.1 => /lib/librt.so.1 (0x00000000)
	libssl.so.0.9.7 => /lib/libssl.so.0.9.7 (0x00000000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00000000)
	libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00000000)
	libz.so.1 => /lib/libz.so.1 (0x00000000)
And I also "ldd" the binary file (using original newLister source code) built in my cross-compile environment. After comparison, I found that three lines are missing in the later case. They are:
Code:
	libXft.so.2 => /lib/libXft.so.2 (0x00000000)
	libpangox-1.0.so.0 => /usr/local/lib/libpangox-1.0.so.0 (0x00000000)
	libpangoxft-1.0.so.0 => /usr/local/lib/libpangoxft-1.0.so.0 (0x00000000)
Well, I am pretty sure that this problem must has something to do with my upgraded libs (such as gtk, pango,...), but I don't know how to explain this situation!Please help.

Last edited by ericshliao; 06-30-2009 at 07:00 PM.
ericshliao is offline   Reply With Quote
Old 07-01-2009, 01:56 AM   #89
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 ericshliao View Post
...Well, I am pretty sure that this problem must has something to do with my upgraded libs (such as gtk, pango,...), but I don't know how to explain this situation!Please help.
Did you try to run your newlister form the commandline on the Iliad? It might give you some (run time) message like 'undefined symbol....blah in blah.so...' that can point in the right direction..
PS: if you publish a new binary, be sure to build it against the original libs!

Last edited by hansel; 07-01-2009 at 01:59 AM.
hansel is offline   Reply With Quote
Old 07-01-2009, 04:33 AM   #90
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I tried to run newLister in mrxvt, and it seems that the binary file tried to open some non-existed files:
/usr/local/etc/gtk-2.0/gtkrc
/home/root/.gtkrc=2.0
/usr/local/share/contentlister/clicked_key.wav
/usr/local/share/contentlister/Icon_folder.png

Did you set --prefix= when you do "./configure"?

Added:
If I set "--prefix=/usr" when doing "./configure", I can build a working newLister binary. But sadly, my mod does not work as I expected.

Last edited by ericshliao; 07-01-2009 at 04:58 AM.
ericshliao is offline   Reply With Quote
Reply

Tags
contenlister, development, iliad, newlister


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DX: Contrast has Been Improved ny10522 Amazon Kindle 3 06-15-2009 02:46 AM
Has E-ink improved? Kilarney Which one should I buy? 4 03-14-2009 07:01 PM
NewLister 1.0.1: Improved contenLister, more items on a page hansel iRex 9 02-13-2009 05:24 AM
txt2lrf - New and Improved kovidgoyal LRF 42 02-10-2009 07:41 AM
iLiad Wiki, Software documentation, contenLister hansel iRex Developer's Corner 1 12-09-2008 06:34 PM


All times are GMT -4. The time now is 07:41 PM.


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