Hi Andy,

This is perfect! I'd really like to have expression language support for
the build. For clarification, I'll need to recompile flex and bison using
the NDK as well as applying your patches to the baseline? I would love to
get my hands on those patches if its not too much trouble.

Thanks,
-Mike

On Wed, Apr 4, 2018 at 11:17 AM, Andy Christianson <[email protected]>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mike,
>
> I have successfully compiled a static MiNiFi - C++ binary/library natively
> for
> Android. The build requires some changes (mainly external builds for some
> dependencies we don't already bundle and some cmake adjustments).
>
> The only requirements on your host, other than the standard Android SDK/NDK
> tooling, is flex & bison (required for expression language --you can
> disable
> expression language to remove this dependency, or use a compatible
> lexer/parser
> generator).
>
> The patches required to make this work need to be cleaned up and turned
> into
> proper pull requests. This is something that I'm planning to do in the near
> future. If you're interested, I can send you the full patch if you want to
> contribute the PRs, or just apply it for your own (unofficial/unsupported)
> use.
>
> Regards,
>
> Andy I.C.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iQEcBAEBAgAGBQJaxOwoAAoJEG1+mBKNMpIDd08H/RZfjwwcliSoab/DmN90d6M6
> /KX0UkJVQJdhGnxlz3CCntoG/ADc/iG2w49F7upUCFJFUNHkwyrve2Zz48pAlbut
> ystA5y+mmaZBLabffPh7Gq8bpHlAUZwYOt+jCVJchZXNg6bccWktf+0y2UkIBXok
> /VlRGh9rFtZsLo3wb5nb52Jbj3i4+eWjHrVRw7SVa4xkkSgBgooNA5VqkgopDuM8
> 1yeTuKg+XYjM3Iuu6aton1Pikh/KxY7/bTcZ7KyfDe2x2NrH9XsMXrq7A6EAId7E
> dLum7fev5ropNH0cdQBm7zrw8xaPbklg7I7gm2OBKmWUXkaDjAEnfTdIXuuAX9c=
> =FYcV
> -----END PGP SIGNATURE-----
>
>
> Sent from ProtonMail <https://protonmail.com>, Swiss-based encrypted
> email.
>
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On April 4, 2018 10:51 AM, Michael Riddle <[email protected]>
> wrote:
>
> Hi Folks,
>
> Based on this page: https://community.hortonworks.com/questions/34320/has-
> anyone-gotten-apache-nifi-running-on-an-androi.html. It should be
> possible to cross-compile minifi using the android NDK.
>
> A couple of questions here:
> Has anyone successfully done this that you are aware of? If so, are the
> additional necessary steps detailed somewhere?
>
>
> On my CentOS 7 box, I've gotten as far as getting the bootstrap running
> with an android-27 standalone-toolchain using the default gnustl, but
> running make immediately fails complaining that it can't find FlexLexer.h.
> When I edit the following lines in CMakeCache.txt to look in /usr/include
> for header files:
> CMAKE_CXX_FLAGS:STRING=-isystem /usr/include
> CMAKE_C_FLAGS:STRING=-isystem /usr/include
>
> It blows up with:
> /opt/my-android-toolchain/include/c++/4.9.x/aarch64-linux-
> android/bits/ctype_base.h:36:2: error: #error Bionic header ctype.h does
> not define either _U nor _CTYPE_U
>  #error Bionic header ctype.h does not define either _U nor _CTYPE_U
>
> Will I need to recompile flex, bison, etc. all as android to be able to
> use them, or should they "just work"?
>
> Thanks,
> -Mike Riddle
>
>
>

Reply via email to