| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
October 24, 2014 How do I use dub? | ||||
|---|---|---|---|---|
| ||||
I intent to use D to make a small 2D game.
I have downloaded eclipse, DDT plugin and dub. I also set the path to dub in eclipse.
So I made a new project, tested a writeln and it worked. The next step was to add some dependencies for derelict. I need SFML for now (and DerelictUtils of course).
So this is what I've done:
{
"name" : "DTest",
"description" : "A minimal D bundle.",
"dependencies" : {
"derelict-util": ">=1.0.3",
"derelict-sfml2": "~2.1"
},
"versions-x86_64": ["UseAmd64Impl"],
"lflags": ["-I/home/minas/.dub/packages/derelict-sfml2-2.1/lib", "-LDerelictSFML2"]
}
The way I specified the library seems very ugly to me. Essentially it's a full path... How can I tell dub to use it by locating it automatically from its local repository?
| ||||
October 24, 2014 Re: How do I use dub? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Minas Mina | Oh and another thing: The program compiles right now but I can't execute it because for some reason: Failed to create a child process. Cannot run program "/home/minas/Projects/eclipse_workspace/DTest/dtest" (in directory "/home/minas/Projects/eclipse_workspace/DTest"): error=13, Permission denied Running from terminal yields the same error. | |||
October 25, 2014 Re: How do I use dub? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Minas Mina | On Friday, 24 October 2014 at 23:46:51 UTC, Minas Mina wrote:
>
> The way I specified the library seems very ugly to me. Essentially it's a full path... How can I tell dub to use it by locating it automatically from its local repository?
You don't. That's what dub does by default.
| |||
October 25, 2014 Re: How do I use dub? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Minas Mina | On Friday, 24 October 2014 at 23:50:26 UTC, Minas Mina wrote:
> Oh and another thing: The program compiles right now but I can't execute it because for some reason:
> Failed to create a child process.
> Cannot run program "/home/minas/Projects/eclipse_workspace/DTest/dtest" (in directory "/home/minas/Projects/eclipse_workspace/DTest"): error=13, Permission denied
>
> Running from terminal yields the same error.
That's a file permissions problem. Make sure that you have write access to that directory.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply