Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

Pedro Lopes via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 13 04:15:19 PDT 2016


On Tuesday, 12 April 2016 at 13:01:59 UTC, Mike Parker wrote:
> On Tuesday, 12 April 2016 at 09:19:14 UTC, Pedro Lopes wrote:
>
>> I changed the dub.sdl dependency to version 0.0.5, but dub 
>> cant recognize that version:
>> "Root package allegrotest contains reference to invalid 
>> package derelict-allegro5 0.0.5"
>>
>
> My fault. I forgot to 'git push --tags'. Once the dub registry 
> picks it up, 0.0.5 should work.
Thank you, initially It compiled, but then another error showed 
up, don't worry, Is not difficult to solve, and probably this has 
nothing to do with allegro.
First it compiled (because I had not loaded any allegro library 
nor added any allegro code to my allegrotest project), whenever I 
tried to load the library "DerelictAllegro5.load();" the error 
showed up. But I know exactly what th problem is.
The first library that dub looks for is called:  
"liballegro_image-5.0.11.so", but in my system (Arch repository 
allegro package) allegro's library is 
called:"liballegro_image.so.5.0.11" the difference lies in the 
extension ".so" that comes first, the version comes latter in 
arch.


here is the error:
«Linking...
Running ./allegrotest
derelict.util.exception.SharedLibLoadException at ../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/exception.d(35): Failed to load one or more shared libraries:
	liballegro_image-5.0.11.so - liballegro_image-5.0.11.so: cannot 
open shared object file: No such file or directory
	liballegro_image-5.0.so - liballegro_image-5.0.so: cannot open 
shared object file: No such file or directory
----------------
../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/exception.d:66 void derelict.util.exception.SharedLibLoadException.throwNew(immutable(char)[][], immutable(char)[][]) [0x444043]
../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/sharedlib.d:155 void derelict.util.sharedlib.SharedLib.load(immutable(char)[][]) [0x44392c]
../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/loader.d:196 void derelict.util.loader.SharedLibLoader.load(immutable(char)[][]) [0x44155d]
../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/loader.d:142 void derelict.util.loader.SharedLibLoader.load(immutable(char)[]) [0x44145b]
../../../.dub/packages/derelict-util-2.0.5/source/derelict/util/loader.d:82 void derelict.util.loader.SharedLibLoader.load() [0x4412dd]
source/app.d:20 _Dmain [0x43d297]
??:? 
_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv 
[0x449dde]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x449d28]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).runAll() [0x449d9a]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x449d28]
??:? _d_run_main [0x449c99]
??:? main [0x43d77f]
??:? __libc_start_main [0xd425870f]
Program exited with code 1
»

If I cannot have a break, I guess I'm the bug stumbler.

Sorry for the trouble.


More information about the Digitalmars-d-learn mailing list