Not compiling

42 views
Skip to first unread message

guna

unread,
May 12, 2011, 8:47:21 AM5/12/11
to DroidReader Developer List
Today, I just get the source from the SVN and tried compiling using
the NDK. But it didn't. Seems to be lot of jni codes are missing.
mupdf folder inside the jni doesn't contains much code.
Is the problem is there? I need the full source to run this
droidreader. Where can I get that?

Thanks,
Guna

Hans-Werner Hilse

unread,
May 12, 2011, 8:54:05 AM5/12/11
to droidreader-d...@googlegroups.com
Hi,

check the README, you need to copy in the sources of the third-party libraries.

However, I still did not find much quiet time to get back to work on
the software. It got a little bit left behind, lately. Also note that
newer muPdf sources do contain an Android client on their own! But I
didn't even find time to have a closer look at that. But you might
find that interesting, too.

-hwh

2011/5/12 guna <guna...@gmail.com>:

yaturner

unread,
Jun 4, 2011, 10:03:37 AM6/4/11
to DroidReader Developer List
where is the correct place to get the library sources, I used

svn checkout http://droidreader.googlecode.com/svn/trunk/ libjpeg-read-
only
svn checkout http://droidreader.googlecode.com/svn/trunk/ mupdf-read-
only

etc.

Are these the correct versions of the code?

Hans-Werner Hilse

unread,
Jun 4, 2011, 11:07:02 AM6/4/11
to droidreader-d...@googlegroups.com
Hi,

I think you'll have to check out the sources from the original
upstream projects. Check out a release that roughly matches the
release date of the droidreader version you're using.

-hwh

2011/6/4 yaturner <thursd...@gmail.com>:

Paul Sokolovsky

unread,
Jun 11, 2011, 6:37:26 PM6/11/11
to DroidReader Developer List
Hello,

On Jun 4, 6:07 pm, Hans-Werner Hilse <hwhi...@googlemail.com> wrote:
> Hi,
>
> I think you'll have to check out the sources from the original
> upstream projects. Check out a release that roughly matches the
> release date of the droidreader version you're using.

It's much easier to say, than to do. Whoever will try that, will need
to wade thru things like:

(in mupdf git clone, because stuff at http://code.google.com/p/mupdf/downloads/list?q=source
of course doesn't build for long time):

commit b1d837f84cbbaac4bf8362d7a2ca7dd0e4b7f8c1
Author: Tor Andersson <t...@ghostscript.com>
Date: Sun Apr 11 18:54:28 2010 +0200

Rename fz_irect to fz_bbox.

diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c
index 90d69a6..551c34c 100644
--- a/apps/mozilla/moz_main.c
+++ b/apps/mozilla/moz_main.c
@@ -72,7 +72,7 @@ void pdfmoz_open(pdfmoz_t *moz, char *filename)
SCROLLINFO si;
fz_error error;
fz_obj *obj;
- fz_irect bbox;
+ fz_bbox bbox;
int rot;
int i;

And that's just for one of ~ dozens build errors with latest mupdf
release. Can you please update Android.mk and specify exact download/
checkout URLs with exact revisions to use?


>
> -hwh
>
> 2011/6/4 yaturner <thursdayn...@gmail.com>:

Hans-Werner Hilse

unread,
Jun 12, 2011, 5:34:17 AM6/12/11
to droidreader-d...@googlegroups.com
Hi,

I'll try to find the time, yep. With a little bit of luck, it might
even be today or tomorrow.

But I do not understand why you're looking at the changes done to
muPdf. My suggestion was merely to just look on the datestamps and
determine a roughly matching revision from that. But you're right, I
didn't try myself.

-hwh

2011/6/12 Paul Sokolovsky <pmi...@gmail.com>:

Rob Brown

unread,
Jun 12, 2011, 7:25:08 AM6/12/11
to DroidReader Developer List
Hi,

I'm a bit embarrassed - I thought that the README in the docs folder
had building instructions, but in fact all it says is "This file will
contain instructions for building DroidReader". Lame.

Here's a quick rundown. I'll try to update the README a.s.a.p. but
I've got a new daughter (4 days old!) and things are a bit fraught
right now.

OK, so get the latest source from SVN. In the docs folder there are
some scripts, which work in Linux or cygwin. Make sure they're
executable.

Make a new folder called "3rdparty" at the same level as the
droidreader sources - for example, if your base directory is /home/foo/
projects, then you should have a folder /home/foo/projects/droidreader
and another one called /home/foo/projects/3rdparty. Go into the
3rdparty folder and execute "../droidreader/docs/getdeps". This will
get the freetype, jbig2dec, mupdf, and openjpeg sources assuming that
you've got all the required source control packages installed (that
is, git, darcs, and svn). Also download the JPEG source from www.ijg.org
(version 8b, 16 May 2010) and unzip it in the same folder. Make sure
the folder for this is just called "jpeg".

Then, execute "../droidreader/docs/updatedeps ../droidreader". This
will copy the dependencies into the droidreader source.

Change into the droidreader source folder and execute "docs/buildall".
This should build droidreader and if there's a device connected or a
simulator running, it will get droidreader installed.

To update the dependencies in future, just run updatedeps, you only
need to run getdeps once. Also you can do an incremental build with
"docs/buildit" rather than buildall.

I'm sure there are pitfalls and omissions in the above, and I
apologise for that, but hopefully it will get you going.

Cheers,
Rob.
Reply all
Reply to author
Forward
0 new messages