Thread overview | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 03, 2014 Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Sorry if this is a little off-topic, I posted this in the Dub forum on 23/11/14 but have had no reply yet: --- I read that the use of a branch spec like "~master" in dub.json is deprecated. I also read that it could be overriden on a per-project basis by editing the project's dub.selections.json file but I can't find any information about what is actually required in this file and whether any corresponding changes need to be made to dub.json. I'm trying to use 'ncurses' which doesn't have a version number, only "~master". --- Also, does anyone know how 'beta' the ncurses module actually is, is anyone using it? Cheers Paul |
December 03, 2014 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Attachments:
| On 12/03/2014 07:07 AM, Paul wrote: > Sorry if this is a little off-topic, I posted this in the Dub forum on 23/11/14 but have had no reply yet: > > > --- > I read that the use of a branch spec like "~master" in dub.json is deprecated. I also read that it could be overriden on a per-project basis by editing the project's dub.selections.json file but I can't find any information about what is actually required in this file and whether any corresponding changes need to be made to dub.json. > > I'm trying to use 'ncurses' which doesn't have a version number, only "~master". > --- > > Also, does anyone know how 'beta' the ncurses module actually is, is anyone using it? > > Cheers > > Paul So, as far as I know there isn't any plan for versioning that specific library. I've used it, however, and it's pretty usable (as much as ncurses goes, at any rate). -- Matt Soucy http://msoucy.me/ |
December 03, 2014 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matt Soucy | On Wednesday, 3 December 2014 at 17:37:18 UTC, Matt Soucy wrote:
> On 12/03/2014 07:07 AM, Paul wrote:
>> Sorry if this is a little off-topic, I posted this in the Dub forum on 23/11/14 but have had no reply yet:
>>
>>
>> ---
>> I read that the use of a branch spec like "~master" in dub.json is deprecated. I also read that it could be overriden on a per-project basis by editing the project's dub.selections.json file but I can't find any information about what is actually required in this file and whether any corresponding changes need to be made to dub.json.
>>
>> I'm trying to use 'ncurses' which doesn't have a version number, only "~master".
>> ---
>>
>> Also, does anyone know how 'beta' the ncurses module actually is, is anyone using it?
>>
>> Cheers
>>
>> Paul
> So, as far as I know there isn't any plan for versioning that specific library. I've used it, however, and it's pretty usable (as much as ncurses goes, at any rate).
So do I manually add those source files to my program (assuming the ncurses libs are installed) if compiling with dmd rather than using dub?
|
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul | On Wednesday, 3 December 2014 at 19:37:03 UTC, Paul wrote:
> On Wednesday, 3 December 2014 at 17:37:18 UTC, Matt Soucy wrote:
>> On 12/03/2014 07:07 AM, Paul wrote:
>>> Sorry if this is a little off-topic, I posted this in the Dub forum on 23/11/14 but have had no reply yet:
>>>
>>>
>>> ---
>>> I read that the use of a branch spec like "~master" in dub.json is deprecated. I also read that it could be overriden on a per-project basis by editing the project's dub.selections.json file but I can't find any information about what is actually required in this file and whether any corresponding changes need to be made to dub.json.
>>>
>>> I'm trying to use 'ncurses' which doesn't have a version number, only "~master".
>>> ---
>>>
>>> Also, does anyone know how 'beta' the ncurses module actually is, is anyone using it?
>>>
>>> Cheers
>>>
>>> Paul
>> So, as far as I know there isn't any plan for versioning that specific library. I've used it, however, and it's pretty usable (as much as ncurses goes, at any rate).
>
> So do I manually add those source files to my program (assuming the ncurses libs are installed) if compiling with dmd rather than using dub?
Bump!
I need to use ncurses for some quick prototyping now but I still can't get it to work. Can someone please spell out the steps I need to take to get this going? I'm using dmd on a linux mint box and have ncurses (and dev package) installed.
What do I need to install and import exactly if I don't utilise Dub?
TIA
Paul
|
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul | On Tuesday, 10 February 2015 at 13:18:34 UTC, Paul wrote: > On Wednesday, 3 December 2014 at 19:37:03 UTC, Paul wrote: >> On Wednesday, 3 December 2014 at 17:37:18 UTC, Matt Soucy wrote: >>> On 12/03/2014 07:07 AM, Paul wrote: >>>> Sorry if this is a little off-topic, I posted this in the Dub forum on 23/11/14 but have had no reply yet: >>>> >>>> >>>> --- >>>> I read that the use of a branch spec like "~master" in dub.json is deprecated. I also read that it could be overriden on a per-project basis by editing the project's dub.selections.json file but I can't find any information about what is actually required in this file and whether any corresponding changes need to be made to dub.json. >>>> >>>> I'm trying to use 'ncurses' which doesn't have a version number, only "~master". >>>> --- >>>> >>>> Also, does anyone know how 'beta' the ncurses module actually is, is anyone using it? >>>> >>>> Cheers >>>> >>>> Paul >>> So, as far as I know there isn't any plan for versioning that specific library. I've used it, however, and it's pretty usable (as much as ncurses goes, at any rate). >> >> So do I manually add those source files to my program (assuming the ncurses libs are installed) if compiling with dmd rather than using dub? > > Bump! > > I need to use ncurses for some quick prototyping now but I still can't get it to work. Can someone please spell out the steps I need to take to get this going? I'm using dmd on a linux mint box and have ncurses (and dev package) installed. > > What do I need to install and import exactly if I don't utilise Dub? > > TIA > > Paul I can't answer your question, but if you're just prototyping you could use Adam Ruppe's terminal.d until you get ncurses working. https://github.com/adamdruppe/arsd/blob/master/terminal.d |
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Meta Attachments: | On Tue, 10 Feb 2015 19:37:59 +0000, Meta wrote:
> I can't answer your question, but if you're just prototyping you could use Adam Ruppe's terminal.d until you get ncurses working. https://github.com/adamdruppe/arsd/blob/master/terminal.d
and i daresay that with 'terminal.d' there is no need in ncurses at all (except if someone needs ncurses panels, but i can't imagine why).
|
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Tuesday, 10 February 2015 at 19:49:26 UTC, ketmar wrote: > On Tue, 10 Feb 2015 19:37:59 +0000, Meta wrote: > >> I can't answer your question, but if you're just prototyping you could >> use Adam Ruppe's terminal.d until you get ncurses working. >> https://github.com/adamdruppe/arsd/blob/master/terminal.d > > and i daresay that with 'terminal.d' there is no need in ncurses at all > (except if someone needs ncurses panels, but i can't imagine why). Thanks both for the replies. Terminal.d looks as though it will do what I want but I'm familiar with using ncurses and could do without learning to use yet another api at the minute. Nevertheless, I had a quick look, but trying to create an instance of the Terminal struct like so: Terminal myTerm = Terminal(ConsoleOutputType.cellular, 0, 1, null); (which I think is the corrct way to do it!) gives me this error: test.o: In function `_Dmain': test.d:(.text._Dmain+0x13): undefined reference to `_D8terminal8Terminal6__initZ' test.d:(.text._Dmain+0x3c): undefined reference to `_D8terminal8Terminal6__ctorMFNcE8terminal17ConsoleOutputTypeiiDFZAiZS8terminal8Terminal' test.d:(.text._Dmain+0x6a): undefined reference to `_D8terminal8Terminal6__dtorMFZv' collect2: error: ld returned 1 exit status --- errorlevel 1 I have no idea how to fix that. Any suggestions please? |
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul | On Tuesday, 10 February 2015 at 20:50:28 UTC, Paul wrote:
> test.o: In function `_Dmain':
> test.d:(.text._Dmain+0x13): undefined reference to `_D8terminal8Terminal6__initZ'
If you see 'undefined reference' it means some library wasn't passed to the compiler. Easiest fix is usually to add the .d files to the command line so:
dmd yourfile.d terminal.d
with both passed together should build successfully.
BTW only the first argument to Terminal() is required, the others have sane defaults.
|
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul | On Tuesday, 10 February 2015 at 20:50:28 UTC, Paul wrote:
> On Tuesday, 10 February 2015 at 19:49:26 UTC, ketmar wrote:
>> On Tue, 10 Feb 2015 19:37:59 +0000, Meta wrote:
>>
>>> I can't answer your question, but if you're just prototyping you could
>>> use Adam Ruppe's terminal.d until you get ncurses working.
>>> https://github.com/adamdruppe/arsd/blob/master/terminal.d
>>
>> and i daresay that with 'terminal.d' there is no need in ncurses at all
>> (except if someone needs ncurses panels, but i can't imagine why).
>
> Thanks both for the replies. Terminal.d looks as though it will do what I want but I'm familiar with using ncurses and could do without learning to use yet another api at the minute. Nevertheless, I had a quick look, but trying to create an instance of the Terminal struct like so:
>
> Terminal myTerm = Terminal(ConsoleOutputType.cellular, 0, 1, null);
>
> (which I think is the corrct way to do it!) gives me this error:
>
> test.o: In function `_Dmain':
> test.d:(.text._Dmain+0x13): undefined reference to `_D8terminal8Terminal6__initZ'
> test.d:(.text._Dmain+0x3c): undefined reference to `_D8terminal8Terminal6__ctorMFNcE8terminal17ConsoleOutputTypeiiDFZAiZS8terminal8Terminal'
> test.d:(.text._Dmain+0x6a): undefined reference to `_D8terminal8Terminal6__dtorMFZv'
> collect2: error: ld returned 1 exit status
> --- errorlevel 1
>
> I have no idea how to fix that. Any suggestions please?
Are you on Linux or Windows? That constructor is only defined on Posix-based systems.
|
February 10, 2015 Re: Ncurses deprecated "~master" issue | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 10 February 2015 at 20:57:43 UTC, Adam D. Ruppe wrote:
> On Tuesday, 10 February 2015 at 20:50:28 UTC, Paul wrote:
>> test.o: In function `_Dmain':
>> test.d:(.text._Dmain+0x13): undefined reference to `_D8terminal8Terminal6__initZ'
>
> If you see 'undefined reference' it means some library wasn't passed to the compiler. Easiest fix is usually to add the .d files to the command line so:
>
> dmd yourfile.d terminal.d
>
> with both passed together should build successfully.
>
> BTW only the first argument to Terminal() is required, the others have sane defaults.
Thank you Adam. Yes, I noted the default values, even if I don't understand what they do at present(!). I'm pretty sure I tried to pass both files to the compiler at one point but I had illegal characters in my source filename (test-terminal.d) which sent me off on another track! No matter, it works as expected now, so I can take it for a spin.
|
Copyright © 1999-2021 by the D Language Foundation