Closed aismann closed 1 year ago
Does the libEGL.dll
, libGLESv2.dll
, d3dcompiler_47.dll
in exe dir?
I got this same error and to fix it i had to copy the missing dlls that @halx99 mentioned above from the thirdparty angle folder to the bin folder of the project next to the exe.
- axmol version: 100a688
build cpp-tests with (use Angle): axmol\core\platform\CCPlatformConfig.h => define AX_USE_COMPAT_GL 1
#ifndef AX_USE_COMPAT_GL # define AX_USE_COMPAT_GL 1 #endif
Windows 10
--------------------------- Error launch application --------------------------- Can't create window More info: GLFWError #65542 Happen, EGL: Library not found --------------------------- OK ---------------------------
You should tell cmake to auto copy dll to target binary dir, not change defination in CCPlatformConfig.h
i.e.
cmake -B build -DAX_USE_COMPAT_GL=TRUE
i.e.
cmake -B build -DAX_USE_COMPAT_GL=TRUE
Copying the 3 dll to the "exe" folder works also for me.
Compiling from Visual Studio directly should also be an option. Its nice to build with angle or OpenGL directly. Maybe some more "Solution Configurations" is a good choice?
Debug Angle Release Angle
Should we add a sentence about coping the libEGL.dll, libGLESv2.dll, d3dcompiler_47.dll in exe dir? like: ... libEGL.dll, libGLESv2.dll, d3dcompiler_47.dll will not auytomaticvly in exe dir...
AX_USE_COMPAT_GL: whether use compat gl as renderer backend, default: FALSE
windows: whether use angleproject as GLES2 backend
apple: whether use GLES instead Metal backend
When you use cmake to config it, they will be automatically copy to exe dir, that the only recommand way for switching render backend to angle
build cpp-tests with (use Angle): axmol\core\platform\CCPlatformConfig.h => define AX_USE_COMPAT_GL 1
Windows 10