BisonCompilationGuide.txt 969 B

1234567891011121314151617
  1. Set up MinGW environment so you can compile Bison:
  2. - Download MinGW from: http://www.mingw.org/ and install
  3. - Make sure your installation has these packages:
  4. - mingw-developer-toolkit
  5. - mingw32-base
  6. - msys-base
  7. - Launch MSYS from MinGW/msys/1.0/msys.bat
  8. - Mount MinGW in MSYS: mount c:/mingw /mingw
  9. Download Bison source from: https://www.gnu.org/software/bison/ and extract it somewhere on your system.
  10. Configure and compile:
  11. - Launch MSYS from MinGW/msys/1.0/msys.bat
  12. - input "path/to/bison/folder/configure --prefix=/mingw" (no quotes) and wait
  13. - replace "path/to/bison/folder" with actual path. Do not call "./configure" while you are in Bison folder. You must be outside of it,
  14. and then input the path to configure as shown above, otherwise you will run into issues with linking.
  15. - input "make" (no quotes) and wait
  16. If successful your "bison.exe" executable will be in /src subfolder of the folder you called configure and make in.