Cannot get Derelict to work

Whirlpool via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 3 04:18:17 PST 2016


Hi, I'd like to use Derelict, more specifically the GLFW package, 
but so far I have been unable to make it work. (I posted in the 
IDE section but didn't get a reply (link below), and since the 
Derelict forum seems not to exist anymore, I post here. I hope it 
is OK to do so)

Things I tried :

- First I tried to create a VisualD project on Windows, and to 
manually compile derelict-util and derelict-glfw3: 
http://forum.dlang.org/post/ssibsuuhuaswaelxzpxt@forum.dlang.org

- then, I tried on Fedora 23, which has packages in its 
repositories for LDC and Derelict. I first tried to use a command 
such as this one :
ldc2 -I=/usr/include/d/derelict -L=DerelictUtil -L=DerelictGLFW3 
glfw_test.d
/usr/bin/ld: ne peut pas trouver DerelictUtil: Aucun fichier ou 
dossier de ce type (which means "cannot find DerelictUtil. No 
such file or directory")
/usr/bin/ld: ne peut pas trouver DerelictGLFW3: Aucun fichier ou 
dossier de ce type
collect2: erreur: ld a retourné 1 code d'état d'exécution
Error: /usr/bin/gcc failed with status: 1

I indeed don't have a /usr/bin/ld directory. Is the command I 
tried correct ?

Still on Fedora, I've also tried with DUB :
$ dub build
Performing "debug" build using ldc2 for x86_64.
derelict-util 2.0.4: building configuration "library"...
Error: failed to create path to file: 
.dub/obj/../../.dub/packages/derelict-util-2.0.4/.dub/build/library-debug-linux.posix-x86_64-ldc_0-A2036AF2F4C2D6CD8A2817C4F5C50907/libDerelictUtil.a
No such file or directory
ldc2 failed with exit code 1.


- trying again with DUB on Windows 10, I created a dub project, 
added derelict-util and derelict-glfw3 as dependencies in the 
dub.sdl file, and then used "dub generate visuald", but when I 
try to build in Visual Studio, I get the following kind of 
exceptions :

First-chance exception: 
derelict.util.exception.SharedLibLoadException Failed to load one 
or more shared libraries:

	glfw3.dll - Le module spécifié est introuvable. (The specified 
module cannot be found.) at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)
	
After that, I've tried compiling derelict-util and derelict-glfw3 
in AppData, because there seemed to be no lib files. But isn't 
one of the points of using DUB precisely that users don't have to 
compile the dependency libs themselves ?

I'd really need a tutorial or help about that. I could only find 
a couple of old posts or articles from years ago.

Thank you


More information about the Digitalmars-d-learn mailing list