Reputation: 53
I have an android project.My project depends mupdf that use NDK.I have two NDK version in my computer.One downloaded from Android Studio, another downloaded from this site:ndk download site.My project depends the NDK which downloaded from site now.When I want to run my project in genymotion, I got this error:
Information:Gradle tasks [:android:assembleDebug]
executing buildNative
executing cleanNative
:android:buildNative
Android NDK: ERROR:jni/Android.mk:gsso: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/libgs.so exists or that its path is correct
make.exe: Entering directory `F:/Android_Studio_Project/HelloToone/android'
F:\ADT\android-ndk-r10e\build\core\prebuilt-library.mk
Error:(45) *** Android NDK: Aborting . Stop.
make.exe: Leaving directory `F:/Android_Studio_Project/HelloToone/android'
:android:buildNative FAILED
Error:Execution failed for task ':android:buildNative'.
> Process 'command 'F:\ADT\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 1.809 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
How to slove this error? Thank you.
Upvotes: 2
Views: 1104
Reputation: 57173
According to GhostScript instructions, you need to libgs.so separately.
You can either download a prebuilt library from http://ghostscript.com/~robin/libgs.so, or build it from sources at http://git.ghostscript.com/?p=user/robin/ghostpdl.git;a=shortlog;h=refs/heads/android_mupdf_gs_so.
Alternatively, you can edit build.gradle file and remove ' SUPPORT_GPROOF=1'
from buildNative command line.
Upvotes: 2