msys2

MSYS2: How to disable automatic translation of pathname to drive letter?

别说谁变了你拦得住时间么 提交于 2020-01-22 02:21:07
问题 I'm facing an issue when testing a C program compiled with mingw in the MSYS2 shell: I wrote a command line parser that accepts options according to the windows convention (starting with / ). If I call my program like this to generate an output file: ./example.exe /o test What ends up in argv[1] is actually O:/ . It works fine when testing from a console window running CMD.EXE . This truly minimal program demonstrates the behavior: #include <stdio.h> int main(int argc, char **argv) { if (argc

Executing a script in MSYS2/MinGW

浪子不回头ぞ 提交于 2020-01-01 03:20:15
问题 On Windows, if I start c:\msys64\mingw64.exe , it opens a shell, where I can build my project, let's say by calling a release bash script (to simplify). Everything works fine. Now, I would like to execute my release script on mingw64 directly, without interaction. I tried: c:\msys64\mingw64.exe /c/the/full/path/release A window opens and closes, it does not work. I attempted to use bash directly, but it seems the environment is not correctly set: > c:\msys64\usr\bin\bash -c ls /usr/bin/bash:

How to obtain older versions of packages using MSYS2?

强颜欢笑 提交于 2019-12-31 10:47:48
问题 I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation. I installed the MSYS2 package manager into the default folder, C:\msys64 , updated it by running update-core and pacman -Su . I then downloaded the MinGW64 package using pacman -S mingw-w64-x86_64-gcc , which has been placed into C:\msys64\mingw64 . The problem is, pacman -S mingw-w64-x86_64-gcc currently downloads the version 5.0, which is not yet supported by CLion. Does MSYS2 support installing

What files of MinGW need to be deployed?

若如初见. 提交于 2019-12-25 07:46:52
问题 I compiled a Linux software in MinGW64 (MSYS2) on Windows with gcc-6.3.0 and gcc-gnat-6.3.0. I would like to assemble an installer package or zip file, that contains all necessary files. What parts of MinGW are required at a destination machine? I don't want to ship a complete MSYS2/MinGW64, because it has 3 GiB! The executable has only 10 MiB. I also won't demand a user to install MSYS2 and MinGW64, because it's a nightmare to install it on a Windows machine. The package manager (pacman) is

Install GTK for c on Windows 10?

Deadly 提交于 2019-12-25 02:46:33
问题 Can you tell me how to install GTK on windows 10 or have a step by step guide, all the ones I've tried have not helped me. Possibly if someone also explain how to compile from cmd or prepare an IDE (code: block maybe). 回答1: Any commands I mention should be run at the MINGW shell, found here: C:\msys64\msys2_shell.cmd First update msys2 with pacman -Syu Make sure you have installed GCC...Install the required toolchain for GCC with pacman -S mingw-w64-x86_64-toolchain . When using pacman, just

apache under msys2: how could one setup httpd to load its modules on MSYS2 (generate .so instead of .a)?

♀尐吖头ヾ 提交于 2019-12-25 01:27:38
问题 I could build httpd as described here but when trying to execute it, httpd claim for a missing *.so library: $ ./httpd httpd: Syntax error on line 66 of /home/username/httpd/conf/httpd.conf: Cannot load modules/mod_authn_file.so into server: No such file or directory I thus renamed the module library names referenced in httpd.conf (.so -> .la , then -> .a) but httpd complains about an exec format error: $ ./httpd httpd: Syntax error on line 66 of /home/username/httpd/conf/httpd.conf: Cannot

Running libxlsxwriter on Windows

試著忘記壹切 提交于 2019-12-24 02:15:16
问题 I am trying to use libxlsxwriter , but I can seem to get things to compile or run correctly. I followed the directions for Windows using Mingw-w64 and msys2 available here: http://libxlsxwriter.github.io/getting_started.html. I installed msys2 from their website and updated everything using pacman -Syu . Then I installed zlib with the recommended: # Install the dev tools for libxlsxwriter. pacman -S git gcc make zlib-devel Then I run the code to download and compile libxlswriter : # Clone and

C++ Makefile build cannot be canceled using Windows 7, Eclipse CDT, MinGW and MSYS2

♀尐吖头ヾ 提交于 2019-12-24 00:58:14
问题 I'm maintaining a C++ build system running on Windows and consisting of the named components. When we upgraded from Windows XP to Windows 7 some time ago we noticed that builds could be canceled any more, the Eclipse Cancel button just grays but the build always runs to the end. We further found that by using MSYS instead of MSYS2, the build can be canceled also in Windows 7, but the multicore build (e.g. make -j4) hangs right from the start (while working with MSYS2). We need multicore, so

Error installing Sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)

怎甘沉沦 提交于 2019-12-23 11:35:15
问题 I tried to install Sass. I installed Ruby and MSYS2 prior to that, the latest from all with Chocolatey: choco install ruby choco install msys2 Seemingly they were properly installed. ruby -v results in: ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32] When I tried to run gem install sass I received the following error message: ERROR: Error installing sass: The last version of ffi (< 2, >= 0.5.0) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9

Why won't my 32-bit Fortran/C DLL compile in MSYS2?

喜欢而已 提交于 2019-12-19 12:23:34
问题 I'm trying to compile a DLL with mixed Fortran/C code on 64-bit Windows 7 in MSYS2 ( msys2-x86_64-20160205 ) with gcc (5.3.0). I want to compile it 32-bit. (It works just fine if I leave out the -m32 flags and compile it 64-bit.) Being as inexperienced with this sort of thing as I am, I'm likely making some pretty stupid mistakes... so my apologies in advance! The brick wall I seem to be running into is the following. I have successfully (I think) installed the 32-bit toolchain, but when I