Help - Search - Members - Calendar
Full Version: Opie-Reader (vC & E) will not load
OESF Forums > General Forums > General Support and Discussion > Software
bajjer31
Hello,

I am having a problem running Opie-Reader on my SL5500 with the Sharp 3.1 ROM. I have run the reader before, and was switching back and forth between it and justreader. I want to give opiereader another try, but it will not start up for some reason. When selecing the icon from the menu, it 'clicks' but eventually goes away, loading nothing. When running uqtreader from a command prompt, it gives me a dependency error saying it cannot find libreader_codec.so.1 --> which the output of find / -name shows to be in /home/QtPalmtop/lib/. Any ideas?

Thanks,
Bill

Update - I uninstalled ve, installed version'd' -- this version will run if started from a terminal (uqtreader with user Zaurus (not root), but will not start from the launcher. Just curious if this is proper behavior. Thanks again!
bajjer31
I fixed it! For future information, if this is a problem for someone else, I had to chown 501:501 uqtreader, chmod a+x uqtreader, and it now works. Sorry for the elementary problem smile.gif
TimW
Hi Bill, I'm the opie-reader developer and I have only heard of one other user with the same "starts from terminal but not from gui" problem. I think it may have been due to some issues with installing to CF but from what you say it seems to be a permissions problem.

I'm not exactly a Linux guru (I finally managed to get my first ever debian install working last night) so could you explain roughly what the consequences of what you did are so that I can try and fix the problem (eg is user 501 "zaurus"?). Unfortunately I can't run ROM 3.1 because Sharp haven't released a version for the SL5000D so these issues tend to be opaque to me (wonder if Sharp will ever support us developers again?).

BTW If I'm anywhere near understanding correctly, the same fix ought to work for version e as well. For the other user with this problem, I ended up supplying a version with all the codecs compiled into the app. If anyone wants one of those, let me know - it'll be from the tips of my development tree so isn't ready for general release but it is good enough for most use.
bajjer31
QUOTE
Hi Bill, I'm the opie-reader developer and I have only heard of one other user with the same "starts from terminal but not from gui" problem.


I saw how helpful you had been in the past, so I wanted to give your reader another go, not to mention the good reviews it has received. It was worth it - really a nice reader! Ebook reading is one of the main things that is a 'must have' for me in a handheld.

QUOTE
I think it may have been due to some issues with installing to CF but from what you say it seems to be a permissions problem.


You may be correct, as mine is installed to the SD card. I found out, when running from the terminal, it would start if I was the default user (Zaurus in the 3.1 ROM), but I would get the libreader_codec.so.1 error when trying to start as root. Therefore, I did ls -l to find out what other options for users I had, and saw one that was 501:501 (user:group). So, tinkering, I chown 501:501 uqtreader. This seemed to fix it intermittantly (initially it worked, now it doesn't). A more permanent fix was to create a script (that I called uqtread.sh):
#!/bin/sh
uqtreader &

Then I chmod a+x uqtread.sh; chown 501:501 uqtread.sh. Then, under the 'Tab Settings' option from the gui, I changed Opie-Reader to launch 'uqtread.sh' rather than 'uqtreader'. This works every time. No idea why or how smile.gif I'll keep tinkering with it as the product is worth the effort.

QUOTE
BTW If I'm anywhere near understanding correctly, the same fix ought to work for version e as well. For the other user with this problem, I ended up supplying a version with all the codecs compiled into the app. If anyone wants one of those, let me know - it'll be from the tips of my development tree so isn't ready for general release but it is good enough for most use.


I believe one of the 2 fixes should work for the other user with the problem. If I find a cleaner fix, I'll let you know. Thanks for your help, and please continue the good work smile.gif

Thanks,
Bill
TimW
QUOTE
No idea why or how

Phew, I'm glad you said that 8^). I was thinking maybe it was just me 8^).

Could this be something to do with LD_LIBRARY_PATH (I think that is what it is called). Maybe the loading of dynamic libraries requires an environment variable to be set which is set correctly when you sh something, or execute it from the console, but which is set incorrectly (or not at all) when you use the gui?

libreader_codec has to live somewhere on the dynamic loader path and I guessed that $QTDIR/lib would be a good place. If this is the cause, have you any idea where I should put it instead?

PS if you get fed up tinkering, just ask me for the "all in one" version which will avoid this problem.
bajjer31
I'd love to try the "all in one" version if you don't mind. I can get uqtreader to load everytime when calling it from a script, but only intermittent when executing the pgm uqtreader. I don't know why, but if I can chown it to something other than root:root (i.e. 501:501, zaurus:qpe), it seems to work the 1st time, but not after. I tried uninstalling from the SD card, and installing in RAM, but am having the same results. Is the "all in one" available from your site? Feel free to either PM or email me: bill@thejonesnetwork.net

Thanks,
Bill
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.