2013-08-01 5 views
1

는 내가 Foxit 라이브러리 컴파일하기 위해서 다음 단계를 따랐다 :안드로이드에 Foxit PDF Reader를 통합하는 방법?

안드로이드 NDK : 경고 : JNI/Android.mk : fpdfembedsdk

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. 

을하지만 그때 나는 터미널에서이 오류를 받고 있어요 : 링커 플래그가 아닌 시스템 라이브러리 : jni /../../ bin/libfoxit.a
Android NDK : 잘못된 빌드가 발생할 가능성이 있습니다.
안드로이드 NDK의 라이브러리 의존성을 나열하는 대신 또는 LOCAL_SHARED_LIBRARIES : LOCAL_STATIC_LIBRARIES
안드로이드 NDK를 사용해보십시오 현재 모듈
메이크업 : *의 규정에`목표를 만들기 위해를 -B '. 중지.

이 문제를 해결할 방법이 있으면 알려주십시오.

감사합니다.

+0

당신은 'Android.mk'파일을 게시 할 수 있습니까? –

답변

0

이전에 시도했던 임베디드 PDF SDK에있는 대부분의 기능을 제공하는 Foxit의 새로운 MobilePDF SDK를 사용해 보는 것이 좋지만 사용자 인터페이스가 포함되어 있으므로 Android 프로젝트에 빠르게 통합 할 수 있습니다.

http://www.foxitsdk.com/products/mobile-pdf-sdk/

이 SDK Foxit의 임베디드 SDK를 대체합니다.