Hi,everyone:<div>     I've tried to build x264 with Google's NDK r4b in cygwin for Android platform. But an internal error: segmentation fault came up when compiling the arm-neon source file. </div><div>     So I'm trying to compile the x264 source code with Google's NDK r5c. But, to my surprise, there are so many errors when I compile the C source file while I could pass the build without enable arm-neon using NDK r4b.</div>
<div>     Could anyone help me out? Thanks.</div><div><br></div><div>     The compile errors:</div><div><div>garethxin@GARETHXIN-PC ~/hello-jni</div><div>$ ndk-build</div><div>Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver</div>
<div>Gdbsetup       : libs/armeabi/gdb.setup</div><div>Compile thumb  : hello-jni <= hello-jni.c</div><div>Compile thumb  : hello-jni <= common.c</div><div>In file included from C:/cygwin/home/garethxin/android-ndk-r5c/platforms/android</div>
<div>-9/arch-arm/usr/include/sys/types.h:34,</div><div>                 from C:/cygwin/home/garethxin/android-ndk-r5c/platforms/android</div><div>-9/arch-arm/usr/include/stdio.h:55,</div><div>                 from C:/cygwin/home/garethxin/hello-jni/jni/common/osdep.h:32,</div>
<div>                 from C:/cygwin/home/garethxin/hello-jni/jni/common/common.h:86,</div><div><br></div><div>                 from C:/cygwin/home/garethxin/hello-jni/jni/common/common.c:27:</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:33: error: expected '=',</div>
<div>',', ';', 'asm' or '__attribute__' before 'int64_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:34: error: expected '=',</div><div>',', ';', 'asm' or '__attribute__' before 'uint64_t'</div>
<div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:43: error: expected '=',</div><div>',', ';', 'asm' or '__attribute__' before 'int_least64_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:44: error: expected '=',</div>
<div>',', ';', 'asm' or '__attribute__' before 'uint_least64_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:56: error: expected '=',</div><div>',', ';', 'asm' or '__attribute__' before 'int_fast64_t'</div>
<div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:57: error: expected '=',</div><div>',', ';', 'asm' or '__attribute__' before 'uint_fast64_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:64: error: expected '=',</div>
<div>',', ';', 'asm' or '__attribute__' before 'intmax_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/extras/stdint.h:65: error: expected '=',</div><div>',', ';', 'asm' or '__attribute__' before 'uintmax_t'</div>
</div><div><div>In file included from C:/cygwin/home/garethxin/hello-jni/jni/common/common.h:172</div><div>,</div><div>                 from C:/cygwin/home/garethxin/hello-jni/jni/common/common.c:27:</div><div><br></div><div>
C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:51: error: expected sp</div><div>ecifier-qualifier-list before 'intptr_t'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h: In function 'bs_init'</div>
<div>:</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:86: error: 'intptr_t'</div><div>undeclared (first use in this function)</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:86: error: (Each undec</div>
<div>lared identifier is reported only once</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:86: error: for each fu</div><div>nction it appears in.)</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:86: error: expected ')</div>
<div>' before 'p_data'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:89: error: 'bs_t' has</div><div>no member named 'i_left'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:90: error: 'bs_t' has</div>
<div>no member named 'cur_bits'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:91: error: 'bs_t' has</div><div>no member named 'cur_bits'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h: In function 'bs_pos':</div>
<div><br></div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:95: error: 'bs_t' has</div><div>no member named 'i_left'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h: In function 'bs_flush</div>
<div>':</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:101: error: 'bs_t' has</div><div> no member named 'cur_bits'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:101: error: 'bs_t' has</div>
<div> no member named 'i_left'</div><div>C:/cygwin/home/garethxin/hello-jni/jni/common/bitstream.h:102: error: 'bs_t' has</div><div> no member named 'i_left'</div></div><div><br></div><div><br></div>
<div>  Baicheng Xin</div>