Essentia: [Android] wscript only considers arm architecture

Created on 5 Jul 2018  路  3Comments  路  Source: MTG/essentia

Hello!

So I wanted to compile essentia for all Android architectures (x86, x86_64, arm, arm64) and I noticed that the file wscript has hardcoded values for cross compilation. Specifically, looking at the file wscript in the master branch at lines 223 - 225, we see the hardcoded value arm-linux-androideabi-*. I worked around this issue by manually changing these values depending on the wanted architecture, for example:

  • arm: unchanged
  • arm64: aarch64-linux-android
  • x86: i686-linux-android
  • x86_64: x86_64-linux-android

These definitions are taken from the "prefix" of the files located in the bin/ folder of your toolchain. Now, this could be solved by automatically building all architectures, for example.

builds

Most helpful comment

After switching to clang in #622 how can we change the architectures for Android?

All 3 comments

Sure, we should address that. Any pull request is welcome.

After switching to clang in #622 how can we change the architectures for Android?

With Android NDkr21 and above, there are scripts available in the NDK to configure which architecture to build for. I suggest adding a flag to wscript to choose the architecture.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tripphippie picture Tripphippie  路  56Comments

ffont picture ffont  路  4Comments

fnbns picture fnbns  路  9Comments

techiespace picture techiespace  路  4Comments

omida picture omida  路  5Comments