As a replacement for my aging Zaurus, I recently got a Sharp
Netwalker. This is a neat little machine that runs Ubuntu 9.04.
However, the version I can get from the repo is quite old and does not
read ePub files properly. So I wanted to get a newer version. For
some reason, even after adding the fbreader repos to the apt sources,
the fbreader repos was still ignored and I could only get the old
version through apt-get. So I decided to complile 0.12-1 from
source. After apt-getting libz-dev, libbz2-dev and libexpat-dev, the
make process would go on for a while
Compiling ZLImageManager.o ... OK
Compiling ZLNetworkImage.o ...In file included from /media/CE-SW05/
data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/core/include/
ZLNetworkDownloadData.h:24,
from ZLNetworkImage.cpp:25:
/media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/
core/include/ZLNetworkData.h:23:23: warning: curl/curl.h: No such file
or directory
In file included from /media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/
core/../../zlibrary/core/include/ZLNetworkDownloadData.h:24,
from ZLNetworkImage.cpp:25:
/media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/
core/include/ZLNetworkData.h:43: error: ISO C++ forbids declaration of
‘CURL’ with no type
/media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/
core/include/ZLNetworkData.h:43: error: expected ‘;’ before ‘*’ token
/media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/
core/include/ZLNetworkData.h:56: error: ISO C++ forbids declaration of
‘CURL’ with no type
/media/CE-SW05/data/tmp/fbreader-0.12.1/zlibrary/core/../../zlibrary/
core/include/ZLNetworkData.h:56: error: expected ‘;’ before ‘*’ token
make[2]: *** [ZLNetworkImage.o] Error 1
make[2]: Leaving directory `/media/CE-SW05/data/tmp/fbreader-0.12.1/
zlibrary/core/src/image'
make[1]: *** [.objects] Error 1
Do you know how to fix this?
All the best,
Chris
I recommend to install all the fbreader dependencies:
1) add a line 'deb-src http://www.fbreader.org/desktop/debian stable
main' into your /etc/apt/sources.list file
2) 'apt-get update'
3) 'apt-get build-dep fbreader'
Best,
-- Nikolay
Thanks for your help. Indeed, I missed a number of the dependencies
that were mentioned only in the repository. After installing all
required packages the compilation succeeded and I have a working
FBReader now. Great!!!
All the best,
Chris