Register Guidelines E-Books Search Today's Posts Mark Forums Read

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, 04:06 AM   #1
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
How to replace /usr/lib?

Now, I have my ported and homebrew apps running with GTK+2.14.7 working on iLiad. But contentlister and ipdf still running with GTK+2.6. I am contemplating replacing the whole X and GTK+ in /usr/lib so that only one set of GTK+ running on my iLiad.
I have done a unsuccessful preliminary trial. Everything happened on my bootable cf, so it's safe to do everything.

Any suggestions, tips, hints, advice is welcome.

Last edited by ericshliao; 04-10-2009 at 04:18 AM.
ericshliao is offline   Reply With Quote
Old 04-10-2009, 06:53 AM   #2
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
Now, I have my ported and homebrew apps running with GTK+2.14.7 working on iLiad. But contentlister and ipdf still running with GTK+2.6. I am contemplating replacing the whole X and GTK+ in /usr/lib so that only one set of GTK+ running on my iLiad.
I have done a unsuccessful preliminary trial. Everything happened on my bootable cf, so it's safe to do everything.

Any suggestions, tips, hints, advice is welcome.
Can you be a bit more specific? What have you tried? what fails?
  • I don't see why upgrading X is meaningful
  • I would guess that replacing gtk/gdk/glib/atk/pango/??? with modern ones will work more or less... Is that what you tried on your cf?
  • Maybe it is necessary to rebuild the existing Iliad app against the new libraries?
Keep in mind that for the 'official Iliad os' it still is important to minimize memory usage (and those libraries ARE loaded in ram!)

PS: Some time ago, I managed to build recent versions of most of the gnome libs with the Irex SDK. I did not test them (other priorities: Lua with Gtk bindings). It is important to have a compatible set. (eg: a new gtk wil not work with an old glib). So you will probably need to replace them all at the same time...

Last edited by hansel; 04-10-2009 at 06:58 AM.
hansel is offline   Reply With Quote
 
Enthusiast
Old 04-10-2009, 07:05 AM   #3
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Sorry for not providing specific description about what I want.
I asked the question in broad and obscure scope because I don't know exactly how to do it systematically and reasonablly and I thought maybe people know Linux better can give me some insight.

I have removed some files in /usr/lib and put my ported libs in /usr/local/lib. Here is the list of libs removed from /usr/lib. X-related libs are not touched. I put newer GTK+ libs in /usr/local/lib.
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

Actually, I don't know which lib is replacable and which is not. So I did this by trial and error. I will try to only replace GTK+ related libs (including glib, pango, cairo,...) and leave X-related lib untoched. Thanx for your advice.

Last edited by ericshliao; 04-10-2009 at 08:22 AM.
ericshliao is offline   Reply With Quote
Old 04-10-2009, 07:11 AM   #4
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Another question:
I campared the size of original libs and my ported shared object and found that original libs are much more small. I don't know the reason. Did iRex rip some unneeded code to make it smaller? Or did irex stripped the shared objects?
ericshliao is offline   Reply With Quote
Old 04-10-2009, 07:57 AM   #5
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
My current status is:
As iLiad boot from cf, the default screen showed up, the progress bar gradually turned from black to white cell by cell. Then screen refreshed to all white, and after about 5 second, iLiad rebooted again from rom on device, not cf. Any way to know what happenedin the process?

Added:
I know GTK+ depends on certain version glib, cairo, pango.... When I did the test, I replaced them all.

Last edited by ericshliao; 04-10-2009 at 08:23 AM.
ericshliao is offline   Reply With Quote
Old 04-10-2009, 09:37 AM   #6
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Hmm... I don't know enough at this stage to be able to troubleshoot your boot process, but re: the size of the libs, I guarantee that the iRex libs have been stripped as much as possible...

This is a great idea, and I think there are actually some milestones in iLiadOS related to updating the libraries.
jharker is offline   Reply With Quote
Old 04-10-2009, 09:55 AM   #7
Antartica
Evangelist
Antartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-books
 
Posts: 415
Karma: 754
Join Date: Jun 2006
Location: Madrid, Spain
Device: iliad, onhandpc, newton, zaurus
Quote:
Originally Posted by ericshliao View Post
Another question:
I campared the size of original libs and my ported shared object and found that original libs are much more small. I don't know the reason. Did iRex rip some unneeded code to make it smaller? Or did irex stripped the shared objects?
I presume that irex stripped the shared libraries.

And about how to proceed to find your current problem, the first thing to watch is that you have all the needed libraries for every app.

You can use scratchbox' ldd script in the iliad for that, just copy it over. It can help you with your library woes.

Try this (after copying the ldd script to the CF's /usr/bin):

1. In the CF leave irex' /usr/lib as-is, an put your recompiled libraries in /usr/mylib

2. Start the iliad and open an ssh session to it

3. setup LD_LIBRARY_PATH to your library dir and test that all programs find all the required libraries (if a library is not found it says just that; so you can grep directly for it):
Code:
# export LD_LIBRARY_PATH=/usr/mylib
# ldd /usr/bin/contentLister
# ldd /usr/bin/contentLister | grep ound
You can batch-test all binaries with something like this:

Code:
# for i in /usr/bin/* ; do echo [$i] ; ldd "$i" | grep ound ; done
That is only to test for missing ones. if you know the ones you want to delete, you can redirect the list to a file and grep for them (one after another) later:

Code:
# for i in /usr/bin/* ; do echo [$i] >> /tmp/lddlist.txt ; ldd "$i">> /tmp/lddlist.txt; done
# for i in `cat /tmp/list_of_libs_i_ll_delete.txt` ; do grep $i /tmp/lddlist.txt ; done
P.S.: for more information about ldd, see this post: http://www.mobileread.com/forums/sho...2&postcount=19

Last edited by Antartica; 04-10-2009 at 10:02 AM.
Antartica is offline   Reply With Quote
Old 04-10-2009, 10:59 AM   #8
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
How to debug library dependencies

This discussion is getting interesting!

You can check what libraries are found, missing, etc directly on the Iliad by running the dynamic linker (/lib/ld-linux.so.2) on an executable or library. It also shows you the effect of LD_LIBRARY_PATH and /etc/ld.so.conf. This will show you which libraries are REALLY used... It a great tool when debugging library issues.

You can run it like so:

Code:
root@ereader:~# /lib/ld-linux.so.2 --list /usr/bin/contentLister 
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x40002000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x402e6000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x4036a000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x4038d000)
	libm.so.6 => /lib/libm.so.6 (0x403ab000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40458000)
	libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40466000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x40478000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x404b2000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x404e6000)
	libdl.so.2 => /lib/libdl.so.2 (0x404f1000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x404fc000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40508000)
	liberlog.so.1 => /usr/lib/liberlog.so.1 (0x40579000)
	liberregxml.so.0 => /usr/lib/liberregxml.so.0 (0x40584000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x405a4000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x406b1000)
	libz.so.1 => /usr/lib/libz.so.1 (0x4070b000)
	liberipc.so.0 => /usr/lib/liberipc.so.0 (0x40724000)
	liberdm.so.2 => /usr/lib/liberdm.so.2 (0x40734000)
	libergtk.so.0 => /usr/lib/libergtk.so.0 (0x40740000)
	libermanifest.so.0 => /usr/lib/libermanifest.so.0 (0x40750000)
	libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x4075c000)
	libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40791000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4088c000)
	libc.so.6 => /lib/libc.so.6 (0x40895000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x409a2000)
	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x40a90000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x40ae4000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x40aef000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0x40b06000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40b20000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40b84000)
	libXfixes.so.0 => /usr/lib/libXfixes.so.0 (0x40bb6000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x40bc2000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x40bd2000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40be2000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
	libXau.so.0 => /usr/lib/libXau.so.0 (0x40c0d000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x40c17000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x40c22000)
	libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40c3d000)
or so:
Code:
root@ereader:~# /lib/ld-linux.so.2 --list /usr/lib/libatk-1.0.so.0    
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40025000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4005a000)
	libdl.so.2 => /lib/libdl.so.2 (0x40065000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40070000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x400e1000)
	libc.so.6 => /lib/libc.so.6 (0x400ea000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
hansel is offline   Reply With Quote
Old 04-11-2009, 02:59 AM   #9
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I recompiled glib-2.20.1, gtk+-2.14.7, pango-1.22.4, cairo1.8.6, atk1.26.0 on iRex SDK. X-relatd libs were not altered. I removed old gtk libs from /usr/lib and put newly built libs in /usr/local/lib. Still out of luck. No successful boot.
I am sure these gtk libs are working. Because I can execute my homebrew apps (using api not supported by old gtk) on iLiad when I put them in MMC/SC.

For those who want a try, I attached the whole gtk-related libs that was built by iRex SDK. After downloaded, remove the extension ".rar". Please create a bootable CF and do the experiement on the CF.

Added:
This package is not complete. Don't download this package. There is a complete one in the thread behind.
Attached Files
File Type: rar usr.local.tar.bz2.rar (14.65 MB, 172 views)

Last edited by ericshliao; 04-11-2009 at 10:40 AM.
ericshliao is offline   Reply With Quote
Old 04-11-2009, 04:41 AM   #10
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 am sure these gtk libs are working. Because I can execute my homebrew apps (using api not supported by old gtk) on iLiad when I put them in MMC/SC.
Did you try to run the Irex apps with your new libs? (eg: ssh, point LD_LIBRARy_PATH to the new libs, run contentlister). This might give some clues...

Or try: export LD_LIBRARY_PATH=<your new libs>; /lib/ld-linux.so.2 --list /usr/bin/contentLister. This might show some problems...
Quote:
Still out of luck. No successful boot.
Any idea what goes wrong? Might be handy to log things that happen in start.sh
Quote:
Please create a bootable CF and do the experiment on the CF.
I have no spare cf right now... B.t.w did you manage to make a bootable cf based on you current Iliad, or do you still use the image form Irex?

Good luck!!!

Last edited by hansel; 04-11-2009 at 04:51 AM.
hansel is offline   Reply With Quote
Old 04-11-2009, 06:21 AM   #11
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Hansel, I'll try your suggestion later.
Until now, I still don't know how to diagnose the problem. I believe the boot process failed during running start.sh. But I don't know how to log the output of start.sh.

I made a bootable cf first by dd from irex app.image, then I copied some files on my iLad to cf. So, my bootable cf is nearly identical to my iLiad. Then I use resize2fs to expand filesystem from 76mb to 128mb so that it can contain new libs.

If I want to try to execute newlister with new gtk libs, where should I insert the line that you suggested. I looked in "start.sh", there is:
Code:
#CONTENTLISTER: (/usr/bin/contentLister --sync ; reboot) &
if [ -x /usr/bin/newLister ]; then                           #NEWLISTER
  (/usr/bin/newLister --items 12 --sync ; reboot) &          #NEWLISTER
else                                                         #NEWLISTER
  (/usr/bin/contentLister --sync ; reboot) &                 #NEWLISTER
fi                                                           #NEWLISTER
I replaced it with:
Code:
  (export LD_LIBRARY_PATH=<your new libs>; /lib/ld-linux.so.2 --list /usr/bin/newLister --items 12 --sync ; reboot) &          #NEWLISTER
I will post the result later.

Last edited by ericshliao; 04-11-2009 at 06:38 AM.
ericshliao is offline   Reply With Quote
Old 04-11-2009, 07:20 AM   #12
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
Sorry for not being very clear... What I mean, as test, is this:

Put your new gtk libs somewhere on the cf, say /mnt/cf/newlibs/
Boot your Iliad in the normal way
Start a ssh to your Iliad an type:
Code:
export DISPLAY=:0.0
LD_LIBRARY_PATH=/mnt/cf/newlibs
/lib/ld-linux.so.2 --list /usr/bin/contentLister
Just to be clear: '/lib/ld-linux.so.2 --list' is an equivalent to the ldd command mentioned by Antartica. It shows what shared libs an executable loads.

If this shows no errors, you can try:
Code:
/usr/bin/contentLister
This will try to run contentLister linked to your new libs... You can use this approach to check all Irex programs (like /usr/bin/displayMgr, /usr/bin/erbusyd, etc) mentioned in start.sh (or your copy thereof)

What I meant by 'logging what happens in start.sh' is this:

At the begin of start.sh add: echo `date` >$HOME/mylog.txt
and after each command in start.sh add: echo "some descriptive text" >> $HOME/mylog.txt

This will result in a file that tells you how far the boot script goes before crashing

Last edited by hansel; 04-11-2009 at 07:25 AM.
hansel is offline   Reply With Quote
Old 04-11-2009, 08:11 AM   #13
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
Eric, some more info...
I copied your libs to my cf (in /mnt/cf/eric/usr/local/....), set LD_LIBRARY_PATH to /mnt/cf/eric/usr/local/lib. The libraries can be found and loaded. Remark: it still uses the original libpangox. This shoul be no problem, but show nicely that /lib/ld-linux.so.2 --list is a great tool :-)


Code:
root@ereader:/media/cf/eric# /lib/ld-linux.so.2 --list /usr/bin/contentLister 
	libgtk-x11-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgtk-x11-2.0.so.0 (0x40000000)
	libgdk-x11-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgdk-x11-2.0.so.0 (0x40392000)
	libatk-1.0.so.0 => /mnt/cf/eric/usr/local/lib/libatk-1.0.so.0 (0x40422000)
	libgdk_pixbuf-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgdk_pixbuf-2.0.so.0 (0x40445000)
	libm.so.6 => /lib/libm.so.6 (0x40467000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40514000)
	libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40522000)
	libpango-1.0.so.0 => /mnt/cf/eric/usr/local/lib/libpango-1.0.so.0 (0x40534000)
	libgobject-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgobject-2.0.so.0 (0x4057e000)
	libgmodule-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgmodule-2.0.so.0 (0x405c5000)
	libdl.so.2 => /lib/libdl.so.2 (0x405d0000)
	libgthread-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgthread-2.0.so.0 (0x405db000)
	libglib-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libglib-2.0.so.0 (0x405e7000)
	liberlog.so.1 => /usr/lib/liberlog.so.1 (0x406bf000)
	liberregxml.so.0 => /usr/lib/liberregxml.so.0 (0x406ca000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ea000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x407f7000)
	libz.so.1 => /mnt/cf/eric/usr/local/lib/libz.so.1 (0x40851000)
	liberipc.so.0 => /usr/lib/liberipc.so.0 (0x4086d000)
	liberdm.so.2 => /usr/lib/liberdm.so.2 (0x4087d000)
	libergtk.so.0 => /usr/lib/libergtk.so.0 (0x40889000)
	libermanifest.so.0 => /usr/lib/libermanifest.so.0 (0x40899000)
	libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x408a5000)
	libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x408da000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409d5000)
	libc.so.6 => /lib/libc.so.6 (0x409de000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x40aeb000)
	libpangocairo-1.0.so.0 => /mnt/cf/eric/usr/local/lib/libpangocairo-1.0.so.0 (0x40bd9000)
	libXau.so.0 => /usr/lib/libXau.so.0 (0x40bec000)
	libXfixes.so.0 => /usr/lib/libXfixes.so.0 (0x40bf6000)
	libcairo.so.2 => /mnt/cf/eric/usr/local/lib/libcairo.so.2 (0x40c02000)
	libgio-2.0.so.0 => /mnt/cf/eric/usr/local/lib/libgio-2.0.so.0 (0x40c80000)
	libpangoft2-1.0.so.0 => /mnt/cf/eric/usr/local/lib/libpangoft2-1.0.so.0 (0x40cf2000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40d22000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40d86000)
	libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40db8000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x40ddd000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x40df4000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x40e05000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0x40e15000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
	librt.so.1 => /lib/librt.so.1 (0x40e2e000)
	libpixman-1.so.0 => /mnt/cf/eric/usr/local/lib/libpixman-1.so.0 (0x40e49000)
	libpng12.so.0 => /mnt/cf/eric/usr/local/lib/libpng12.so.0 (0x40e83000)
I can even start contenlister with the new libs, but text and icons are not shown because gtk is configured to look in /usr/local/... while my files are in /mnt/cf/eric/... I don't want to mess up my /usr/local directory, so here is where my tests stop...

Code:
(contentLister:763): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/local/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory
(CL_E)gtkErrorScreen.c:239,error_screen_init_images() ctrlWarningIcon - error Couldn't recognize the image file format for file '/usr/share/contentlister/Warning.png'

<lots of warnings>

Last edited by hansel; 04-11-2009 at 08:17 AM.
hansel is offline   Reply With Quote
Old 04-11-2009, 08:16 AM   #14
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I got the following output. Anything wrong?
Code:
root@ereader:~# export LD_LIBRARY_PATH=/mnt/cf/usr/_local/lib
root@ereader:~# /lib/ld-linux.so.2 --list /usr/bin/contentLister
        libgtk-x11-2.0.so.0 => /mnt/cf/usr/_local/lib/libgtk-x11-2.0.so.0 (0x40000000)
        libgdk-x11-2.0.so.0 => /mnt/cf/usr/_local/lib/libgdk-x11-2.0.so.0 (0x40392000)
        libatk-1.0.so.0 => /mnt/cf/usr/_local/lib/libatk-1.0.so.0 (0x40422000)
        libgdk_pixbuf-2.0.so.0 => /mnt/cf/usr/_local/lib/libgdk_pixbuf-2.0.so.0 (0x40445000)
        libm.so.6 => /lib/libm.so.6 (0x40467000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40514000)
        libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40522000)
        libpango-1.0.so.0 => /mnt/cf/usr/_local/lib/libpango-1.0.so.0 (0x40534000)
        libgobject-2.0.so.0 => /mnt/cf/usr/_local/lib/libgobject-2.0.so.0 (0x4057e000)
        libgmodule-2.0.so.0 => /mnt/cf/usr/_local/lib/libgmodule-2.0.so.0 (0x405c5000)
        libdl.so.2 => /lib/libdl.so.2 (0x405d0000)
        libgthread-2.0.so.0 => /mnt/cf/usr/_local/lib/libgthread-2.0.so.0 (0x405db000)
        libglib-2.0.so.0 => /mnt/cf/usr/_local/lib/libglib-2.0.so.0 (0x405e7000)
        liberlog.so.1 => /usr/lib/liberlog.so.1 (0x406bf000)
        liberregxml.so.0 => /usr/lib/liberregxml.so.0 (0x406ca000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ea000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x407f7000)
        libz.so.1 => /mnt/cf/usr/_local/lib/libz.so.1 (0x40851000)
        liberipc.so.0 => /usr/lib/liberipc.so.0 (0x4086d000)
        liberdm.so.2 => /usr/lib/liberdm.so.2 (0x4087d000)
        libergtk.so.0 => /usr/lib/libergtk.so.0 (0x40889000)
        libermanifest.so.0 => /usr/lib/libermanifest.so.0 (0x40899000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x408a5000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x408da000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409d5000)
        libc.so.6 => /lib/libc.so.6 (0x409de000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x40aeb000)
        libpangocairo-1.0.so.0 => /mnt/cf/usr/_local/lib/libpangocairo-1.0.so.0 (0x40bd9000)
        libXau.so.0 => /usr/lib/libXau.so.0 (0x40bec000)
        libXfixes.so.0 => /usr/lib/libXfixes.so.0 (0x40bf6000)
        libcairo.so.2 => /mnt/cf/usr/_local/lib/libcairo.so.2 (0x40c02000)
        libgio-2.0.so.0 => /mnt/cf/usr/_local/lib/libgio-2.0.so.0 (0x40c80000)
        libpangoft2-1.0.so.0 => /mnt/cf/usr/_local/lib/libpangoft2-1.0.so.0 (0x40cf2000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40d22000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40d86000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40db8000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x40ddd000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x40df4000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x40e05000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x40e15000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
        librt.so.1 => /lib/librt.so.1 (0x40e2e000)
        libpixman-1.so.0 => /mnt/cf/usr/_local/lib/libpixman-1.so.0 (0x40e49000)
        libpng12.so.0 => /mnt/cf/usr/_local/lib/libpng12.so.0 (0x40e83000)
ericshliao is offline   Reply With Quote
Old 04-11-2009, 08:21 AM   #15
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: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by hansel View Post
Code:
(contentLister:763): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/local/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory
(CL_E)gtkErrorScreen.c:239,error_screen_init_images() ctrlWarningIcon - error Couldn't recognize the image file format for file '/usr/share/contentlister/Warning.png'

<lots of warnings>
I think I can fix the problem. It's /etc/gtk-2.0 and /etc/pango.

Added:
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.

Last edited by ericshliao; 04-11-2009 at 08:29 AM.
ericshliao is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:26 AM.


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