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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 02-02-2010, 01:30 AM   #1
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Difference between emulator and real device (developing uds plugin for djvu)

Hi, I have made an UDS plugin for displaying DjVu files. It seems to work quite well in the emulator, so I'd like to try it on my real DR1000.

The attachment contains a package with installation scripts. On the emulator (tested with 1.6 and 1.7), these work fine. The djvu extension is registered and djvu files can be opened. (the mobipocket plugin is removed because it interferes with opening djvu files, it complains about corrupt files).

On my real DR1000, the install script seem to copy the files to the correct locations, but the plugin does not work, djvu files don't load at all. The icons for the djvu files also don't show up, although the device does seem to recognize the extension.

What could be wrong? Is there some way to get more debugging output from a real DR1000?

Last edited by luite; 03-03-2010 at 08:48 PM. Reason: Removed attachment: download version 0.2 instead
luite is offline   Reply With Quote
Old 02-02-2010, 10:23 AM   #2
Gertjan
IRX developer
Gertjan doesn't litterGertjan doesn't litterGertjan doesn't litter
 
Gertjan's Avatar
 
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
Welcome luite. A custom viewer, that's a nice project!

There should be very little difference between the emulator and the real device except for hardware related stuff. I can't think of anything that is relevant to UDS plugins.

I've tried your plugin but it does not load on my emulator. Installation seems fine, but UDS fails saying "Error create library for /usr/lib/uds/libuds-plugin-djvu.so". Although "create_plugin_library" returns without error, calls to the plugin library fail. Are you sure the zip contains the same binary which worked on your emulator?
Gertjan is offline   Reply With Quote
Old 02-02-2010, 10:50 AM   #3
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
I have already found the problem and have viewed the first DjVu files on my reader. It seems to be much faster than the PDF viewer.

I had forgotten to remove the GConf configuration that caused CTB to be trying to load evince instead of my new plugin (took me a while to figure out, I tarred the whole / filesystem onto my SD card, then extracted it over an emulator image, and then copied /etc/network/* and /etc/hostname back from the original development image). After a rm -rf /home/root/.gconf it worked fine.

I'll first reinstall the firmware (1.7.1) on my DR1000 and then test some more, to make sure I haven't forgotten to include anything. Is it correct to assume that all files in / are replaced by a firmware update, except /home/root ?
luite is offline   Reply With Quote
Old 02-02-2010, 11:11 AM   #4
Gertjan
IRX developer
Gertjan doesn't litterGertjan doesn't litterGertjan doesn't litter
 
Gertjan's Avatar
 
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
Quote:
Originally Posted by luite View Post
Is it correct to assume that all files in / are replaced by a firmware update, except /home/root ?
Yes, that's correct.

By the way, to remove spurious/broken gconf entries you can conveniently use the "reset to factory defaults" button in the Settings/SD card page.
Gertjan is offline   Reply With Quote
Old 02-02-2010, 11:32 AM   #5
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
I have just reinstalled 1.7.1 on my reader and extracted the contents of the attached file to the root of my SD card. (the binaries are all the same as the previous version, I added a gconf reset script and may have changed some small things in the install scripts).

I then executed:
- Reset GConf Settings
- Install DjVu Plugin

now I can view DjVu files. Annotations work too.

After I have done a bit more testing myself, I'll open another thread to ask for more testing. I'll also post the source code shortly (It's 99% based on the PDF plugin and it inherits its features like prerendering and caching, that's why it only took me two days to write (although not all features have been implemented yet, see below))

What works (most of the features are provided by UDS, so come 'free' for all plugins):
- zooming, hide margins, rotation (as with PDF, hide margins is slower, it's best to manually select the crop region), selection zoom/panning, full screen
- annotations
- prerendering/caching
- bookmarks, thumbnails

what doesn't:
- searching (it will never return any results)
- table of contents

Steps to get it running in the emulator:
- start ith a clean image: poky-image-ion-devel-qemuarm-20090819075310.rootfs.exts
- start poky-qemu
- log in via ssh (ssh root@192.168.7.2 )
# mkdir /media/mmcblk0p1
# cd /media/mmcblk0p1
# scp user@host<img src="http://s.mobilere...Plugin-0.1.zip .
# scp user@host:test.djvu .
# unzip DjVu-Plugin-0.1.zip
# /etc/init.d/xserver-nodm restart
- execute Documents/Programs/Install/Install DjVu Plugin
- virtual machine reboots, restart QEMU
- open Documents/test.djvu
- enjoy
- report any bugs

Last edited by luite; 03-03-2010 at 08:49 PM. Reason: Removed attachment
luite is offline   Reply With Quote
Old 02-02-2010, 11:35 AM   #6
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by Gertjan View Post
Yes, that's correct.

By the way, to remove spurious/broken gconf entries you can conveniently use the "reset to factory defaults" button in the Settings/SD card page.
Ah thanks, I'll remove the reset gconf script in the next version and add a comment in the installation notes.
luite is offline   Reply With Quote
Old 03-03-2010, 12:56 PM   #7
SlawekC
Member
SlawekC began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2010
Device: iREX DR800S
Do you think about running your plug-in on DR800?
SlawekC is offline   Reply With Quote
Old 03-03-2010, 08:55 PM   #8
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
I've been rather busy lately, so I haven't had much time to work on the plugin. I do plan to support the DR800 but it could take a few more weeks. It shouldn't be too hard to port, but some of the interfaces need to be updated.

By the way, I deleted the attachments in this thread because they were for a very old version, with the old installation scripts. If you have a DR1000 and want to download the DjVu plugin, please go here: http://www.mobileread.com/forums/showthread.php?t=73790
luite 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
DjVu Plugin for DR1000 - version 0.2 luite iRex 30 10-18-2010 03:49 PM
DR1000 Chinese Vertical Layout uds plugin plaintext Release spuggy iRex 4 09-18-2010 02:00 PM
Wanted: DjVu Plugin for DR800 martienne iRex 14 06-07-2010 05:57 PM
DjVu plugin for DR1000 (testers wanted) luite iRex 42 02-13-2010 02:19 PM
Developing a plugin on osx 10.5 macuser15905 Plugins 2 08-28-2009 03:54 PM


All times are GMT -4. The time now is 03:55 AM.


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