java - Compiling C++ code with cygwin for JNI (Android NDK) -
i'm trying build c++ file using in android application on jni. i'm building in windows using cygwin. i'm new , don't know doing.
here's part of output:
$ g++ -c test_wrap.cxx -i"c:\dev\android-ndk-r4b\build\platforms\android-4\arch-arm\usr\include" -i./include in file included c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/sys/_types.h:40, c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/stdint.h:32, c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/sys/types.h:34, c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/strings.h:42, c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/stdlib.h:42, test_wrap.cxx:160: c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:44: error: conflicting declaration 'typedef long unsigned int size_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:213: error: 'size_t' has previous declaration `typedef unsigned int size_t' c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:44: error: declaration of `typedef long unsigned int size_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:213: error: conflicts previous declaration `typedef unsigned int size_t' c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:44: error: declaration of `typedef long unsigned int size_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:213: error: conflicts previous declaration `typedef unsigned int size_t' c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:46: error: conflicting declaration 'typedef long int ptrdiff_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:151: error: 'ptrdiff_t' has previous declaration `typedef int ptrdiff_t' c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:46: error: declaration of `typedef long int ptrdiff_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:151: error: conflicts previous declaration `typedef int ptrdiff_t' c:/dev/android-ndk-r4b/build/platforms/android-4/arch-arm/usr/include/machine/_types.h:46: error: declaration of `typedef long int ptrdiff_t'/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h:151: error: conflicts previous declaration `typedef int ptrdiff_t'
can please give me hand?
emmanuel
applications built in cygwin environment assume application execute on windows cygwin dll available. yock stated, need set cross-compiler targeted android operating system.
Comments
Post a Comment