Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSYS2 - compilation on Windows #177

Open
syzygy1 opened this issue Dec 20, 2020 · 1 comment
Open

MSYS2 - compilation on Windows #177

syzygy1 opened this issue Dec 20, 2020 · 1 comment

Comments

@syzygy1
Copy link
Owner

syzygy1 commented Dec 20, 2020

Today I installed MSYS2 on a Windows laptop and had some problems getting Cfish to compile (due to _WIN32 not being defined) until I found out that I had to install the MinGW 64-bit toolchain. I have therefore added some very basic instructions to the README. If someone happens to try them out and finds that more packages need to be installed or that some other crucial information is missing, please let me know.

@ppigazzini
Copy link

Some notes:

  • the package group mingw-w64-x86_64-toolchain installs all the gnu programming packages (ada. fortran, objc, gdb etc.). The minimal setup is:
    pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make
  • both previous setups install mingw32-make, so the directive to compile Cfish is:
    mingw32-make target [ARCH=arch] [COMP=compiler]
    this can be hard to find or confusing for a non expert user of MSYS2/MinGW-w64
  • MSYS2 has also the make package that runs with the POSIX emulation layer, in this case the minimal setup is:
    pacman -S mingw-w64-x86_64-gcc make
    and the directive to compile Cfish is the common:
    make target [ARCH=arch] [COMP=compiler]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants