May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On 2016-05-18 14:32, TheDGuy wrote: > Okay, now i get this: > > Performing "debug" build using dmd for x86. > tango ~master: building configuration "static"... > tango\sys\win32\WsaSock.d(31,14): Warning: instead of C-style syntax, > use D-style syntax 'char[WSADESCRIPTION_LEN + 1] szDescription' > tango\sys\win32\WsaSock.d(32,14): Warning: instead of C-style syntax, > use D-style syntax 'char[WSASYS_STATUS_LEN + 1] szSystemStatus' > tango\stdc\posix\unistd.d(31,9): Error: undefined identifier 'uid_t' > dmd failed with exit code 1. Everything in tango/stdc/posix should be ignored when compiling on Windows. Seems like this line isn't working [1], fore some reason. I think that the developers that are using Tango are mostly using Linux or Posix. [1] https://github.com/SiegeLord/Tango-D2/blob/d2port/dub.json#L32 -- /Jacob Carlborg |
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 18 May 2016 at 14:19:48 UTC, Jacob Carlborg wrote:
>
> Everything in tango/stdc/posix should be ignored when compiling on Windows. Seems like this line isn't working [1], fore some reason.
So what should i do? Delete the file?
|
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 18 May 2016 at 14:19:48 UTC, Jacob Carlborg wrote:
> [1] https://github.com/SiegeLord/Tango-D2/blob/d2port/dub.json#L32
How can i get that line working?
|
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On Wednesday, 18 May 2016 at 14:59:52 UTC, TheDGuy wrote:
> On Wednesday, 18 May 2016 at 14:19:48 UTC, Jacob Carlborg wrote:
>> [1] https://github.com/SiegeLord/Tango-D2/blob/d2port/dub.json#L32
>
> How can i get that line working?
May I ask why you need to get tango working? It has been deprecated a long time ago and phobos (the standard library) or alternatively other packages on dub have a look of features :)
|
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Wednesday, 18 May 2016 at 16:13:35 UTC, Seb wrote:
> On Wednesday, 18 May 2016 at 14:59:52 UTC, TheDGuy wrote:
>> On Wednesday, 18 May 2016 at 14:19:48 UTC, Jacob Carlborg wrote:
>>> [1] https://github.com/SiegeLord/Tango-D2/blob/d2port/dub.json#L32
>>
>> How can i get that line working?
>
> May I ask why you need to get tango working? It has been deprecated a long time ago and phobos (the standard library) or alternatively other packages on dub have a look of features :)
Because the only result google gave me when i searched for "dlang serial read" was tango.
If there is another library out there i don't know about and which can do serial communication as well i am looking forward to it.
|
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Wednesday, 18 May 2016 at 16:13:35 UTC, Seb wrote: > May I ask why you need to get tango working? It has been deprecated a long time ago and phobos (the standard library) or alternatively other packages on dub have a look of features :) Okay, it looks like 'onyx' is a library which handles serial communication in D. So tried to create a new project with DUB and add onyx as dependency but there are still some errors: http://pastebin.com/4eRBt6XX Any idea what i do wrong? |
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On Wednesday, 18 May 2016 at 16:37:48 UTC, TheDGuy wrote: > On Wednesday, 18 May 2016 at 16:13:35 UTC, Seb wrote: >> May I ask why you need to get tango working? It has been deprecated a long time ago and phobos (the standard library) or alternatively other packages on dub have a look of features :) > > Okay, it looks like 'onyx' is a library which handles serial communication in D. So tried to create a new project with DUB and add onyx as dependency but there are still some errors: > > http://pastebin.com/4eRBt6XX > > Any idea what i do wrong? The onyx README seems to suggest it only works for POSIX. Did you try serial-port by any chance: http://code.dlang.org/packages/serial-port That does mention Windows as supported. It is quite old though, the latest github activity is from a year ago. |
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edwin van Leeuwen | On Wednesday, 18 May 2016 at 19:49:04 UTC, Edwin van Leeuwen wrote: > > The onyx README seems to suggest it only works for POSIX. Did you try serial-port by any chance: > http://code.dlang.org/packages/serial-port > > That does mention Windows as supported. It is quite old though, the latest github activity is from a year ago. Thanks a lot for your answer. I built serial-port successfully with Dub but the only thing i got is a 'test.exe' and a 'test.obj' file. I don't see any library files even though: C:\Users\Standardbenutzer\Downloads\DUB>dub build Fetching serial-port 1.1.0 (getting selected version)... Placing serial-port 1.1.0 to C:\Users\Standardbenutzer\AppData\Roaming\dub\packages\... Performing "debug" build using dmd for x86. serial-port 1.1.0: building configuration "library"... test ~master: building configuration "application"... Linking... C:\Users\Standardbenutzer\Downloads\DUB>cd .dub C:\Users\Standardbenutzer\Downloads\DUB\.dub>cd build |
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheDGuy | On Wednesday, 18 May 2016 at 20:41:13 UTC, TheDGuy wrote:
> C:\Users\Standardbenutzer\Downloads\DUB>dub build
> Fetching serial-port 1.1.0 (getting selected version)...
> Placing serial-port 1.1.0 to C:\Users\Standardbenutzer\AppData\Roaming\dub\packages\...
> Performing "debug" build using dmd for x86.
> serial-port 1.1.0: building configuration "library"...
> test ~master: building configuration "application"...
> Linking...
>
> C:\Users\Standardbenutzer\Downloads\DUB>cd .dub
>
> C:\Users\Standardbenutzer\Downloads\DUB\.dub>cd build
Oh i am sorry, i see the link now where it was placed.
|
May 18, 2016 Re: Compile Tango for DMD2 - Any instructions how to do it? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edwin van Leeuwen | On Wednesday, 18 May 2016 at 19:49:04 UTC, Edwin van Leeuwen wrote:
> That does mention Windows as supported. It is quite old though, the latest github activity is from a year ago.
Got it working, thanks a lot!
|
Copyright © 1999-2021 by the D Language Foundation