Bug 234732 - okular cannot open djvu files
Summary: okular cannot open djvu files
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Miscellaneous
Component: general (show other bugs)
Version: 4.4
Platform: unspecified Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-18 18:38 UTC by eric948470
Modified: 2017-03-09 18:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eric948470 2010-04-18 18:38:16 UTC
Version:           0.10 (using 4.4.00 (KDE 4.4.0), compiled sources)
Compiler:          gcc.exe
OS:                Microsoft Windows (i686) release 6.0 (Vista Home Edition)

When I try to open any pdf or djvu file, I get a dialogue box with an error messages like this : "Could not open file://F:/Courses/PHY 521/Notes/1.pdf"
Comment 1 eric948470 2010-04-18 19:38:01 UTC
Hello, I found this forum post about this problem

http://chakra-project.org/bbs/viewtopic.php?id=2294
Comment 2 eric948470 2010-04-19 08:11:23 UTC
Hello,
I also found the following post.

http://old.nabble.com/FW:-Okular-cannot-display-PDF-files-td26526044.html

Following the instructions given, I downloaded the file http://winkde.org/pub/kde/ports/win32/releases/stable/latest/openjpeg-1.3-1-bin.tar.bz2 and extracted it to the KDE installation folder. After that I could view pdf files.

But I still could not view djvu files.

I downloaded "dependancywalker" (The new GUI version) from http://www.dependencywalker.com/ , followed the instructions and added ".....\KDE\bin" to the PATH variable, and ran depends.exe for "....\KDE\lib\kde4\okularGenerator_djvu.dll". It says that the system cannot find the file "LIBDJVULIBRE.DLL".

I searched in http://winkde.org/pub/kde/ports/win32/releases/stable/latest/ for a mingw4 port of djvulibre, but couldn't find one. There was only a msvc version of djvulibre. http://winkde.org/pub/kde/ports/win32/releases/stable/latest/djvulibre-vc90-3.5.21-bin.tar.bz2 . I downloaded it, but it didn't have the above mentioned file.

Is it because of this missing file "LIBDJVULIBRE.DLL" that I cannot view djvu files? If so, from where do I get it?

Trying to get that file, I tried compiling the source of libdjvulibre in cygwin and mingw, but for some reason it doesn't compile on my system. Make gives an error and stops.
Comment 3 eric948470 2010-04-19 09:02:45 UTC
Hello again,

To find the file libdjvulibre.dll, I downloaded the DjVuLibre+DjView package from

http://sourceforge.net/projects/djvu/files/DjVuLibre_Windows/3.5.22%2B4.5/DjVuLibre%2BDjView-3.5.22%2B4.5b-Setup.exe/download

and installed it. Then I went in to the installation folder, found libdjvulibre.dll and copied it to my "....\KDE\bin" folder.

I ran dependancywalker again, and this time it indicated that another file, libjpeg.dll is missing. I found it from the DjVuLibre+DjView installation folder and copied it to "....\KDE\bin" folder, and after that dependancywalker didn't show any error. I opened Okular and discovered that I could open djvu files!

So now I can open both pdf and djvu files :) .

Could someone tell me if there is an easier procedure than this, or why weren't those files included in the KDE distribution?

Thanks
Comment 4 Pino Toscano 2010-10-11 09:40:43 UTC
For PDF documents there's bug #233626, renaming this bug for djvu files only.
Comment 5 Patrick Spendrin 2012-02-21 23:36:57 UTC
djvu files work in 4.8.0 gcc x64.