|
我的系统是win 7 x64 英文版
简单的说,我做的事情如下:
用svn checkout了最新的osg
cmake版本为cmake-2.8.8-win32-x86
下载了 3rdpartyAndroid.zip,并且在cmake中设置路径为3rdpartyAndroid\build
cmake的其他配置参考了这篇文章:
http://www.openscenegraph.com/in ... h-for-android-3-0-2
cygwin中make之后报的错误如下,在最后:
xuhy@xuhy-PC /cygdrive/f/osgeo4w/osg/trunk/build
$ make
Scanning dependencies of target ndk
[100%] Generating Android-OpenSceneGraph
HOST_OS=cygwin
HOST_ARCH=x86
HOST_TAG=cygwin-x86
GNUMAKE=/usr/bin/make (system path)
Cygwin-compatible GNU make detected
Android NDK: NDK installation path auto-detected: '/cygdrive/f/Android/IDE/andro id-ndk-r8-windows'
Android NDK: GNU Make version 3.82.90 detected
Android NDK: Host OS was auto-detected: windows
Android NDK: Found /bin/uname.exe on Windows host
Android NDK: uname -s returned: CYGWIN_NT-6.1-WOW64
Android NDK: Cygwin detected: CYGWIN_NT-6.1-WOW64 xuhy-PC 1.7.15(0.260/5/3) 2012 -05-09 10:25 i686 Cygwin
Android NDK: Host operating system detected: cygwin
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to windows
Android NDK: Host tools prebuilt directory: /cygdrive/f/Android/IDE/android-ndk- r8-windows/prebuilt/windows/bin
Android NDK: Host 'echo' tool: /cygdrive/f/Android/IDE/android-ndk-r8-windows/pr ebuilt/windows/bin/echo
Android NDK: Host 'awk' tool: awk
Android NDK: Host 'awk' test returned: Pass
Android NDK: Probing for 'cygpath' program
Android NDK: 'cygpath' found as: /usr/bin/cygpath
Using cygwin substitution rules:
/cygdrive/f => F:
/cygdrive/e => E:
/cygdrive/d => D:
/cygdrive/c => C:
/cygdrive/F => F:
/cygdrive/E => E:
/cygdrive/D => D:
/cygdrive/C => C:
/usr/lib => D:/cygwin/lib
/usr/bin => D:/cygwin/bin
/ => D:/cygwin
Android NDK: This NDK supports the following target architectures and ABIS:
Android NDK: arm: armeabi armeabi-v7a
Android NDK: mips: mips
Android NDK: x86: x86
Android NDK: This NDK supports the following toolchains and target ABIs:
Android NDK: arm-linux-androideabi-4.4.3: armeabi armeabi-v7a
Android NDK: mipsel-linux-android-4.4.3: mips
Android NDK: x86-4.4.3: x86
Android NDK: Found platform root directory: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms
Android NDK: Found supported platforms: android-4 android-3 android-14 android-8 android-9 android-5
Android NDK: PLATFORM android-4 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-4/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-4/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-4/arch-mips
Android NDK: PLATFORM android-3 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-3/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-3/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-3/arch-mips
Android NDK: PLATFORM android-14 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-14/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-14/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-14/arch-mips
Android NDK: PLATFORM android-8 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-8/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-8/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-8/arch-mips
Android NDK: PLATFORM android-9 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-9/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-9/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-9/arch-mips
Android NDK: PLATFORM android-5 supports: x86 arm mips
Android NDK: ABI x86 sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-5/arch-x86
Android NDK: ABI arm sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-5/arch-arm
Android NDK: ABI mips sysroot is: /cygdrive/f/Android/IDE/android-ndk-r8-windows/platforms/android-5/arch-mips
Android NDK: Found stable platform levels: 4 3 14 8 9 5
Android NDK: Found max platform level: 14
Android NDK: Found project path: .
Android NDK: Ouput path: ./obj
Android NDK: Parsing Application.mk
Android NDK: Application local targets unknown platform '5'
Android NDK: Switching to android-14
Android NDK: Using build script ./Android.mk
Android NDK: Application 'local' is not debuggable
Android NDK: Selecting optimization mode through Application.mk: release
Android NDK: Adding import directory: /cygdrive/f/Android/IDE/android-ndk-r8-windows/sources
Android NDK: Building application 'local' for ABI 'armeabi'
Android NDK: Using target toolchain 'arm-linux-androideabi-4.4.3' for 'armeabi' ABI
Android NDK: Looking for imported module with tag 'cxx-stl/gnu-libstdc++'
Android NDK: Probing /cygdrive/f/Android/IDE/android-ndk-r8-windows/sources/cxx-stl/gnu-libstdc++/Android.mk
Android NDK: Found in /cygdrive/f/Android/IDE/android-ndk-r8-windows/sources/cxx-stl/gnu-libstdc++
Android NDK: Trying to define local module 'OpenThreads' in F:/osgeo4w/osg/trunk/build/src/OpenThreads/pthreads/Android.mk.
Android NDK: But this module was already defined by F:/osgeo4w/osg/trunk/build/src/OpenThreads/pthreads/Android.mk.
/cygdrive/f/Android/IDE/android-ndk-r8-windows/build/core/build-module.mk:34: *** Android NDK: Aborting. . Stop.
CMakeFiles/ndk.dir/build.make:52: recipe for target `Android-OpenSceneGraph' failed
make[2]: *** [Android-OpenSceneGraph] Error 2
CMakeFiles/Makefile2:60: recipe for target `CMakeFiles/ndk.dir/all' failed
make[1]: *** [CMakeFiles/ndk.dir/all] Error 2
Makefile:113: recipe for target `all' failed
make: *** [all] Error 2
是啥原因?
有编译成功的朋友指点一下,谢谢。
|
|