Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Windows compiled executable error fix guide (#73)
Browse files Browse the repository at this point in the history
* add guide to fix windows problem on compilation

* improve readme format
  • Loading branch information
dezashibi authored Mar 11, 2022
1 parent aede978 commit 3207f45
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3207f45

Please sign in to comment.