msys

Is it possible to mimic process substitution on msys /mingw (with bash 3.x)

馋奶兔 提交于 2019-12-22 17:36:10
问题 I am trying to use process substitution to avoid using temporary files. I tried the following: diff <(echo "a") <(echo "b") on mingw32/msys (from http://www.mingw.org/ as of Dec 2013), and got: sh: syntax error near unexpected token `(' Running the same thing on Ubuntu 12.04 returns: 1c1 < a --- > b The msys I use probably has bash 3.1. I was wondering if it is possible to work around the issue so that the same job can be done in msys/older bash without using temporary files. Thanks. 回答1: I

cmake MSYS Makefiles generator missing

我只是一个虾纸丫 提交于 2019-12-22 04:04:42
问题 I have cmake 3.2.3 installed via pacman. I get an error when I try to use it from a msys64 shell: $ cmake -G "MSYS Makefiles" .. CMake Error: Could not create named generator MSYS Makefiles cmake --help does not list it as an available generator. I do see there is an MSYS.cmake in /usr/share/cmake-3.2.3/Modules/Platform. What am I missing? 回答1: Instead of installing the cmake package, I think you need to install mingw-w64-i686-cmake (or the 64-bit version mingw-w64-x86_64-cmake ). 回答2: If you

Executing MSYS from cmd.exe with arguments

99封情书 提交于 2019-12-19 09:25:17
问题 I am trying to learn the wxWidgets library, using MinGW and msys to compile the code. So far so good, but I can not find a way to send a command to MSYS through CMD.exe. I use Sublime Text to edit files, and it has an option to run makefiles. I want my makefiles to be able to open an instance of MSYS and send the g++ command and arguments to it. Example: Right now my makefile is: test.exe : main.cpp g++ -s main.cpp -o test.exe `wx-config --cxxflags` `wx-config --libs` When mingw32-make goes

Problem compiling freetype2 with MinGW/MSYS

痞子三分冷 提交于 2019-12-19 03:18:13
问题 There seems to be a problem compiling freetype2 with MinGW and MSYS My attempts on a clean copy of the freetype source, and an unadulterated MinGW and MSYS give: Andrew@MCARDLE-PC ~/documents/code $ cd freetype-2.3.11 Andrew@MCARDLE-PC ~/documents/code/freetype-2.3.11 $ ./configure FreeType build system -- automatic system detection The following settings are used: platform unix compiler cc configuration directory ./builds/unix configuration rules ./builds/unix/unix.mk If this does not

Getting gmp libraries to

做~自己de王妃 提交于 2019-12-18 09:25:29
问题 I am having a problem getting a program to compile using: Latest Msys and MinGW installations Windows 7 Pro / Intel Core I5 / 8GB GMP 5.1.2 libraries - the header file is in C:\gmp\include - the .a and .la files are in C:\gmp\lib I originally posted this as an Eclipse question, but the silence has been deafening. I have since tried compiling using just gcc in msys, and I get the same problem. I compile using: g++ -I /c/gmp/include -O0 -g3 -Wall -c -fmessage-length=0 -o main.o ./main.cpp which

Git-windows case sensitive file names not handled properly

余生长醉 提交于 2019-12-17 22:23:28
问题 We have the git bare repository in unix that has files with same name that differs only in cases. Example: GRANT.sql grant.sql When we clone the bare repository from unix in to a windows box, git status detects the file as modified. The working tree is loaded only with grant.sql, but git status compares grant.sql and GRANT.sql and shows the file as modified in the working tree. I tried using the core.ignorecase false but the result is the same. Is there any way to fix this issue? 回答1: Windows

How to build OpenSSL with MinGW in Windows? [closed]

只愿长相守 提交于 2019-12-17 22:09:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to build OpenSSL in Windows with MinGW, How can I do that? Please help me. Thanks. 回答1: This is an extract from a personal how-to I wrote. It has since been transformed to a script (look at the OpenSSL section, obviously). It assumes you have a working installation of MinGW and that you have a working

Windows PATH to posix path conversion in bash

北城余情 提交于 2019-12-17 17:39:25
问题 How can I convert a Windows dir path (say c:/libs/Qt-static ) to the correct POSIX dir path ( /c/libs/Qt-static ) by means of standard msys features? And vice versa? 回答1: I don't know msys , but a quick google search showed me that it includes the sed utility. So, assuming it works similar in msys than it does on native Linux, here's one way how to do it: From Windows to POSIX You'll have to replace all backslashes with slashes, remove the first colon after the drive letter, and add a slash

Using msysGit from MinGW and vice versa

≯℡__Kan透↙ 提交于 2019-12-17 15:56:42
问题 I am using git as my revision control system. To do so, I installed msysGit to checkout my repositories on MSW. Now I want to compile my programs with MinGW and found this "problem" for me: When I install MinGW and MSYS via mingw-get I can compile my program, no problem. But I can not access git. When I use the Git Bash, I can work with git, but can not compile. Is there any possibility to: install MinGW "into" Git Bash (because it already contains msys, didn't it?) OR to set "links" between

How to access windows enviroment variables on MSYS?

非 Y 不嫁゛ 提交于 2019-12-13 17:06:37
问题 I want to build ffmpeg by vs2015 from msys2. In the first add vs2015\vc\bin\amd64 in to path enviroment in windows. Run "vs2015 x64 command prompt" as administrator then run vcvarsall.bat amd64. In the final go to "msys" path and then run "msys2_shell.cmd". I use "which cl" command for localize cl.exe. Output: which: no cl in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/) How to access to windows