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

2016-04-14 Thread Pedro Lopes via Digitalmars-d-learn

On Wednesday, 13 April 2016 at 12:34:52 UTC, Mike Parker wrote:

On Wednesday, 13 April 2016 at 11:21:25 UTC, Pedro Lopes wrote:
In the second paragraph I meant to say: The first library that 
Derelict-Allegro (not dub) looks for is called:  
"liballegro_image-5.0.11.so" ...
I know dub has nothing to do with this at this point it 
already compile and linked it just couldn't execute for not 
finding the library.


Should be fixed now in version 0.0.6. Glad to see someone is 
reporting issues with this binding so I can iron out the kinks. 
I want to give it more attention and add support for 5.2, it's 
just always been low on my priority list. Please post any 
further issues you find at the github issue tracker [1], if you 
don't mind.


[1] https://github.com/DerelictOrg/DerelictAllegro5/issues


Thank you, if I find any new bugs I will report them to the 
github issues,

So far I haven't found any new bugs.

I will be testing other libraries (sdl, allegro, sfml, etc) 
because I'm reviewing several libraries to decide which I like 
best.




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

2016-04-13 Thread Mike Parker via Digitalmars-d-learn

On Wednesday, 13 April 2016 at 11:21:25 UTC, Pedro Lopes wrote:
In the second paragraph I meant to say: The first library that 
Derelict-Allegro (not dub) looks for is called:  
"liballegro_image-5.0.11.so" ...
I know dub has nothing to do with this at this point it already 
compile and linked it just couldn't execute for not finding the 
library.


Should be fixed now in version 0.0.6. Glad to see someone is 
reporting issues with this binding so I can iron out the kinks. I 
want to give it more attention and add support for 5.2, it's just 
always been low on my priority list. Please post any further 
issues you find at the github issue tracker [1], if you don't 
mind.


[1] https://github.com/DerelictOrg/DerelictAllegro5/issues


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

2016-04-13 Thread Pedro Lopes via Digitalmars-d-learn
In the second paragraph I meant to say: The first library that 
Derelict-Allegro (not dub) looks for is called:  
"liballegro_image-5.0.11.so" ...
I know dub has nothing to do with this at this point it already 
compile and linked it just couldn't execute for not finding the 
library.


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

2016-04-13 Thread Pedro Lopes via Digitalmars-d-learn

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@../../../.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.


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

2016-04-12 Thread Mike Parker via Digitalmars-d-learn

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.


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

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn

Never mind,  I used version 0.0.3, now works.
Thank you.


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

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn

On Monday, 11 April 2016 at 15:51:51 UTC, Mike Parker wrote:

On Monday, 11 April 2016 at 10:34:58 UTC, Pedro Lopes wrote:



it is definitely derelict-allegro5's fault.



Yes. As I said in my second post, change your dependency to 
0.0.5 and you should be good to go.


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 new dub.sdl:
«name "allegrotest"
description "A minimal D application."
copyright "Copyright © 2016, pedro"
authors "pedro"
dependency "derelict-allegro5" version="0.0.5"
»


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

2016-04-11 Thread Mike Parker via Digitalmars-d-learn

On Monday, 11 April 2016 at 10:34:58 UTC, Pedro Lopes wrote:



it is definitely derelict-allegro5's fault.



Yes. As I said in my second post, change your dependency to 0.0.5 
and you should be good to go.


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

2016-04-11 Thread Pedro Lopes via Digitalmars-d-learn

On Monday, 11 April 2016 at 00:36:28 UTC, Mike Parker wrote:



You say it happens when you try to "run" a project, but the 
error message sounds like it's happening before building even 
begins, correct? What platform are you on? What does your dub 
configuration look like? What does 'dub build -v' tell you?


Sorry for the delay (we are in different time zones),
I know my first post was kinda short, I did not gave enough info.
The error happens when I try to run the project.

I created the project with the dependency using this command:
" dub init allegrotest derelict-allegro5"
no errors are shown, the project is created just fine.

Then when I run the command: "dub run ", dub returns the error 
"Could not find a valid dependency tree configuration: "


If I run the command: "dub run --bare" dub returns this error: 
"Root package allegrotest contains reference to invalid package 
derelict-allegro5 0.0.4"


derelict-allegro5 might be the culprit... but maybe not entirely.

Whenever I ran the command: "dub build -v" it returns:
"Using dub registry url 'http://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at 
/var/lib/dub/packages/local-packages.json
Looking for local package map at 
/home/pedro/.dub/packages/local-packages.json
Note: Failed to determine version of package allegrotest at .. 
Assuming ~master.

Refreshing local packages (refresh existing: false)...
Looking for local package map at 
/var/lib/dub/packages/local-packages.json
Looking for local package map at 
/home/pedro/.dub/packages/local-packages.json
Version selection for dependency derelict-allegro5 
(derelict-allegro5) of allegrotest is missing.

Checking for missing dependencies.
Search for versions of derelict-allegro5 (1 package suppliers)
Search for versions of derelict-util (1 package suppliers)
Package derelict-allegro5 contains invalid dependency 
derelict-util (ci=0)

Could not find a valid dependency tree configuration: "


it is definitely derelict-allegro5's fault.

this is my (auto-generated) dub.sdl file:
« name "allegrotest"
description "A minimal D application."
copyright "Copyright © 2016, pedro"
authors "pedro"
dependency "derelict-allegro5" version="0.0.4" »

My platform is a linux-lts Antergos (basically Arch).



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

2016-04-10 Thread Mike Parker via Digitalmars-d-learn

On Sunday, 10 April 2016 at 12:14:54 UTC, Pedro Lopes wrote:

Hello,
Every time I try to run a project with derelict-allegro5 
package as a dependency, dub says:  "Could not find a valid 
dependency tree configuration"


I already cleaned the dub cache, that does not solve it,
allegro package is installed (from alleg.sourceforge.net).

dub works with derelict-SDL, etc.

Thank you.


You say it happens when you try to "run" a project, but the error 
message sounds like it's happening before building even begins, 
correct? What platform are you on? What does your dub 
configuration look like? What does 'dub build -v' tell you?


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

2016-04-10 Thread Mike Parker via Digitalmars-d-learn

On Monday, 11 April 2016 at 00:36:28 UTC, Mike Parker wrote:



You say it happens when you try to "run" a project, but the 
error message sounds like it's happening before building even 
begins, correct? What platform are you on? What does your dub 
configuration look like? What does 'dub build -v' tell you?


Nevermind. I think I've found the problem. I'll push a fix ASAP 
in version 0.0.5.