Questions tagged [msys2]

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.

978 questions
0
votes
0 answers

Create a shared *.dll library using/include a *.a Static library

I want to create a shared *.dll library using a *.a Static library Below is my CMakeLists.txt cmake_minimum_required(VERSION 3.10) project(Projects) set(CMAKE_CXX_STANDARD…
Niraj Sanghani
  • 1,493
  • 15
  • 23
0
votes
0 answers

MSYS2 and Windows Runtime Library

I'm trying to compile a C/C++ library under msys2. The problem is, the library requires Windows Runtime Library (WRL). And maybe more parts of Visual C++ Redistributable libraries. However I did not get that far in compilation process. I found this…
Lorin
  • 343
  • 4
  • 15
0
votes
1 answer

pkg-config errors when compiling cgo program with Mingw64

I'm trying to compile a cgo program that uses ffmpeg in a Mingw64 environment. I'm getting errors from pkg-config saying it can't find the ffmpeg libraries: $ go build -x…
chris
  • 1,638
  • 2
  • 15
  • 17
0
votes
0 answers

Trying to build ARPACK, but many source files are not being compiled

Let me start by saying I am not a superuser and somewhat of a noob here, but I have a basic understanding of what I'm doing. I have installed MSYS2 and MinGW-w64 following the directions here. I am working on 64-bit Windows 10, and I want to…
Kai
  • 213
  • 1
  • 12
0
votes
1 answer

How to add newline in MSYS2?

I am trying to add a newline when writing a heredoc to a file but it will just fail. read -r -d '' VAR << EOM add "main.exe" "/Windows\System32\main.exe" \r\n add "main.exe" "/Windows\System32\main.exe" \r\n EOM echo $VAR > test.txt Result: add…
0
votes
1 answer

regex.h in msys2 (windows )

I am trying to compile cvs-fast-import (https://gitlab.com/esr/cvs-fast-export) on windows running msys2 but when I run make I get an error: main.c:9:10: fatal error: regex.h: No such file or directory This referrs to main.c which looks like…
Kim Steinhaug
  • 478
  • 3
  • 13
0
votes
1 answer

Eclipse pkg-config plugin not working with MSYS2 Mingw on Windows

I am trying to use gtkmm3 in eclipse on windows with Mingw-w64. I have installed MSYS2 and development tools including pkg-config under Mingw-w64. I have added the mingw and msys2 bin directories to my windows PATH. The commands can be run from a…
Androprise
  • 128
  • 10
0
votes
1 answer

Eclipse CDT undefined reference (package that was downloaded via MYSYS2)

So I basically only coded in Java at College, this time I want to start my new Project in C++ and want to keep the Eclipse IDE that I have always used. I need the openCV and Tesseract packages (import). I have googled and researched for quite a…
Ojav
  • 678
  • 6
  • 22
0
votes
0 answers

Window does not appear for GTK3 app in windows built with msys2

I have successfully built a simple hello world app using newest GTK+. I used msys2 to install all dependencies including GTK+, compile and link the program. When ran it is supposed to open a new window, but nothing happens. When run under gdb it…
Pete
  • 1
  • 2
0
votes
1 answer

Different versions of compilers + libgcc on windows encountered

I have a third-party library which depends on libgcc_s_sjlj-1.dll. My own program is compiled under MSYS2 (mingw-w64) and it depends on libgcc_s_dw2-1.dll. Please note that the third-party library is pure binaries (no source). Please also note that…
0
votes
0 answers

Compile all .c files in directory - and Subfolders - using GCC compiler in MSYS2

is there a way to compile all .cfiles in the current directory - including all .c files in all subfolders. Trying out the Wildcard like gcc -c *.c searches only in the current directory... Thank you in advance...
MWeb
  • 41
  • 1
  • 8
0
votes
1 answer

Problems installing Ruby and MSYS2 on Windows 8

I'm trying to run my Jekyll blog (previously created on a Linux machine) on a pc running Windows 8. I just installed Ruby + MSYS via RubyInstaller NOTE For MSYS I executed: ridk install 1 2 3 Now I'm trying to run (in MSYS): gem install jekyll…
davioooh
  • 23,742
  • 39
  • 159
  • 250
0
votes
1 answer

gtkmm-3.0 : Program Build Failed Msys2 Netbeans using pkg-config

Net-beans : 8.2 Windows : 10 64-bit MinGW-w64 g++ : 7.2 I am trying to create an empty window using gtkmm 3.0 referring Programming with gtkmm book. I am referring (3.1) Simple Example from Chapter 3. Basics #include int main(int argc,…
Dark Sorrow
  • 1,681
  • 14
  • 37
0
votes
2 answers

msys2 and headers in the 'wrong' place

Ok, so, I'm trying to build a third party library with msys2 and I've run into a problem with a few headers, such as gtk.h; the library I'm trying to build expects this to be located via #include . Now, experience on Linux tells me that…
Doug
  • 775
  • 2
  • 11
  • 24
0
votes
1 answer

How does RubyInstaller come to know the path of MSYS2?

I wanted to play around with the latest Ruby on windows, so I installed the MSYS2 toolkit first. After this I ran the RubyInstaller for version 2.4.2 and it was able to find out that MSYS2 is already installed on my system. I checked in the…
Rajkaran Mishra
  • 4,532
  • 2
  • 36
  • 61