Re: Dub / Derelict confusion

2014-11-25 Thread Paul via Digitalmars-d-learn
On Sunday, 23 November 2014 at 00:37:07 UTC, Mike Parker wrote: On 11/23/2014 3:52 AM, Paul wrote: Whenever I try to learn a new language I always seem to end up fighting the OS or the IDE rather than spending time where I should. Therefore, I'm going to put this idea on hold and stick to

Re: Dub / Derelict confusion

2014-11-25 Thread Mike Parker via Digitalmars-d-learn
On 11/26/2014 3:27 AM, Paul wrote: I've finally got this working - the SDL FAQ page sort of identifies the cause; the xorg dev files have to be installed before building SDL otherwise you end up with a 'non-x' version (not sure what you'd do with that!). I built SDL first and then tried

Re: Dub / Derelict confusion

2014-11-22 Thread Paul via Digitalmars-d-learn
On Friday, 21 November 2014 at 01:23:55 UTC, Mike Parker wrote: On 11/21/2014 10:22 AM, Mike Parker wrote: You are adding anything You /aren't/ The problem is 'no available video device' when trying to init SDL. I've recently wiped/re-installed this machine so something must be missing.

Re: Dub / Derelict confusion

2014-11-22 Thread Mike Parker via Digitalmars-d-learn
On 11/23/2014 3:52 AM, Paul wrote: Whenever I try to learn a new language I always seem to end up fighting the OS or the IDE rather than spending time where I should. Therefore, I'm going to put this idea on hold and stick to console programs for a while (tried to install ncurses as well

Re: Dub / Derelict confusion

2014-11-21 Thread Paul via Digitalmars-d-learn
On Friday, 21 November 2014 at 01:22:34 UTC, Mike Parker wrote: On 11/21/2014 5:57 AM, Paul wrote: This is a tad off topic now but I'm struggling to get a window on screen as SDL_CreateWindow is failing, here's what I've got: try{ DerelictSDL2.load(); }catch(Exception e){

Re: Dub / Derelict confusion

2014-11-20 Thread Paul via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 10:07:56 UTC, Mike Parker wrote: On 11/19/2014 6:12 PM, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using

Re: Dub / Derelict confusion

2014-11-20 Thread Mike Parker via Digitalmars-d-learn
On 11/21/2014 5:57 AM, Paul wrote: This is a tad off topic now but I'm struggling to get a window on screen as SDL_CreateWindow is failing, here's what I've got: try{ DerelictSDL2.load(); }catch(Exception e){ writeln(Failed to load DerelictSDL2 :( %s, e.msg); return; } Before

Re: Dub / Derelict confusion

2014-11-20 Thread Mike Parker via Digitalmars-d-learn
On 11/21/2014 10:22 AM, Mike Parker wrote: You are adding anything You /aren't/

Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a beginner so I downloaded the dub executable and put it in the

Re: Dub / Derelict confusion

2014-11-19 Thread wobbles via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 09:12:52 UTC, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a

Re: Dub / Derelict confusion

2014-11-19 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 09:12:52 UTC, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a

Re: Dub / Derelict confusion

2014-11-19 Thread Mike Parker via Digitalmars-d-learn
On 11/19/2014 6:12 PM, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a beginner so I downloaded the

Re: Dub / Derelict confusion

2014-11-19 Thread wobbles via Digitalmars-d-learn
Put them into a place your linker can find (usually /usr/lib/ iirc). I forgot, I'm pretty sure make install does that step for you.

Re: Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
@wobbles: Sorry, should have said, I built SDL and the libraries are installed in /usr/local/lib could you give some more details? Full package.json, the file-structure of your project and the full output from dub would help. @John Colvin The entire contents of dub.json are as above. My

Re: Dub / Derelict confusion

2014-11-19 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 10:09:55 UTC, Paul wrote: @wobbles: Sorry, should have said, I built SDL and the libraries are installed in /usr/local/lib could you give some more details? Full package.json, the file-structure of your project and the full output from dub would help.

Re: Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 10:07:56 UTC, Mike Parker wrote: On 11/19/2014 6:12 PM, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using