Lime 8.0.0 and OpenFL 9.2.0 Release

Probabaly should have started a new thread, but anyway.

Tried to rebuild an extension with the latest OpenFL/Lime installed and got an error. Regular android projects compile and run well with the same setup.

Error: Please set one of the architectures, eg HXCPP_ARM64, HXCPP_X86, ...

See the full log below. Any ideas how to fix it? :slight_smile:

lime rebuild extension-firebase android -v

_/\\\\\\______________________________________________
_\////\\\______________________________________________
_____\/\\\_____/\\\_____________________________________
______\/\\\____\///_____/\\\\\__/\\\\\_______/\\\\\\\\___
_______\/\\\_____/\\\__/\\\///\\\\\///\\\___/\\\/////\\\__
________\/\\\____\/\\\_\/\\\_\//\\\__\/\\\__/\\\\\\\\\\\___
_________\/\\\____\/\\\_\/\\\__\/\\\__\/\\\_\//\\///////____
________/\\\\\\\\\_\/\\\_\/\\\__\/\\\__\/\\\__\//\\\\\\\\\\__
________\/////////__\///__\///___\///___\///____\//////////___

Lime Command-Line Tools (8.0.0)

Initializing project...
Reading Lime config: C:\Users\dpavl\.lime\config.xml

Running command: REBUILD
 - Changing directory: extension-firebase/project
 - Running command: haxelib run hxcpp Build.xml -Dandroid -DPLATFORM=android-21 -Dtools=8.0.0 -DANDROID_SDK=C:\dev\Android\ -DANDROID_SETUP=true -DANDROID_NDK_ROOT=C:\dev\Android\ndk\21.4.7075529\ -verbose
 __
/\ \
\ \ \___    __  _   ___   _____   _____
 \ \  _ `\ /\ \/'\ /'___\/\ '__`\/\ '__`\
  \ \ \ \ \\/>  <//\ \__/\ \ \L\ \ \ \L\ \
   \ \_\ \_\/\_/\_\ \____\\ \ ,__/\ \ ,__/
    \/_/\/_/\//\/_/\/____/ \ \ \/  \ \ \/
                            \ \_\   \ \_\
                             \/_/    \/_/

hxcpp (Haxe C++ Runtime Support) (4.2.1)

Using makefile: Build.xml
Reading HXCPP config: C:\Users\dpavl\.hxcpp_config.xml
No specified toolchain

 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/toolchain/setup.xml
 - Parsing include: C:\Users\dpavl\.hxcpp_config.xml (section "vars")
 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/toolchain/finish-setup.xml
 - Parsing makefile: C:\Work\GIT\extension-firebase\project\Build.xml
 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/build-tool/BuildCommon.xml
 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/toolchain/haxe-target.xml
 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/toolchain/android-toolchain.xml

Using Android NDK root: C:\dev\Android\ndk\21.4.7075529\
Try to get version from source.properties
Deduced NDK version 21.004 from "C:\dev\Android\ndk\21.4.7075529\"/source.properties
Detected Android NDK 21.004
Detected Android toolchain: arm-linux-androideabi-4.9
Detected Android host: windows-x86_64
x86 Platform: 16
arm Platform: 16
x86_64 Platform: 21
arm_64 Platform: 21
Frameworks should set the minSdkVersion for each APK to these values.
 - Parsing include: C:/dev/Haxe/haxe/lib/hxcpp/4,2,1/toolchain/android-toolchain-clang.xml
Error: Please set one of the architectures, eg HXCPP_ARM64, HXCPP_X86, ...

You might try NDK r15c. That specific version is currently still required to build the Lime library .so binaries for Android (even though you can use r21e for building Lime apps for Android).

Thanks! Any chance it will change anytime soon, btw? :slight_smile: Need newer NDK to use the latest Firebase SDK…

We are planning to merge a branch that will allow Lime to build with a newer NDK in what I hope is the near future. I don’t know whether that will help with building extensions, but it would make sense to me that it would (I don’t personally work on the Android build stuff, so I only have a high level understanding).

Thanks for the explanation!

I notice that now all swf assets exported into .zip, but when I want to load it using Assets.loadLibrary. It’s seem that loaded byte and total byte onProgress always 0. Do you know why? My build target is HTML5

I found the solution, use AnimateLibrary.loadFromFile instead of Assets.loadLibrary.