Re: D on android and d_android

2020-04-07 Thread burt via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 12:29:57 UTC, Adam D. Ruppe wrote: On Tuesday, 7 April 2020 at 11:45:24 UTC, burt wrote: I managed to get it to compile. I had to add __bss_end__ symbol myself and set the value to the value of the `_end` symbol or it wouldn't work. A PR to the LDC druntime is wat

Re: D on android and d_android

2020-04-07 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Apr 07, 2020 at 03:06:16PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: > > 1) Follow LDC wiki to build an Android cross-compiler and > >cross-compiled LDC libraries (this may already be prepackaged > >with the

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: 1) Follow LDC wiki to build an Android cross-compiler and cross-compiled LDC libraries (this may already be prepackaged with the latest LDC releases). They are - this is all automatic just-works now (if you download the

Re: D on android and d_android

2020-04-07 Thread Jan Hönig via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 14:51:15 UTC, H. S. Teoh wrote: On Tue, Apr 07, 2020 at 12:43:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: > Is there some "Hello World!" example for D on Android? [...] > However there is just

Re: D on android and d_android

2020-04-07 Thread Jan Hönig via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 12:43:20 UTC, Adam D. Ruppe wrote: On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: Is there some "Hello World!" example for D on Android? So I did a tiny thing in the repo: https://github.com/adamdruppe/d_android/tree/master/android-dub-test if you open

Re: D on android and d_android

2020-04-07 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Apr 07, 2020 at 12:43:20PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: > > Is there some "Hello World!" example for D on Android? [...] > > However there is just so much to know. > > It is really overwhelming. > > no

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote: Is there some "Hello World!" example for D on Android? So I did a tiny thing in the repo: https://github.com/adamdruppe/d_android/tree/master/android-dub-test if you open that in android studio it should load up, and the makefile is

Re: D on android and d_android

2020-04-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 7 April 2020 at 11:45:24 UTC, burt wrote: I managed to get it to compile. I had to add __bss_end__ symbol myself and set the value to the value of the `_end` symbol or it wouldn't work. A PR to the LDC druntime is wat caused the __bss_end__ symbol to be missing [0]. Blargh it was

Re: D on android and d_android

2020-04-07 Thread burt via Digitalmars-d-learn
On Thursday, 2 April 2020 at 12:13:27 UTC, Adam D. Ruppe wrote: On Thursday, 2 April 2020 at 11:29:24 UTC, burt wrote: Anyway, I don't think this fails to work because of an error in the d_android library. If you find anything else that may cause it, I am glad to know, but thank you for your

Re: D on android and d_android

2020-04-06 Thread Jan Hönig via Digitalmars-d-learn
Little off-topic, but I think it should fit here well. Is there some "Hello World!" example for D on Android? Having a simple example is a great springboard to start a project with lot of unknowns. On the weekend I started creating an App (kotlin), really simple stuff. However there is just

Re: D on android and d_android

2020-04-05 Thread burt via Digitalmars-d-learn
On Thursday, 2 April 2020 at 17:16:56 UTC, burt wrote: On Thursday, 2 April 2020 at 12:13:27 UTC, Adam D. Ruppe wrote: On Thursday, 2 April 2020 at 11:29:24 UTC, burt wrote: Anyway, I don't think this fails to work because of an error in the d_android library. If you find anything else that

Re: D on android and d_android

2020-04-02 Thread burt via Digitalmars-d-learn
On Thursday, 2 April 2020 at 12:13:27 UTC, Adam D. Ruppe wrote: On Thursday, 2 April 2020 at 11:29:24 UTC, burt wrote: Anyway, I don't think this fails to work because of an error in the d_android library. If you find anything else that may cause it, I am glad to know, but thank you for your

Re: D on android and d_android

2020-04-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 2 April 2020 at 11:29:24 UTC, burt wrote: Anyway, I don't think this fails to work because of an error in the d_android library. If you find anything else that may cause it, I am glad to know, but thank you for your help. Well, it is supposed to be a "just works" setup helper, so

Re: D on android and d_android

2020-04-02 Thread burt via Digitalmars-d-learn
On Thursday, 2 April 2020 at 01:53:30 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 15:04:02 UTC, burt wrote: Well I'm European, so with 10.010 kB I mean 10010 kB = 10.010 MB in American/British. ah, of course. Well, I won't be able to finish it today anyway, so take your time.

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 15:04:02 UTC, burt wrote: Well I'm European, so with 10.010 kB I mean 10010 kB = 10.010 MB in American/British. ah, of course. Well, I won't be able to finish it today anyway, so take your time. I rewrote the downloader so it goes straight from ldc releases

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 15:01:02 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 14:54:35 UTC, burt wrote: libphobos2-ldc.a and libphobos2-ldc-debug.a. Sizes are 2511 kB, 4792 kB, 10.010 kB and 17.378 kB respectively. Those latter two should be megabytes not kilobytes the

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:54:35 UTC, burt wrote: libphobos2-ldc.a and libphobos2-ldc-debug.a. Sizes are 2511 kB, 4792 kB, 10.010 kB and 17.378 kB respectively. Those latter two should be megabytes not kilobytes the download must have failed. can i come back to it in a few hours?

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:31:45 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 14:20:25 UTC, burt wrote: Some examples of errors are: Those mean it isn't linking in the libs at all... ugh. do ldc2 -v and it will tell you where the config file is. open that up and see if it

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:20:25 UTC, burt wrote: Some examples of errors are: Those mean it isn't linking in the libs at all... ugh. do ldc2 -v and it will tell you where the config file is. open that up and see if it has teh correct paths under a section that looks kinda like

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:16:28 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 14:13:32 UTC, burt wrote: I also wonder if there's a difference between the libphobos2-ldc and libphobos2-ldc-debug.a libraries? Do those mangle differently and could that cause the linker errors?

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:13:32 UTC, burt wrote: I also wonder if there's a difference between the libphobos2-ldc and libphobos2-ldc-debug.a libraries? Do those mangle differently and could that cause the linker errors? maybe. what are the errors?

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 14:00:39 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 13:36:29 UTC, burt wrote: Sorry, I must have misread this. My LDC version was 1.20.1, not 1.19. did that fix the linker error? The runtimes it downloads are specifically built against 1.19. But

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 13:36:29 UTC, burt wrote: Sorry, I must have misread this. My LDC version was 1.20.1, not 1.19. did that fix the linker error? The runtimes it downloads are specifically built against 1.19. But libs for the other versions are available too, you just need to

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
So the correct steps now: 1) get ldc 1.19 specifically and the android NDK 2) do `android-setup /path/to/your/android/ndk` 3) do normal `dub build` Sorry, I must have misread this. My LDC version was 1.20.1, not 1.19. Thanks

Re: D on android and d_android

2020-04-01 Thread burt via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 11:57:58 UTC, Adam D. Ruppe wrote: On Wednesday, 1 April 2020 at 08:50:01 UTC, burt wrote: I found a README [0] that mentions an "android-dub-build.d" script, which should be a wrapper around `dub build` Ah, I forgot to update that file. There is no

Re: D on android and d_android

2020-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 08:50:01 UTC, burt wrote: I found a README [0] that mentions an "android-dub-build.d" script, which should be a wrapper around `dub build` Ah, I forgot to update that file. There is no android-dub-build anymore, instead the android-setup changes the main