Thread overview
Trying to use DerelictGL3.load
Apr 25, 2020
Pillager86
Apr 25, 2020
Luis
Apr 26, 2020
Mike Parker
Apr 28, 2020
Pillager86
April 25, 2020
Not sure which subforum to post this but I'm hoping someone here knows. I'm trying to use the derelict-sdl2 and derelict-gl3 packages from dub but when my program calls DerelictGL3.load() I get a segmentation fault (Ubuntu). I installed libgl1-mesa-dev on my system. DerelictSDL2.load() works just fine.
April 25, 2020
On Saturday, 25 April 2020 at 22:00:00 UTC, Pillager86 wrote:
> Not sure which subforum to post this but I'm hoping someone here knows. I'm trying to use the derelict-sdl2 and derelict-gl3 packages from dub but when my program calls DerelictGL3.load() I get a segmentation fault (Ubuntu). I installed libgl1-mesa-dev on my system. DerelictSDL2.load() works just fine.

You should try bindbc-sql and bindbc-glas both replaced derelict. I made a little dumb example of using both : https://github.com/Zardoz89/dlang-bindbc-sdl-opengl-example
April 26, 2020
On Saturday, 25 April 2020 at 22:00:00 UTC, Pillager86 wrote:
> Not sure which subforum to post this but I'm hoping someone here knows. I'm trying to use the derelict-sdl2 and derelict-gl3 packages from dub but when my program calls DerelictGL3.load() I get a segmentation fault (Ubuntu). I installed libgl1-mesa-dev on my system. DerelictSDL2.load() works just fine.

I'm not maintaining Derelict anymore. I've ported both the SDL and OpenGL bindings over to BindBC, which uses a different internal architecture. Please use that instead.

Please read through the README for each project to understand how to configure what you need at compile time. If you choose to use the dynamic configuration (loading the libraries manually via loadSDL and loadOpenGL), then you'll also want to see the README for bindbc-loader to understand error handling in BindBC.

https://github.com/BindBC/bindbc-sdl/blob/master/README.md
https://github.com/BindBC/bindbc-opengl/blob/master/README.md
https://github.com/BindBC/bindbc-loader/blob/master/README.md
April 28, 2020
On Sunday, 26 April 2020 at 01:57:00 UTC, Mike Parker wrote:
> On Saturday, 25 April 2020 at 22:00:00 UTC, Pillager86 wrote:
>> [...]
>
> I'm not maintaining Derelict anymore. I've ported both the SDL and OpenGL bindings over to BindBC, which uses a different internal architecture. Please use that instead.
>
> Please read through the README for each project to understand how to configure what you need at compile time. If you choose to use the dynamic configuration (loading the libraries manually via loadSDL and loadOpenGL), then you'll also want to see the README for bindbc-loader to understand error handling in BindBC.
>
> https://github.com/BindBC/bindbc-sdl/blob/master/README.md
> https://github.com/BindBC/bindbc-opengl/blob/master/README.md
> https://github.com/BindBC/bindbc-loader/blob/master/README.md

BindBC works amazingly well thank you.