Derelict / SDL error

Paul via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 9 07:53:10 PST 2014


On Tuesday, 9 December 2014 at 15:48:32 UTC, Paul wrote:
> On Tuesday, 9 December 2014 at 15:40:00 UTC, Mike Parker wrote:
>> On 12/10/2014 12:19 AM, Paul wrote:
>> dub doesn't know anything about DerelictSDL2Image (and even if 
>> it did, just importing it isn't going to tell dub about it -- 
>> you would need to add it to your dub.json as a dependency). 
>> That's because DerelictSDL2Image is not an independent 
>> package. It's part of DerelictSDL2. You need to call 
>> DerelictSDL2Image.load() to load the SDL2_image shared 
>> library, then you can use it.
>
> I realise both of those, but I can't find the relevant package 
> name, I thought it might be like this..
>
> 	"dependencies": {
> 	"derelict-sdl2":"~>1.0.0",
> 	"derelict-gl3":">=1.0.0",
> 	"derelict-sdl2-image":">=1.0.0"
> 	}
>
> I've tried several variations but no joy.

Whoa, I read that wrong - I'm sure I tried just adding 
DerelictSDL2Image.load() to my program an it didnt work. Trying 
again.


More information about the Digitalmars-d-learn mailing list