2012-08-01 10 views
4

Android NDK (blog post, source code) 용 Pango Cairo를 포팅 한 사용자를 발견했습니다. 그러나 나는 그의 예제 프로젝트를 컴파일하는데있어 성공적이지 못했다. 누구든지 그렇게 할 수 있었고 내가 뭘 잘못하고 있는지 말할 수 있습니까? ,Android 용 Pango Cairo 빌드 NDK

  • 자식 클론 --recursive http://dev.laptop.org/git/users/cscott/android-libs/
  • 자식은 어떤 이유로 pixman를 찾을 수 없습니다 그렇게 자식 클론 http://cgit.freedesktop.org/pixman/ 및 이동 :

    내가 지금까지 시도한 것입니다 안드로이드-libs가에/JNI/pixman
  • 안드로이드-libs와의
  • 복사 내용/JNI/-안드로이드-libs와/예/자바 비트 맵/JNI (Android.mk 유지해야할지?)
  • 의 이름이 변경 자바 비트 맵/JNI/Makefile.devel
  • 편집 메이크 에 자바 비트 맵/JNI/메이크 다음과 같이 NDK =/cygdrive/F/
  • 가 시도 툴체인 = $ (NDK) /toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin-r8b 안드로이드 NDK 실행 에서 java-bitmap/jni

나는 다음과 같은 오류가 점점 오전 : 여기

checking for arm-linux-eabi-gcc... arm-linux-androideabi-gcc --sysroot /cygdrive/f/android-ndk-r8b/platforms/android-9/arch-arm -fpic -ffunction-sections -funwind-tables -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -mfpu=vfp -Wno-psabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -g -isystem /cygdrive/f/workspace/java-bitmap/jni/sysroot/include 
checking whether the C compiler works... no 
configure: error: in `/cygdrive/f/workspace/java-bitmap/jni/pixman': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 
Makefile:133: recipe for target `pixman/config.h' failed 
make: *** [pixman/config.h] Error 77 

것은 내가 한 단계 더있어 config.h의

configure:3460: checking whether the C compiler works 
configure:3482: arm-linux-androideabi-gcc --sysroot /cygdrive/f/android-ndk-r8b/platforms/android-9/arch-arm -fpic -ffunction-sections -funwind-tables -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -mfpu=vfp -Wno-psabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -g -isystem /cygdrive/f/workspace/java-bitmap/jni/sysroot/include -nostdlib -DPIXMAN_NO_TLS -DWCHAR_MIN=INT_MIN -DWCHAR_MAX=INT_MAX -I/cygdrive/f/workspace/java-bitmap/jni/pixman-extra -I/cygdrive/f/workspace/java-bitmap/jni/sysroot/include -include pixman-elf-fix.h -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -lc -lgcc -L/cygdrive/f/workspace/java-bitmap/jni/sysroot/lib conftest.c >&5 
cc1.exe: error: pixman-elf-fix.h: No such file or directory 
configure:3486: $? = 1 
configure:3524: result: no 
configure: failed program was: 

.. 

configure:3529: error: in `/cygdrive/f/workspace/java-bitmap/jni/pixman': 
configure:3531: error: C compiler cannot create executables 
See `config.log' for more details 
+4

http://imgs.xkcd.com/comics/wisdom_of_the_ancients.png 찾을 않은 의한 것 해결책? –

+0

@EfEs :-D 죄송합니다. 결코 파악하지 못했습니다. – Michoel

답변

-1

의 조각입니다. 대신

git clone http://cgit.freedesktop.org/pixman/ 

나는

git clone --recursive http://dev.laptop.org/git/users/cscott/android-pixman 

로 다운로드 빈 jni/pixman 디렉토리에 모든 파일을 복사. 이제 파일 pixman-elf-fix.h을 발견하지만, 링커와 함께 실패

/tmp/cc2XOCMj.o:(.ARM.exidx.text.main+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'.

그러나 그것은 아마 this same problem

+0

이것은 답변이 아닙니다 ... – Lizz