Install Derelict3 with GLFW

I am trying to use OpenGL and GLFW with Derelict3 for the D language, but I have some problems with glfw3.dll and I'm not sure what I did wrong:

  • I downloaded Derelict3 from https://github.com/aldacron/Derelict3 and ran build.d and linked *.lib (DMD compiler) with my project.
  • Since Derelict3 seems to need glfw3.dll , I cloned the Git git://glfw.git.sourceforge.net/gitroot/glfw/glfw repository git://glfw.git.sourceforge.net/gitroot/glfw/glfw .
  • I created the build folder and called cmake -G "MinGW Makefiles" .. from the inside and got glfw.dll , glfwdll.lib and libglfw.a .
  • Then I copied glfw.dll to the project directory and renamed it to glfw3.dll .

But when I run my program, I get an error:

 derelict.util.exception.SymbolLoadException@.. \import\derelict\util\exception.d(38): Failed to load symbol glfwSetErrorCallback from shared library glfw3.dll 

Does anyone know how to configure Derelict3 ?

+4
source share
1 answer

You are using the wrong Repo, glfw3 moved to github: https://github.com/elmindreda/glfw .

The error you see is caused by the old version of glfw , in this old version there is no character called glfwSetErrorCallback .

+3
source

Source: https://habr.com/ru/post/1439013/


All Articles