posts/Cross-compile FreeType for Android ARMBeuc's Bloghttps://blog.beuc.net/posts/Cross-compile_FreeType_for_Android_ARM/Beuc's Blogikiwiki2020-02-04T15:26:58Z-mandroidhttps://blog.beuc.net/posts/Cross-compile_FreeType_for_Android_ARM/comment_1_5c598c5a22d79b8b77820c877fb9577e/beuc2020-02-04T15:26:58Z2012-02-04T23:19:01Z
<p>At <a href="http://wiki.gnashdev.org/AndroidDependencies#freetype">http://wiki.gnashdev.org/AndroidDependencies#freetype</a> the Gnash project suggests CFLAGS="-mandroid" to compile FreeType. AFAICS this doesn't fix compilation errors :</p>
<pre><code>In file included from /usr/src/ndk-standalone-9/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:64,
from /usr/src/freetype-2.4.8/include/freetype/config/ftstdlib.h:101,
from ./builds/unix/ftconfig.h:43,
from /usr/src/freetype-2.4.8/src/base/ftsystem.c:29:
/usr/src/ndk-standalone-9/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/sys/types.h:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int64_t'
make: *** [/usr/src/freetype-2.4.8/objs/ftsystem.lo] Erreur 1
</code></pre>
<p>You still need CFLAGS="-std=gnu99".</p>
Reportedhttps://blog.beuc.net/posts/Cross-compile_FreeType_for_Android_ARM/comment_2_4f2578e8e0ef3e17731775beaf08000f/beuc2020-02-04T15:26:58Z2012-03-03T12:58:59Z
Bug is reported at <a href="https://savannah.nongnu.org/bugs/?35644">https://savannah.nongnu.org/bugs/?35644</a>