From 3207f457be0f3204df15a1367111159d3c888c4c Mon Sep 17 00:00:00 2001 From: Navid Dezashibi Date: Fri, 11 Mar 2022 05:38:21 +0400 Subject: [PATCH] Windows compiled executable error fix guide (#73) * add guide to fix windows problem on compilation * improve readme format --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8e4671b..d12aae3 100644 --- a/README.md +++ b/README.md @@ -379,9 +379,11 @@ choosing X11 version of glfw. Or similar errors which point to missing `libwinpthread-1.dll` file mean that you do not have path set correctly and MinGW can't find correct library files. -Make sure to include MinGW's bin folder in your PATH. The path to MinGW's bin -folder looks something like this by default: -`C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin`. +Based on [this answer in stack-overflow](https://stackoverflow.com/a/71207932) you can do the following to fix the problem: +- Install [MSYS2](https://www.msys2.org/) x64 +- Open MSYS2 MinGW x64 command prompt +- Run `pacman -S base-devel mingw-w64-x86_64-toolchain` to install the GCC toolchain (all components) +- Add `c:\msys64\mingw64\bin` to the System PATH ## Community