Cannot get Derelict to work

Whirlpool via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 7 04:55:30 PST 2016


Hi,

Sorry, I have a problem again :)

I tried to compile this example :
http://www.glfw.org/docs/latest/quick.html#quick_example
which required to add derelict-gl3

My code is currently this : http://pastebin.com/A5seZmX6

It compiles without errors, but crashes immediately with again 
exceptions of the form :
First-chance exception: 
derelict.util.exception.SymbolLoadException Failed to load OpenGL 
symbol [glGetnTexImage] at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)


The output of the Visual Studio console is this :

C:\Windows\SysWOW64\winmmbase.dll unloaded.
C:\Windows\SysWOW64\winmmbase.dll unloaded.
C:\Windows\SysWOW64\winmmbase.dll unloaded.
C:\Windows\SysWOW64\atigktxx.dll unloaded.
First-chance exception: 
derelict.util.exception.SymbolLoadException Failed to load OpenGL 
symbol [glGetnTexImage] at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)

Unhandled exception: derelict.util.exception.SymbolLoadException 
Failed to load OpenGL symbol [glGetnTexImage] at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)

First-chance exception: 
derelict.util.exception.SymbolLoadException Failed to load OpenGL 
symbol [glGetnCompressedTexImage] at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)

Unhandled exception: derelict.util.exception.SymbolLoadException 
Failed to load OpenGL symbol [glGetnCompressedTexImage] at 
..\AppData\Roaming\dub\packages\derelict-util-2.0.4\source\derelict\util\exception.d(35)

First-chance exception: 0xc0000005: Access violation
Unhandled exception: 0xc0000005: Access violation


Is it the same kind of problem as before ? If my understanding is 
correct [1], I need to link with the OpenGL DLL, don't I ? I 
found that I have an opengl32.dll file in C:\Windows\System32, 
and tried adding the path to it in the linker configuration of 
Visual Studio. I've also tried copying it to my bin target 
folder, but it still doesn't work. I also tried compiling in 
64-bit mode, but I get different errors :
C:\Windows\System32\winmmbase.dll unloaded.
C:\Windows\System32\winmmbase.dll unloaded.
C:\Windows\System32\winmmbase.dll unloaded.
C:\Windows\System32\atig6txx.dll unloaded.
First-chance exception: 0xc0000096: Privileged instruction
Unhandled exception: 0xc0000096: Privileged instruction
The thread 0x11cc has exited with code 255 (0xff).
The thread 0x3d0 has exited with code 255 (0xff).
The thread 0x12c0 has exited with code 255 (0xff).
The program '[8112] derelicttest.exe' has exited with code 255 
(0xff).

I am aware that this example from GLFW uses deprecated functions 
from OpenGL 2, is that the problem ? (I will try OpenGL 4 with 
the tutorials at [2] soon)

Please can you help me, thanks in advance

[1] http://derelictorg.github.io/dynstat.html
[2] http://antongerdelan.net/opengl/




More information about the Digitalmars-d-learn mailing list