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-11-2009, 08:24 AM   #16
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
I got the following output. Anything wrong?
looks good!

Now try to start the irex stuff...
hansel is offline   Reply With Quote
Old 04-11-2009, 08:28 AM   #17
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
As to pangox and pangoxft, I didn't notice that these two libs did not exist. I will check what's wrong.
Thanx so much. You really gave me a big hand.

Added:
It seems that newer pangox and pangoxft are not compatible with fontconfig and freetype on iLiad. Therefore, pangox and pangoxft wasn't built. I will try to replace them, or downgrade to pango1.20.

Added 2:
I was wrong. There is nothing incompatible between Pango and freetype. It's solved after I gave correct include and lib path to ./configure.

Last edited by ericshliao; 04-11-2009 at 09:37 AM.
ericshliao is offline   Reply With Quote
Advert
Old 04-11-2009, 10:12 AM   #18
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
It's totally working now. I have removed gtk-related libs under /usr/lib and cf is still bootable.
Here is the complete gtk lib package. Put the "local" dir in /usr. Copy local/etc/pango and local/etc/gtk-2.0 to /etc, overwrite the original. It's all.
Thanx hansel, jharker, and Antartica. Your knowledge helps me.

Added:
In the package, local/bin and some dir in local/share/locale might be unneeded.

Added 2:
The following files in /usr/lib is safe to remove.
Code:
glib-2.0
gtk-2.0
pango
libatk-1.0.so.0
libatk-1.0.so.0.1011.0
libgdk_pixbuf-2.0.so.0
libgdk_pixbuf-2.0.so.0.600.7
libgdk_pixbuf_xlib-2.0.so.0
libgdk_pixbuf_xlib-2.0.so.0.600.7
libgdk-x11-2.0.so.0
libgdk-x11-2.0.so.0.600.7
libglib-2.0.so.0
libglib-2.0.so.0.600.6
libgmodule-2.0.so.0
libgmodule-2.0.so.0.600.6
libgobject-2.0.so.0
libgobject-2.0.so.0.600.6
libgthread-2.0.so.0
libgthread-2.0.so.0.600.6
libgtk-x11-2.0.so.0
libgtk-x11-2.0.so.0.600.7
libpango-1.0.so.0
libpango-1.0.so.0.800.1
libpangoft2-1.0.so.0
libpangoft2-1.0.so.0.800.1
libpangox-1.0.so.0
libpangox-1.0.so.0.800.1
libpangoxft-1.0.so.0
libpangoxft-1.0.so.0.800.1
Attached Files
File Type: rar usr.local.tar.bz2.rar (13.76 MB, 349 views)

Last edited by ericshliao; 04-11-2009 at 10:58 AM.
ericshliao is offline   Reply With Quote
Old 04-11-2009, 10:33 AM   #19
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
Let's compare memory usage under original iLiad (GTK+2.6) and GTK+2.14.7:

Original iLiad (just after boot, with newLister)
Code:
root@ereader:~# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  64901120 43778048 21123072        0  1306624 21508096
Swap:        0        0        0
MemTotal:        63380 kB
MemFree:         20628 kB
MemShared:           0 kB
Buffers:          1276 kB
Cached:          21004 kB
SwapCached:          0 kB
Active:           9168 kB
Inactive:        25228 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        63380 kB
LowFree:         20628 kB
SwapTotal:           0 kB
SwapFree:            0 kB
iLiad with GTK+2.14.7 (just after boot, with newLister)
Code:
root@ereader:~# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  64901120 46030848 18870272        0  1187840 21667840
Swap:        0        0        0
MemTotal:        63380 kB
MemFree:         18428 kB
MemShared:           0 kB
Buffers:          1160 kB
Cached:          21160 kB
SwapCached:          0 kB
Active:           9228 kB
Inactive:        27444 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        63380 kB
LowFree:         18428 kB
SwapTotal:           0 kB
SwapFree:            0 kB

Last edited by ericshliao; 04-11-2009 at 10:38 AM.
ericshliao is offline   Reply With Quote
Old 04-11-2009, 11:09 AM   #20
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
It's totally working now.


What is the difference in disk usage?

If the new libs are not much bigger than the old ones, and if you can provide a clean recipe to build all those libs form their sources, and check that everything keeps running fine, this might be ready for inclusion in the next IliadOS!

PS: you can strip the libs without problem to make them smaller.
PPS: I tried to give you some karma, but the system insists "You must spread some Reputation around before giving it to ericshliao again."
hansel is offline   Reply With Quote
Advert
Old 04-11-2009, 11:38 AM   #21
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

What is the difference in disk usage?

If the new libs are not much bigger than the old ones, and if you can provide a clean recipe to build all those libs form their sources, and check that everything keeps running fine, this might be ready for inclusion in the next IliadOS!
If not stripped, disk usage is roughly 15mb more. As to compile, I didn't apply any patch to the source code. Everything just went fine after I setup proper pkg-config environment in Scratchbox.

Quote:
Originally Posted by hansel View Post
PS: you can strip the libs without problem to make them smaller.
That's beyond my current knowledge. I have to do some study.

Quote:
Originally Posted by hansel View Post
PPS: I tried to give you some karma
Thanx for your consideration. Your help is already so wonderful.
ericshliao is offline   Reply With Quote
Old 04-11-2009, 11:15 PM   #22
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
This is a package of stripped libs. Disk usage difference between GTK+2.6 and GTK+2.14.7 should be no more than 3mb. From the tiny size difference, I guess iRex didn't rip any source code, they just stripped the shared objects.

Besides GTK+related libs, I also upgraded some other libs (also put in the package). Leave them in /usr/local/lib is safe. If you want to try, just remove their older version in /usr/lib. But /usr/lib/libexpat should not be removed.

These libs are working perfectly on my iLiad. ipdf, mobi reader, newLister, fbreader 0.10.7, and my homebrew apps have been tested to run with these libs.
Attached Files
File Type: gz usr_local_stripped.tar.gz (7.83 MB, 351 views)
ericshliao is offline   Reply With Quote
Old 04-12-2009, 05:44 AM   #23
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 have put all the new libs into iLiad root partition, and removed their respective old version. My iLiad works like a charm.
To make more storage space in root partition, removing /usr/lib/mozilla-minimo is required. Putting /usr/local/lib in /mnt/free and make a symbolic link should be a workaround, too.
Since I have an update to date bootable cf, I guess I won't need to reflash my iLiad for a long time. If iLiad fails to run, booting from cf and restoring damaged files should be enugh. I hope so.

Last edited by ericshliao; 04-12-2009 at 05:49 AM.
ericshliao is offline   Reply With Quote
Old 04-12-2009, 09:54 AM   #24
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 ericshliao View Post
I have put all the new libs into iLiad root partition, and removed their respective old version. My iLiad works like a charm.
Great achievement! . Congrats.

Hope that these updated libraries can go into the iliad OS soon .
Antartica is offline   Reply With Quote
Old 04-12-2009, 02:19 PM   #25
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
This is a package of newer libs that is ready to be unpacked in iLiad root partition (or bootable CF). After unpacked, it will occupy 20mb, so please make sure there is enough space in root partition.
I extracted the package from my bootable CF, which is identical to iLiad root partition. So, I think it should be working for everyone. To be cautious, however, I would suggest applying the package on a bootable CF first.

Package content:
Code:
/etc/fonts -- will replace the original
/etc/pango -- will replace the original
/usr/local -- new libs.
README.txt -- a list of libs should not be removed from /usr/lib. Others are safe to delete.
I made an update to the package because I forgot to remove unneeded fils in /etc. It's clean now.
Attached Files
File Type: gz iliad.new.lib.tar.gz (7.72 MB, 375 views)

Last edited by ericshliao; 04-13-2009 at 03:41 AM.
ericshliao is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search for phases in the lib. adun Calibre 1 10-14-2010 05:30 PM
D-Lib Magazine Nate the great News 0 01-20-2010 09:48 AM
Not loading - AttributeError: /usr/bin/python: undefined symbol: FcPatternBuild k8oylos Calibre 3 04-09-2009 07:46 PM
More flexibility in lib organization JeffElkins Calibre 10 10-18-2008 09:32 PM
PRS-500 Is there java lib to create simple LRF? ns66 Sony Reader Dev Corner 20 08-13-2007 10:16 AM


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


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