02-06-2010, 01:10 PM | #1 |
Member
Posts: 12
Karma: 26
Join Date: Jul 2009
Location: The Netherlands
Device: DR 1000S
|
Evince update attempt
Looking for a decent comics reader (cbz/cbr), as well as one capable of reading tex or postscript, I wanted to update the evince application as provided elsewhere on this forum.
Based on the build instructions there I started out to try to build the latest release possible without having to update system libraries and also without the need to use any hacks in the build system. After a lot of trial and error I have at least managed to get something to compile and run on the simulator. Unfortunately, no document opens due to an error saying the required backend component cannot be found. I've tried to solve this last issue, but I'm a bit at a loss right now as to what is causing this. Is there anyone around here who could help me with this? Here's what I managed to get going so far: The required sources are:
I'm using the vmware image as posted elsewhere in this forum. I did update the SDK to include a newer version of the SDK and had to install a few more things to get the build process completed:
Build djvulibre:
Build gnome-doc-utils:
Build icon-naming-util (dependency for gnome-icon-theme):
Build gnome-icon-theme:
Build libglade:
Build shared-mime-info
Build jpegsrc v7:
Build evince:
I copied the entire /media/mmcblk0p1/Programs/_evince dir to the simulator, ran update-mime /media/mmcblk0p1/Programs/_evince/share/mime through the ssh connection (this has to be done now, instead of at build, because we're crosscompiling; hence the disable-mimeupdate earlier) I've used the shell script from the published 0.22 package to set some environment variables (and edited it to match my stup), but so far without a positive result If anyone notices anything in the above instructions going amiss, or if anyone is willing to help me figure out what is still missing from the above, I would be much obliged. |
02-06-2010, 01:33 PM | #2 |
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Have you tried restarting the X server from the emulator ssh shell ( /etc/init.d/xserver-nodm restart ) ? You'll get more error output. You may also want to try to start evince from this shell.
By the way, what features do you need in a decent cbr/cbz reader? It seems to be a pretty simple file format, so I could probably make a new plugin for UDS in a few days, once I get the issues with the djvu plugin resolved. This will allow you to use exactly the same interface for reading comic files as for PDF files. It will also remember zoom settings and the last page. |
Advert | |
|
02-07-2010, 09:27 AM | #3 |
Member
Posts: 12
Karma: 26
Join Date: Jul 2009
Location: The Netherlands
Device: DR 1000S
|
I had not tried to restart the x-server yet, but it got me the same result when I tried it just yet.
The console gives me the following error message: root@qemuarm:/media/mmcblk0p1/Programs/_evince# bin/evince ../2001_compression_overview.djvu And when I checked, the referenced file is there. Readable and executable for the world:** (evince.bin:2004): WARNING **: /media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so: undefined symbol: g_set_error_literal ** (evince.bin:2004): WARNING **: Cannot load backend 'djvudocument' since file '/media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so' cannot be read. ** (evince.bin:2004): WARNING **: /media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so: undefined symbol: g_set_error_literal ** (evince.bin:2004): WARNING **: Cannot load backend 'djvudocument' since file '/media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so' cannot be read. root@qemuarm:/media/mmcblk0p1/Programs/_evince# ls -l /media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so My best guess is that I missed something with the environment variables (LD_LIBRARY_PATH or something like that) but after trying the usual suspects without success I'm a bit at a loss which one it could be.-rwxr-xr-x 1 root root 54716 Aug 19 10:26 /media/mmcblk0p1/Programs/_evince/lib/evince/backends/libdjvudocument.so Alternatively, it could be a linker issues, but given that it does know the right path to the requested file and can find several other dependencies, I have some doubts about this being the cause. I've put a copy of my current attempt up here (WARNING: it's >20MB and doesn't work yet!) For a comic reader I would like cbz and cbr support for containers, jpeg, png and gif for image format. cb7 and cbt would be nice to haves, as would tiff, svg and bmp. Remembering the last page read would be nice, but not a deal breaker. Image scaling only if it honours the length/width dimensions (i.e. an 100x100 px image scales to 1000x1000 not 900x1100 or somesuch because the screen isn't a square) Given that evince provides most of that (and some other interesting formats) I thought I would try to get that ported instead of writing my own app. More so because I haven't touched C in many years and didn't think writing a UDS plugin would be as easy as you make it sound like it is |
02-07-2010, 11:14 AM | #4 | ||
Connoisseur
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
|
Quote:
Quote:
|
||
02-07-2010, 12:51 PM | #5 |
Member
Posts: 12
Karma: 26
Join Date: Jul 2009
Location: The Netherlands
Device: DR 1000S
|
|
Advert | |
|
02-07-2010, 01:03 PM | #6 | |
<Insert Wit Here>
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
The good news is that a floyd-steinberg dither is actually rather easy to implement, since the description of the algorithms and sample code is floating around. It will actually be a bit easier to get working on the iRex since one of the bugs I'm facing on the desktop can only be seen on the desktop and not the iRex emulator. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Attempt to update JBL - REDUX | steven522 | Ectaco jetBook | 1 | 08-24-2010 10:57 PM |
Evince ported (with DjVu support only) | dixon | iRex | 24 | 01-27-2010 05:11 PM |
My first attempt at writing an original... | JanG | Writers' Corner | 13 | 08-11-2009 05:36 PM |
My first upload attempt | lilac_jive | Workshop | 1 | 01-17-2009 10:46 PM |
Nokia 770 - download link for evince? | KGB | Reading and Management | 12 | 10-06-2007 06:23 AM |