Я следовал за эти шаги, чтобы скомпилировать библиотеку Foxit:Как интегрировать Foxit PDF Reader в Android?
1) Download and install the Eclipse IDE (http://www.eclipse.org/), the Android SDK, ADT plugin for Eclipse, and the Android NDK (http://developer.android.com/sdk/index.html).
a) For Windows use, also download and install Cygwin (http://www.cygwin.com/). During Cygwin setup, make sure to include the “Devel -> make” package.
2) Download the Foxit embedded SDK Package.
3) Extract the Foxit embedded SDK Package to any directory.
4) Place the Foxit embedded SDK library and header files in fpdfemb_android/examples/demos/bin and include directory.
5) Build the NDK layer.
a) Open the Android.mk makefile in fpdfemb_android/examples/demos/demo(like “demo_view”)/jni/ in a text editor and fill in the Foxit library name in the area designated for LOCAL_LDLIBS, dropping the lib prefix:
The demo is shipped as:
LOCAL_LDLIBS +=../bin/# fill in library name here
To add downloaded libfoxit.a from step 2, fill in as:
LOCAL_LDLIBS :=../bin/libfoxit.a
If the library provide is not named “libfoxit.a” please adjust accordingly.
b) Open Cygwin (Windows), or a terminal (Linux based), and navigate to the fpdfemb_android/examples/demos/demo(like “demo_view”) directory. Run “ndk-build –B” to build the NDK/JNI layer.
Example:
[email protected] /myProjectPath/ > ndk-build –B
This assumes that the ndk directory is part of the $PATH environment variable. The command can also be qualified with the path to the NDK directory.
Но я получаю эту ошибку в терминале:
Android NDK: ПРЕДУПРЕЖДЕНИЕ: JNI/Android.mk: fpdfembedsdk : несистемные библиотеки в флагах компоновщика: jni /../../ bin/libfoxit.a
Android NDK: Вероятно, это приведет к неправильной сборке. Попробуйте использовать LOCAL_STATIC_LIBRARIES
Android NDK: или LOCAL_SHARED_LIBRARIES вместо того, чтобы перечислить зависимости библиотека
Android NDK: модуль тока
Марка: * Нет правила, чтобы сделать цель `-B». Стоп.
Не могли бы вы рассказать мне, есть ли способ разрешить это?
спасибо.
Можете ли вы разместить файл Android.mk –