trying to compile fbreader 0.12.1 on Sharp netwalker

10 views
Skip to first unread message

chris

unread,
Dec 19, 2009, 11:17:34 PM12/19/09
to FBReader
Hi there,

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

geometer

unread,
Dec 20, 2009, 2:21:37 AM12/20/09
to FBReader
You also need to install libcurl-dev package.

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

chris

unread,
Dec 20, 2009, 8:17:47 AM12/20/09
to FBReader
Hi Nicolay,

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

Reply all
Reply to author
Forward
0 new messages