cppit / jucipp

A lightweight & cross-platform IDE supporting the most recent C++ standards. This project has moved to https://gitlab.com/cppit/jucipp.
https://gitlab.com/cppit/jucipp
MIT License
883 stars 98 forks source link

MSYS2: Build instructions need updating #372

Closed gitbugged closed 6 years ago

gitbugged commented 6 years ago

I'm sure this is a simple/trivial thing to fix, but it's new to me and I can't figure it out.

Per instructions, we are to install a bunch of packages, but one of them is missing:

pacman -S mingw-w64-x86_64-cmake
error: target not found mingw-w64-x86_64-cmake
pacman -S cmake
cmake -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64 ..
CMake Error: Could not create named generator MYSYS Makefiles

I can't seem to get past this point.

eidheim commented 6 years ago

I think the solution is to use the MinGW-w64 shell, not the MSYS2 shell.

gitbugged commented 6 years ago

Where can I find the correct download for MingGW-w64 shell?

Seems that upstream pulled mingw-w64-x86_64-cmake PKGBUILD, as per repo package list: https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/x86_64/

eidheim commented 6 years ago

Please look in the folder where you installed msys2

gitbugged commented 6 years ago

That solved the issue, thank you! :+1:

For reference the correct shell is:

C:\msys64\mingw64.exe 

The MSYS2 shell was throwing the error for reasons unknown.

Edit: Ok. Seems that the shell determines the pacman.d/mirrorlist. In turn, it was unable to find the package located at:

https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/

All working now.