Android Status
Joakim via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Dec 31 19:56:56 PST 2016
On Saturday, 31 December 2016 at 05:52:00 UTC, Ignacious wrote:
> On Thursday, 29 December 2016 at 10:14:53 UTC, Joakim wrote:
>> On Wednesday, 28 December 2016 at 23:33:57 UTC, Ignacious
>> wrote:
>>> What is the current status for building android apps in D? I
>>> would like to create simple graphic based apps but don't
>>> wanna get bogged down in trying to get car moving without any
>>> wheels.
>>
>> Should all work, but nothing other than small apps have been
>> tested. Try the latest beta, which I just put up:
>>
>> http://forum.dlang.org/post/xetfqojxijgobisfacvx@forum.dlang.org
>>
>> If you want something more substantive than my ports of the
>> NDK's sample apps, check out Vadim's Tetris app, which I spent
>> half an hour playing on my phone, :) or his minecraft-like
>> demo (click on the sourceforge link from his forum post to get
>> the apps):
>>
>> http://forum.dlang.org/thread/cdekkumjynhqoxvmgjze@forum.dlang.org
>>
>> Let me know if you have any questions or problems.
>
> Is there any way to get a package that works for windows? While
> the steps don't seem too difficult to do, things never go well
> for me(something always breaks... always!)
>
> did install the linux subsystem but... seems like it would be
> easier for you to compile a binary and upload it... since you
> know what you are doing and have everything at hand already...
>
> At least that gives me(and others) the ability to try to build
> the examples and see how it works and all that... then I can go
> through all the trouble of building the compiler myself if it
> seems worth it rather than wasting time.
Sorry, I haven't used Windows in more than a year, ever since my
ultrabook died. I've gone full Android since then, which is why
it is easier for me to provide a native Android compiler than a
Windows cross-compiler. :) I'm currently typing this message out
on an Android 5.1" smartphone, propped up on a cheap Chinese
tablet stand in front of me and hooked up to a full USB keyboard.
In any case, you should be able to use the linux build I provide,
as you later found.
On Saturday, 31 December 2016 at 06:48:12 UTC, Ignacious wrote:
> On Saturday, 31 December 2016 at 06:33:10 UTC, Ignacious wrote:
>> On Saturday, 31 December 2016 at 05:52:00 UTC, Ignacious wrote:
>>> On Thursday, 29 December 2016 at 10:14:53 UTC, Joakim wrote:
>>>> [...]
>>
>>
>> I see these:
>>
>> https://github.com/joakim-noah/android/releases
>>
>> Seems the two archives are identical though except the libs?
>>
>> Is this what I use to compile the examples?
>
> nvm mind, I guess I accidentally extracted the same archive
> thinking it was the other.
>
> so, essentially these are the two different compilers for the
> two different android architectures?
As mentioned at the top of the release, the first is a native
Android compiler, meaning you use it on an Android tablet or
smartphone. The second is a linux cross-compiler, meaning you
need a linux/x64 shell from which you cross-compile to
Android/ARM.
On Saturday, 31 December 2016 at 08:05:42 UTC, Ignacious wrote:
> Ok, so I installed
> ldc2-android-arm-1.1.0-beta4-linux-x86_64.tar.xz
>
> in to ldcandroid
>
> and tried running
>
> ./bin/ldc2 -c test.d
>
> I get the error.
>
> ./bin/ldc2: error while loading shared libraries:
> libconfig.so.9: cannot open shared object file: No such file or
> directory
>
> Searched the file system for libconfig and found nothing so I
> did
>
> sudo apt-get install libconfig++9
>
> which installed it under lxss\rootfs\usr\lib\x86_64-linux-gnu
>
> It shows up when I do
>
> sudo ldconfig -v
>
> /usr/lib/x86_64-linux-gnu:
> libconfig++.so.9 -> libconfig++.so.9.1.3
>
> I tried adding this:
>
> export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
>
> But still same issue.
>
> Any ideas how to fix this?
Can you try
sudo apt-get install libconfig9
I don't know if that will install something different, but it's
the command I see others using online. Otherwise, check if the
libconfig++9 package you installed included libconfig.so.9, which
is what ldc is linked against. If not, install the package that
provides that library. The wiki mentions installing
libconfig-dev, you could always just install that if nothing else
works.
Let me know if you run into any other problems. The Win10
support is brand new, just added this week, so we don't have much
experience with it.
More information about the Digitalmars-d-learn
mailing list