I’m currently trying to build an android x86_64 project, but I’m missing the liblime-x86_64.so file.
I tried to recompile the NDLLs (cloned lime from git and ran lime rebuild android to build them), but it isn’t generating it (it generates the ARMs (v6;v7;v64) and x86, but not the one I need).
May I ask which parameter am I supposed to pass to the lime commando to build it?
I’m using NDK-r15c and it supports x86_64 using the android-21 platform. Funnily enough I opened the arch_x86_64 folder on ROOT_NDK/platforms/android-21/usr/arch-x86_64/usr/ and it has both lib and lib64/ folders (while all the other archs have only the lib folder)… could that be the source of my newfound error? (I’m justing guessing though)
I’ve managed to make the HXCPP work ( the x86-64 build wasn’t supported for older NDK versions, but I made some changes to the gcc toolchain to enable it). I also had to change Lime’s build.xml and AndroidPlatform.hx to add the Platform-21 flag.
I’ll make the PRs Soon™ (I’ll clean up my code and retest everything)
Chiming in to say that I’d love to help test @lehonma’s version here. I’ve got an app based in Haxe that I’m trying to get on the Play Store but have run into this restriction too, so I might be a good test case. I don’t know my way around the guts of lime, and so thank you for working on a solution.
However, I’m facing an obstacle in building the thing in the first place – so a very fundamental problem and probably something small I’m overlooking. I’ve got your version and am trying to follow the instructions in “Building from Source” at GitHub - openfl/lime: A foundational Haxe framework for cross-platform development. This is what I get specifically:
C:\HaxeToolkit\haxe\lib\lime>haxelib dev lime lime-e4077d38fc53a98c8e2d59e5d728c87c7e2f321d
Development directory set to C:\HaxeToolkit\haxe\lib\lime\lime-e4077d38fc53a98c8e2d59e5d728c87c7e2f321d
C:\HaxeToolkit\haxe\lib\lime>lime help
Called from ? line 1
Called from CommandLineTools.hx line 1895
Called from CommandLineTools.hx line 22
Called from CommandLineTools.hx line 95
Called from CommandLineTools.hx line 884
Called from CommandLineTools.hx line 1096
Called from hxp/Log.hx line 84
Called from hxp/Log.hx line 127
Called from C:\HaxeToolkit\haxe\std/neko/Lib.hx line 42
Uncaught exception - load.c(237) : Failed to load library : lime.ndll
More relevant info:
C:\HaxeToolkit\haxe\lib\lime>haxelib version
3.3.0 (a494d8be523e26fcf875e2c33915808dc221e17a)
Fantastic. I ran back through the whole process and got it built for Windows, and it works as expected. I don’t know where I messed up, but that works for me. Thanks!
I’m having an issue with rebuilding for Android, though:
src/graphics/cairo/CairoBindings.cpp
Error: In file included from include/system/CFFI.h:6:0,
from include/graphics/ImageBuffer.h:6,
from include/text/Font.h:5,
from ./src/text/Font.cpp:1:
include/hl.h:253:17: error: redeclaration of C++ built-in type ‘char32_t’ [-fpermissive]
include/hl.h:254:17: error: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
PS C:\HaxeToolkit\haxe\lib\lime\lime>
Just for kicks, I tried cheating by commenting out the offending lines, but then ran into issues where it tried to build OpenAL. I may need to install some standard libraries, as it was complaining about missing stdalign.h and stdatomic.h. Putting it down for right now, but wanted to share the current status. Thanks!
Oh I’m really sry about the delay… I’m currently using a Mac and built the SOs from there. I’ll try to build on Windows when I have the time (prob. by the next weekend).
Btw, you will have to point to my HXCPP fork before you try to build the x86-64 SOs (I had to update the GCC toolchain to support the 15c NDK and my PR is still open).
After that, you’ll need to lime rebuild android -64
src/system/ValuePointer.cpp
Error: In file included from include/system/CFFI.h:6:0,
from ./src/ui/GamepadEvent.cpp:1:
include/hl.h:253:17: error: redeclaration of C++ built-in type ‘char32_t’ [-fpermissive]
include/hl.h:254:17: error: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]