Summary: | Make V8 enabled builds work on armeabi as well as armeabi-v7a | ||
---|---|---|---|
Product: | MuPDF | Reporter: | Robin Watts <robin.watts> |
Component: | mupdf | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jackie.rosen, obsidian17 |
Priority: | P4 | Keywords: | bountiable |
Version: | master | ||
Hardware: | PC | ||
OS: | Android | ||
Customer: | Word Size: | --- |
Description
Robin Watts
2013-04-12 15:13:23 UTC
The source for the version of v8 we are using can be found here: http://git.ghostscript.com/?p=user/robin/v8.git/.git;a=shortlog;h=refs/heads/mupdf We build from the 'mupdf' branch. Built versions can be found here: http://ghostscript.com/~robin/ (see v8-3.9-*) I'd be interested to look into this. For our latest app we compiled v8 for armv6, although it was a PITA. We're on a newer v8 release though, 3.16 if I remember correctly. I'll look into it over the weekend. Brilliant! Let us know if you need any help. The easiest way to contact us with quick questions etc is usually to visit us in the #ghostscript irc channel on freenode. See mupdf.com for a link you can use in a modern browser. I can't clone the repository: #git clone http://git.ghostscript.com/user/robin/v8.git/ Cloning into 'v8'... fatal: http://git.ghostscript.com/user/robin/v8.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server? #git clone git://git.ghostscript.com/user/robin/v8.git/.git Cloning into 'v8'... fatal: remote error: access denied or repository not exported: /user/robin/v8.git/.git Am I doing something wring? I'll just build a armeabi binary from 3.9.24 if that is ok with you? (In reply to comment #4) > I can't clone the repository: > #git clone http://git.ghostscript.com/user/robin/v8.git/ > Cloning into 'v8'... > fatal: > http://git.ghostscript.com/user/robin/v8.git/info/refs?service=git-upload- > pack not found: did you run git update-server-info on the server? > #git clone git://git.ghostscript.com/user/robin/v8.git/.git > Cloning into 'v8'... > fatal: remote error: access denied or repository not exported: > /user/robin/v8.git/.git > > Am I doing something wring? I'll just build a armeabi binary from 3.9.24 if > that is ok with you? Try again now? Sorry about that. As mentioned in IRC you'll have to use a version with hardwired soft floating point (no pun intended). I built it using the build scripts from titanium, as I'm not familiar with scons. You can get the stuff from https://github.com/appcelerator/v8_titanium. I just changed the url to your v8 repository in .gitmodules, and a git submodule init git submodule update sh build_v8.sh -n PATH_TO_NDK -j8 -l armeabi -p android-8 -s sh build_v8.sh -n PATH_TO_NDK -j8 -l x86 -p android-9 -s will build everything. The output is in build/release/libs. If you want to build the shell demo app, go into the v8 subfolder, and run ../build/ndk_toolchain/bin/i686-linux-android-g++ -DANDROID ./samples/shell.cc -o v8-shell -I include libv8.a -llog or for arm ../build/ndk_toolchain/bin/arm-linux-androideabi-g++ -DANDROID ./samples/shell.cc -o v8-shell -I include libv8.a -llog The resulting binary can be pushed to the device or the simulator as per https://code.google.com/p/v8/wiki/D8OnAndroid (using v8-shell instead of d8). Hope this helps. Based on your comments, I have built libraries that seem to work. Many thanks. Please go ahead and claim the bounty. Email miles.jones at artifex.com saying you'd like to collect the bounty for bug 693857 and he'll tell you the information you need to send. Many thanks! Done and thanks. It was much fun to work on the bug with you. If you ever have anything v8-related to work on again feel free to drop me a line, I'd be happy to work on it again. |