Cannot open file glfw3.lib

so I downloaded the source zip from the official website and then I extract the glfw3 zip after that I created a build folder and opened cmake and used these settings


I then opened the glfw.sln file in the build folder and build the solution but I get this error cannot open file ‘…\src\Debug\glfw3.lib’ and I went to the debug folder and the glfw3 file is not there so is this problem in the cmake part ?

Configure and build again and then, on the /build folder try “cmake --build .”

You should have GLFW_BUILD_WIN32 set ON, which is the default for Windows. This means build binaries for the Windows system, rather than build 32bit binaries. WIN32 is a common name for the modern Windows system.

1 Like