MSYS2 is a modern rewrite of MSYS, both of which are Cygwin (POSIX compatibility layer) forks with the aim of better interoperability with native Windows software. It aims to provide support to facilitate using the bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains. It comes with a port of ArchLinux's Pacman package manager. Three repos are provided with over 1000 packages.
Questions tagged [msys2]
978 questions
0
votes
0 answers
Batch command line arguments separated with && not interpreted as a single argument
I have this useful batch script named lxss.cmd added to my PATH:
::@ECHO OFF
@ECHO ON
set arg1=%*
"C:\Windows\System32\bash.exe" -c "%arg1%"
Which is outputting:
User@LANTI-DESKTOP C:\Users\User
$ lxss lsb_release -a && uname -a
User@LANTI-DESKTOP…

Lanti
- 2,299
- 2
- 36
- 69
0
votes
0 answers
Consolidating a Unix toolchain development environments: cygwin, MSYS2, git bash, Qt
I have used cygwin and emacs for a long time and there have always been problems integrating. xemacs under cygwin worked perfectly but require xwindows running which was unpleasant. Then I added git bash to the mix.
Now if you count, I have 4…

Dov
- 8,000
- 8
- 46
- 75
0
votes
0 answers
Cmake FILE() command prepends other path to provided file path
i have a problem with a cmake Findxxx script.
Im trying this on a msys2 shell inside win10 and my source code lies in /home/adrian/dev/libosmscout
Inside it i have a build dir from which i call cmake ..
Inside the problematic FindCairo.cmake file i…

acj
- 73
- 1
- 9
0
votes
0 answers
only one instace of gtk applications allowed when compiler under windows msys2?
I'm having the a problem when compiling under msys2 in windows environment:
I can using gcc to compile GTK+/gtkmm applications under msys2. But when I execute the application compiled in this environment, then I can own open one gnome based gui at…

Bimo
- 5,987
- 2
- 39
- 61
0
votes
1 answer
How do I define a path from an MSYS Makefile for a C++ program?
My problem: in a Makefile which I use in both the MSYS and the MSYS2 environment I know a path, PYTHON_ROOT_DIR, which shall be used at compilation time in a C++ program. Problem is PYTHON_ROOT_DIR is in the Makefile known as posix style path such…

Klamer Schutte
- 1,063
- 9
- 18
0
votes
1 answer
Problems with fflush(stdout);
I started programming and I learned about the command that is
fflush(stdout);. I understand why I need it for most platforms, but I'm still asking myself some questions...
1.Isn't \n supposed to buffer on msys2 because it's line buffered?…

Ender
- 1
- 2
0
votes
0 answers
Nethack build error in MSYS2 mingw32 shell win10 /usr/bin/sh: -c: line 1: syntax error: unexpected end of file
Trying to compile the NETHACK cloned version 3.6.0 from github in msys2 mingw32 shell under WIN10. I completed the steps
cd sys/winnt
call nhsetup.bat
cd ../../src
then
mingw32-make -f Makefile.gcc
fails
/usr/bin/sh: -c: line 1:…

M. P.
- 181
- 2
- 5
0
votes
1 answer
how can i build luasocket on msys2
Am new to lua/luajit. I was looking for a socket api for lua, and luasocket came up in searches, pacman -Ss luasocket doesnt exist so I have to compile it from source. Have not been successful, I was wondering if anyone can provide a makefile to…

user1550182
- 9
- 2
0
votes
1 answer
w3m Can't create config directory (~C:/msys32/.w3m)!
I've just compiled w3m for the Windows using TDM-GCC compiler but after running it it gives:
$ w3m
Can't create config directory (~C:/msys32/.w3m)!Can't find termcap entry xterm-256color
On my computer there is C:/msys32 and, I'm using…

Terry
- 1,206
- 1
- 10
- 26
0
votes
2 answers
How do I build/compile Fortran with MinGW gfortran via CMake?
I've got much more I've got to get figured out with CMake than just the following problem, but it's the first and simplest one which I still can't get past. I've scoured the interwebs and even borrowed the 'Mastering CMake' book from a friend, but…

B. Eckles
- 1,626
- 2
- 15
- 27
0
votes
0 answers
How to get current folder path with MSYS2/GTK3
static void open_file_chooser_button(GtkWidget *widget, gpointer user_data)
{
static gint count;
gchar *folder_path;
count += 1;
folder_path = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(widget));
g_print("count : %i,…

Gakgu
- 123
- 4
- 9
0
votes
1 answer
Is it bad to have both MinGW and Msys2 installed?
I have minGW gcc installed on my computer from previous projects, and I have recently installed Msys2 so I could develop with GTK. Is it bad to have MinGW and a instance of MinGW on Msys2 installed on the same computer?

Supercap2F
- 45
- 4
0
votes
1 answer
bdist_wheel not working under MSYS2
I'm attempting to build a Python package using under a MSYS2 MINGW64 shell on a Windows 7 VirtualBox VM. The package builds, installs and imports successfully on Linux.
I can build a binary wheel under MSYS2...
$ python setup.py bdist_wheel
running…

nokome
- 9,834
- 3
- 14
- 15
0
votes
1 answer
Why Cross gdb needs libexpat-1.dll?
I just compiled a cross gdb by compiling the source on MSYS2/MINGW64. But when I run gdb it throws an error and complains that it can not start because it needs libexpat-1.dll.
This is what I did to compile the gdb:
Got the source code git clone…

Ali
- 1,001
- 2
- 14
- 32
0
votes
1 answer
Trouble installing hmatrix through MSYS2 on Windows 10
I've been trying to install hmatrix on my (64-bit) Windows 10 computer; after searching through and trying many possible solutions (including the instructions under "Windows" and "Alternative Windows Build" given here), I decided to pursue the…

Christian Gorski
- 1
- 2