Thread overview | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 21, 2016 DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Hello, I've implemented initial support of Android in DlangUI. Only armv7a architecture is supported so far. You can downlowd sample APK: https://sourceforge.net/projects/crengine/files/DlangUI/ How to add support of Android to your DlangUI project. ===================================================== Copy dlangui/android/android_project directory to you DlangUI project directory. Probably you will want to change android package name in AndroidManifest.xml and application display name in res/values/strings.xml Modify android_app.mk, android_build_config.mk android_app.mk ============== Update LOCAL_SRC_FILES to include all your project's files. android_build_config.mk ======================= Update paths to Android NDK, SDK, DlangUI source directory. Default values: export DLANGUI_DIR=$HOME/src/d/dlangui export NDK=$HOME/android-ndk-r11c export SDK=$HOME/android-sdk-linux export LDC=$HOME/ldc2-android-arm-0.17.0-alpha2-linux-x86_64 export NDK_ARCH=x86_64 Use LDC cross compiler for armv7a build according instructions https://wiki.dlang.org/Build_LDC_for_Android#Build_a_sample_OpenGL_Android_app_ported_to_D |
April 21, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
> Hello,
>
> I've implemented initial support of Android in DlangUI.
Am I sleeping? Can we develop UI applications for Android on D? It's great!
|
April 21, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Thursday, 21 April 2016 at 14:48:40 UTC, ANtlord wrote:
> On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
>> Hello,
>>
>> I've implemented initial support of Android in DlangUI.
>
> Am I sleeping? Can we develop UI applications for Android on D? It's great!
Yes, and the same code may run on both desktops and Android.
|
April 21, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote: > Hello, > > I've implemented initial support of Android in DlangUI. > Forgot to add that DerelictFT patch is required for DlangUI/Android. (Freetype library has name libft2.so on Android) PR is submitted, but not yet integrated into DerelictFT: https://github.com/DerelictOrg/DerelictFT/pull/9 PS: Current build is using android-19 API (Android 4.4 Kitkat) due to GLES3 dependency. Will provide support of older platforms later, if needed. |
April 21, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
> I've implemented initial support of Android in DlangUI.
It's great! Thank you!
And congrats with it!
|
April 22, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote: > Hello, > > I've implemented initial support of Android in DlangUI. > > Only armv7a architecture is supported so far. > > You can downlowd sample APK: https://sourceforge.net/projects/crengine/files/DlangUI/ DlangUI Tetris example now works ok on Android (arm, android4.4+) You can download it here: https://sourceforge.net/projects/crengine/files/DlangUI/ |
April 22, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 15:49:32 UTC, Vadim Lopatin wrote: > Forgot to add that DerelictFT patch is required for DlangUI/Android. > (Freetype library has name libft2.so on Android) > > PR is submitted, but not yet integrated into DerelictFT: > > https://github.com/DerelictOrg/DerelictFT/pull/9 > > I was late, but I have since gotten this taken care of, so it's all golden. FYI, for anyone facing a similar problem in the future and is hung up waiting on me to merge a pull request, the base loader in DerelictUtil allows overriding the default library names. So instead of a library like DLangUI requiring a patched Derelict package, you could do this: version(Derelict_OS_Android) DerelictFT.load("libft2.so"); You can pass multiple library names as a single, comma-separated string: DerelictFT.load("libft2.so,libfreetype.so"); Or as an array (which is what the above is converted to internally anyway): DerelictFT.load(["libft2.so", "libfreetype.so"]); |
April 22, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Friday, 22 April 2016 at 13:41:52 UTC, Mike Parker wrote:
> I was late, but I have since gotten this taken care of, so it's all golden.
>
> FYI, for anyone facing a similar problem in the future and is hung up waiting on me to merge a pull request, the base loader in DerelictUtil allows overriding the default library names. So instead of a library like DLangUI requiring a patched Derelict package, you could do this:
>
> version(Derelict_OS_Android)
> DerelictFT.load("libft2.so");
>
> You can pass multiple library names as a single, comma-separated string:
>
> DerelictFT.load("libft2.so,libfreetype.so");
>
> Or as an array (which is what the above is converted to internally anyway):
>
> DerelictFT.load(["libft2.so", "libfreetype.so"]);
Thank you for your help! I've updated dlangui dub.json with latest DerelictFT.
|
April 22, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
> Hello,
>
> I've implemented initial support of Android in DlangUI.
>
> [...]
Congratulations!
|
April 22, 2016 Re: DlangUI on Android | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Friday, 22 April 2016 at 12:05:52 UTC, Vadim Lopatin wrote:
> On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
>> Hello,
>>
>> I've implemented initial support of Android in DlangUI.
>>
>> Only armv7a architecture is supported so far.
>>
>> You can downlowd sample APK: https://sourceforge.net/projects/crengine/files/DlangUI/
>
> DlangUI Tetris example now works ok on Android (arm, android4.4+)
Android5.02 ,Not ok, sorry.
|
Copyright © 1999-2021 by the D Language Foundation