Does anyone build for Android? Tons of link errors..

Fry fry131313 at gmail.com
Wed Feb 16 23:59:01 UTC 2022


On Wednesday, 16 February 2022 at 22:50:09 UTC, H. S. Teoh wrote:
> On Wed, Feb 16, 2022 at 08:40:02PM +0000, Fry via 
> Digitalmars-d-learn wrote:
>> I'm getting a ton of linker errors when building with LDC with 
>> the aarch64 release from here:
> [...]
>> Is anyone able to build for android?
>
> I adapted the instructions from:
>
> 	https://wiki.dlang.org/Build_D_for_Android
>
> Works fine for me.  Note that you will need a working 
> installation of the Android NDK, and will need to build 
> druntime/phobos specifically for cross-compilation, as detailed 
> on that page.  If you're planning to build APKs, you will need 
> to install various Android utilities as well (dalvik-exchange, 
> zipalign, apksigner, etc.).
>
>
> T

I got that demo compiling, it seems this flag is causing it to 
not compile "-Wl,--no-undefined". But if it is undefined it 
shouldn't compile normally. There should be linker errors I'm 
expecting but if I take out that flag then I don't get any...


More information about the Digitalmars-d-learn mailing list