Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-18 Thread dangbinghoo via Digitalmars-d-announce

On Monday, 19 March 2018 at 01:25:23 UTC, dangbinghoo wrote:

On Wednesday, 14 March 2018 at 11:09:47 UTC, Aravinda VK wrote:

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!


For Fedora I found below link to install 
`gcc-arm-linux-gnueabihf`


https://copr.fedorainfracloud.org/coprs/lantw44/arm-linux-gnueabihf-toolchain/


just added fedora or centos, but installing using yum.


also added dnf way for installing armhf toolchain as the tutorial 
is mainly based on armhf target.


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-18 Thread dangbinghoo via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 12:44:31 UTC, Uknown wrote:

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!


Just a little tip, but I would recommend avoiding giving 
install instructions that vary from platform to platform. The 
problem is that 2 years down the line, when someone discovers 
this tutorial, they may discover that the instructions are no 
longer applicable. That makes the entire tutorial seem 
outdated. Also, the instructions are hard to verify for 
contributors, since they probably already installed the 
programs, so they can't tell if the instructions are outdated 
or wrong.
Instead, I would recommend giving relevant links to install 
instructions provided by the program/package creator. That way 
the instructions are always up to date


All these instructions are not tied to a specified version, it 
should work for the future. Linux Distribution like 
fedora/debain/ArchLinux will not change such a package name for 
installing arm toolchain, as the toolchain package is not like 
libpng, you may have libpng11 libpng1.2 or what ever, it's just 
solid package names.




Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-18 Thread dangbinghoo via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 11:09:47 UTC, Aravinda VK wrote:

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!


For Fedora I found below link to install 
`gcc-arm-linux-gnueabihf`


https://copr.fedorainfracloud.org/coprs/lantw44/arm-linux-gnueabihf-toolchain/


just added fedora or centos, but installing using yum.


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread Uknown via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!


Just a little tip, but I would recommend avoiding giving install 
instructions that vary from platform to platform. The problem is 
that 2 years down the line, when someone discovers this tutorial, 
they may discover that the instructions are no longer applicable. 
That makes the entire tutorial seem outdated. Also, the 
instructions are hard to verify for contributors, since they 
probably already installed the programs, so they can't tell if 
the instructions are outdated or wrong.
Instead, I would recommend giving relevant links to install 
instructions provided by the program/package creator. That way 
the instructions are always up to date


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread Uknown via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 10:25:04 UTC, Seb wrote:

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:
[snip]
As my english is not that good, every body who find mistakes 
just try to fix it.


The MediaWiki notation for links is [link title] - not Markdown.
Pandoc can convert between markdown and MediaWiki.


I'm not OP, but I changed some of the language and fixed the 
links.



[snip]
The recommended way is to use the official install script 
(https://dlang.org/install.html)


curl https://dlang.org/install.sh | bash -s ldc


I changed the LDC install instructions to the curl method

I think this reads better now. This was a great idea for a 
tutorial! Now all we need is a blog post...


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread Aravinda VK via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!


For Fedora I found below link to install `gcc-arm-linux-gnueabihf`

https://copr.fedorainfracloud.org/coprs/lantw44/arm-linux-gnueabihf-toolchain/


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread Seb via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices



Great article!
How about making a blog post for the DBlog out of this?

---

A few comments:

As my english is not that good, every body who find mistakes 
just try to fix it.


The MediaWiki notation for links is [link title] - not Markdown.
Pandoc can convert between markdown and MediaWiki.

This means that all library path does not includes libssl, 
libcrypto, libz. You need to find or build a toolchain with 
extra lib built-in, or, just cross-compiling the desired c 
library and install to your toolchain sysroot path.



You can disable ssl completely by adding `versions "VibeNoSSL"` 
to your dub.sdl (or `versions: ["VibeNoSSL"]` to dub.json)



If you download LDC2 standalone release from github page, say: 
[ldc2-1.8.0-linux-x86_64.tar.xz](https://github.com/ldc-developers/ldc/releases/download/v1.8.0/ldc2-1.8.0-linux-x86_64.tar.xz)

we need a little bit tricky thing to do:


The recommended way is to use the official install script 
(https://dlang.org/install.html)


curl https://dlang.org/install.sh | bash -s ldc


$ vim test.d


better use sth. like this, s.t. copy/pasting is easy:

cat > test.d << EOF
...
EOF


Re: Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread Martin Tschierschke via Digitalmars-d-announce

On Wednesday, 14 March 2018 at 09:29:26 UTC, dangbinghoo wrote:

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes 
just try to fix it.


Thanks!

+1



Added Wiki page Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

2018-03-14 Thread dangbinghoo via Digitalmars-d-announce

hello there,

Just added a paper for cross compiling D on arm linux devices.

https://wiki.dlang.org/Programming_in_D_tutorial_on_Embedded_Linux_ARM_devices

As my english is not that good, every body who find mistakes just 
try to fix it.


Thanks!