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 08-02-2007, 06:07 AM   #1
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
patched libX11

Hi all,

I have read about an patched libX11 several times. Can someone explain me how to use patched libraries the right way, please? And where can I find this patched libX11?

I have downloaded ted-2.17-iliad_0.2.tar.gz from http://projects.mobileread.com/iliad/users/antartica/ and found some libX* files in it. One of this files is called libX11.so.6. What I have done is: I replaced the downloaded libX11.so.6 with the one loacted in /usr/lib/ on my iLiad. Ok, this was apparent very stupid. The effect was that my iLiad didn't start. Reflashing didn't work. For my happiness a friend helped me and got my iLiad running.

So I'll be very happy if someone of you can explain me how to make this the right way. I'm right that it is better to use the patched libX11 because of the screen refreshing problem, or?
tomchek is offline   Reply With Quote
Old 08-02-2007, 06:26 AM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
You don't want to replace the iLiad's libX11 with the hacked version.

The best way to get your program to use it, is to set the LD_LIBRARY_PATH in your .sh launcher. This tells the OS to look where ever you have your program specific libraries first. Look at one of the programs I've ported for an example.
Adam B. is offline   Reply With Quote
Advert
Old 08-02-2007, 06:57 AM   #3
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
Thank you very much. You guys taught me a lot the last time.
tomchek is offline   Reply With Quote
Old 08-02-2007, 09:21 AM   #4
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Adam, what (published) ports do currently depend on the patched libX11? AbiWord? Everything?
arivero is offline   Reply With Quote
Old 08-02-2007, 09:36 AM   #5
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
All of my ports require it for one reason or another. For some, it's the only means of screen refresh. And others (like FBReader), it's used for the refresh in the menus.

It's always packaged with the programs.
Adam B. is offline   Reply With Quote
Advert
Old 08-11-2007, 05:06 AM   #6
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 arivero View Post
Adam, what (published) ports do currently depend on the patched libX11? AbiWord? Everything?
Only Scotty1024's ports , the gnuchess port (disign256's) and java apps are not using th patched libX11, AFAIK.

Putting the appropriate refresh calls in apps wth complex gtk+ interfaces is very time-consuming, and prone to errors (i.e. bit refreshing when you should have refreshed the screen).

The patched libX11 makes the display refresh automatic by monitoring when there have been commands sent to the X server (or received from it? Ups, I don't remember which function I hooked O:-) ). It tries to minimize double-refreshing by using a timeout...
Antartica is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-500 RasterFarian patched and available again! NatCh Sony Reader Dev Corner 7 05-25-2009 05:16 PM
Why haven't e-book companies patched their DRM? Robotech_Master News 41 03-03-2009 09:39 AM
iLiad libX11.so.6, auto refresh hansel iRex Developer's Corner 7 09-20-2008 08:40 AM
iLiad To Application Packagers: move hacked libX11 Adam B. iRex Developer's Corner 1 09-21-2007 06:55 AM


All times are GMT -4. The time now is 04:00 AM.


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