Then, download dvulibre from here http://djvu.sourceforge.net/.
$ cd Desktop $ open http://ftp.gnu.org/gnu/wget/wget-1.13.tar.gz $ tar xzvf wget-1.13.tar.gz $ cd wget-1.13 $ ./configure --without-ssl $ make $ sudo make install $ cd .. $ wget http://www.ijg.org/files/jpegsrc.v8c.tar.gz $ tar xzvf jpegsrc.v8c.tar.gz $ cd jpeg-8c/ $ ./configure $ make $ sudo make install $ cd .. $ wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz $ tar xzvf pkg-config-0.25.tar.gz $ cd pkg-config-0.25 $ ./configure $ make $ sudo make install $ cd .. $ wget http://downloads.sourceforge.net/djvu/djvulibre-3.5.24.tar.gz $ tar xzvf djvulibre-3.5.24.tar.gz $ cd djvulibre-3.5.24 $ ./configure $ make $ sudo make install $ cd ..Then download QT4 (google search term is "downloading qt4") and install it. It's a standard package for mac and so there is no need to do it from terminal.
DJVIEW 4 can be downloaded from http://djvu.sourceforge.net/djview4.html.
$ wget http://downloads.sourceforge.net/djvu/djview-4.8.tar.gz $ tar xzvf djview-4.8.tar.gz $ cd djview-4.8 $ ./configure QMAKE=$HOME/QtSDK/Desktop/Qt/473/gcc/bin/qmake $ make $ sudo make install $ cd .. $ djview filename.djvuYou should see a window opening with your ebook on it. I needed to install this to read one of the ebooks I found online.
Note: Always, don't go for latest versions. Most of the time they are unstable and don't work well. Just go for the version just before the latest. For example, I had problems with pkg-config latest version 0.26. But 0.25 worked beautifully without any problems. For some reason djviewlibre didn't work with tiff library. I didn't have time to fix that either. So I used ./configure --without-tiff and it worked for me. I didn't install pdflib too. But the minimum works for me well.
1 comment:
It doesn't work anymore... There is a conflict with the new QT4.8. To solve it one has to replace all the occurrence of 'swap' in qdjvuwidget.cpp with anything else (ex. swapNEW).
Moreover djview has to be configured with
/configure --disable-nsdejavu \
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
QMAKE=/Developer/Tools/Qt/qmake \
QMAKESPEC=macx-g++
(or eventually QMAKESPEC=mac-xcode)
It makes an executable for the /Applicaiton folder.
(now it compiles with jpeg, zlib, tiff and pdflib)
Thanks for this post,
Marcello
Post a Comment