Open SujeetKr9 opened 5 years ago
Reinstalling the app may help
See: #262 (comment)
can You Sir please explain it more
@bqytallhsirlkm current gradle configuration (in master branch) doesn't automatically build native libraries. You need to manually build c/c++ sources (explained in readme) and then build project itself.
@bqytallhsirlkm current gradle configuration (in master branch) doesn't automatically build native libraries. You need to manually build c/c++ sources (explained in readme) and then build project itself.
Thank you brother Sorry brother 1- Download NDK & CMake 2- in jni file. should recompile mupdf
Sorry brother I'm a beginner in Andriod studio I didn't understand Readme Can you brother explain it in detail? if you don't mind
From Android Studio:
From Terminal:
./init.sh
from the project root.document-viewer
folder and run command ndk-build
. If you get the command not found
error, then you need to add ndkFrom Android Studio:
From Android Studio:
1. Select Tools->SDK Manager. From there install sdk and [ndk](https://developer.android.com/studio/projects/install-ndk?hl=FR) (you don't need CMake for this project).
From Terminal:
1. Download MuPDF and DjVULibre and generate fonts by running command `./init.sh` from the project root. 2. Go to the `document-viewer` folder and run command `ndk-build`. If you get the `command not found` error, then you need to [add ndk](https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/)
From Android Studio:
1. Build.
Sorry brother I didn't know whats the wrong seem Error!
1-download NDK & DjVULibre and generate fonts https://www.mediafire.com/view/p8hbsuunmee366x/Screenshot_%2528106%2529.png/file#
For the second step you need a terminal. On Windows you may use Cygwin.
For the second step you need a terminal. On Windows you may use Cygwin.
when I run ./init.sh
from the project root.
give this message
File to patch:
Do you have files in document-viewer/document-viewer/jni/mupdf/mupdf
?
Do you have files in
document-viewer/document-viewer/jni/mupdf/mupdf
?
mupdf/mupdf
Empty nothing brother
You have to install git and run from terminal git submodule update --init --recursive --force
You don't actually download mupdf and djvulibre by hand. You download them by issuing ./init.sh
from the project root. They will appear in the appropriate folders in document-viewer/document-viewer/jni/
.
You don't actually download mupdf and djvulibre by hand. You download them by issuing
./init.sh
from the project root. They will appear in the appropriate folders indocument-viewer/document-viewer/jni/
.
Sorry Brother for the last time
First, download document-viewer
Secondly, run in Android studio And Add NDK
3rd download mupdf but how can I generate fonts
When I run the file init.sh .
from the project root This appears and then disappears Pic
It looks like you've downloaded zip archive of the project. You need to clone it instead. Remove document-viewer
folder and issue command
git clone --recurse-submodules https://github.com/SufficientlySecure/document-viewer.git
This command will download project, mupdf and djvulibre.
You don't have build tools (make
, gcc
etc) installed. You need to install cygwin and use its terminal instead of windows shell.
3rd download mupdf but how can I generate fonts
They are generated when you run init.sh
.
yes I downloaded a zip archive thanks for this note
init.sh
But the problem is the same
which one?
But the problem is the same
which one?
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.sufficientlysecure.viewer-IA7jlnRFefU-WQQ1bJ2wdQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.sufficientlysecure.viewer-IA7jlnRFefU-WQQ1bJ2wdQ==/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libebookdroid.so"
Did you run ndk-build
after running init.sh
as described above?
Did you run
ndk-build
after runninginit.sh
as described above?
Yes Brother & give me this error
Why do you have a backslash in your pdf.h
path?
Why do you have a backslash in your
pdf.h
path?
my path for NDK C:\Users\bqytallhsirlkm\AppData\Local\Android\Sdk\ndk\android-ndk-r15c-windows-x86_64\android-ndk-r15c
+ /ndk-build
excuse me brother whats the wrong with the path?
Well, you have mixed forward and back slashes in your pdf.h
path (yellow highlight on the picture). It seems that there's a mix of native and UNIX style path concatenations.
You may try inspecting ndk-build
log by running ndk-build --dry-run
.
However, it would be much simpler to setup dual-boot or virtual machine with GNU/Linux.
Well, you have mixed forward and back slashes in your
pdf.h
path (yellow highlight on the picture). It seems that there's a mix of native and UNIX style path concatenations. You may try inspectingndk-build
log by runningndk-build --dry-run
. However, it would be much simpler to setup dual-boot or virtual machine with GNU/Linux.
so my error
C:/Users/bqytallhsirlkm/AppData/Local/Android/Sdk/ndk/android-ndk-r15c-windows-x86_64/android-ndk-r15c**/**ndk-build
But it gives me the seeming error
org.sufficientlysecure.viewer E/Document Viewer.LibraryLoader: Native library cannot be loaded: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.sufficientlysecure.viewer-IA7jlnRFefU-WQQ1bJ2wdQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.sufficientlysecure.viewer-IA7jlnRFefU-WQQ1bJ2wdQ==/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libebookdroid.so"