msys

How do I pass an absolute path to the adb command via git bash for windows?

元气小坏坏 提交于 2021-02-17 19:04:08
问题 I'm trying to pass a unix style path to the Android adb command using a git bash (msysgit) but the shell is interpreting my path incorrectly. This is what I've tried so far: $ adb push myfile /mnt/sdcard/ failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory $ adb push myfile "/mnt/sdcard/" failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory $ adb push myfile '/mnt/sdcard/' failed to copy 'myfile' to 'C:

<Windows>Why does std::thread::native_handle return a value of type 'long long unsigned int' instead of void* (a.k.a. HANDLE)?

邮差的信 提交于 2021-02-05 09:44:49
问题 I need to suspend a thread on windows via Windows SDK on msys. I tried something like std::thread thread(somefunction, someparameters); HANDLE handle=thread.native_handle(); SuspendThread(handle); But gcc told me the return value of native_handle() is 'long long unsigned int' but not void*. So I tried HANDLE handle=reinterpret_cast<HANDLE>(thread.native_handle()); But it does not work because when I called GetLastError() I received the error code 6 which means the handle is invalid. What

<Windows>Why does std::thread::native_handle return a value of type 'long long unsigned int' instead of void* (a.k.a. HANDLE)?

可紊 提交于 2021-02-05 09:44:37
问题 I need to suspend a thread on windows via Windows SDK on msys. I tried something like std::thread thread(somefunction, someparameters); HANDLE handle=thread.native_handle(); SuspendThread(handle); But gcc told me the return value of native_handle() is 'long long unsigned int' but not void*. So I tried HANDLE handle=reinterpret_cast<HANDLE>(thread.native_handle()); But it does not work because when I called GetLastError() I received the error code 6 which means the handle is invalid. What

<Windows>Why does std::thread::native_handle return a value of type 'long long unsigned int' instead of void* (a.k.a. HANDLE)?

故事扮演 提交于 2021-02-05 09:44:26
问题 I need to suspend a thread on windows via Windows SDK on msys. I tried something like std::thread thread(somefunction, someparameters); HANDLE handle=thread.native_handle(); SuspendThread(handle); But gcc told me the return value of native_handle() is 'long long unsigned int' but not void*. So I tried HANDLE handle=reinterpret_cast<HANDLE>(thread.native_handle()); But it does not work because when I called GetLastError() I received the error code 6 which means the handle is invalid. What

Why there is no mkdir in MSYS?

青春壹個敷衍的年華 提交于 2021-01-28 23:30:58
问题 Hello I've installed MinGW with Msys and there is no mkdir in bin folder of Msys. Why? How can I use Netbeans to compile C++ code? I get such error mkdir -p build/Debug/MinGW-Windows make.exe[2]: mkdir: Command not found when trying to compile in Netbeans 8.1 回答1: Several commands are missing when installing MinGW and Msys. E.g. when running the "/postinstall/pi.sh" as recommended in the "Getting started" guide, the following commands were missing: - mkdir - cp - rm I fixed it by downloading:

CMake: find wxWidgets built with MinGW/MSYS?

空扰寡人 提交于 2021-01-28 00:01:08
问题 I compiled wxWidgets 2.8.12 using MinGW. To actually do the build I invoked the autotools build files distributed with wxWidgets through the MSYS shell, using an install prefix of H:\MinGW-libs. The result of this is that I have a Unix style file tree containing my wxWidgets headers and libs (which are .a files, not .dll) with root directory H:\MinGW-libs. My problem is that I can't get CMake to find the files. When I try to use the "configure" button in the CMake gui it finds other

MSYS2 statically link output binary

ⅰ亾dé卋堺 提交于 2020-05-25 07:42:25
问题 Is there any way to statically link the generated .exe file from MSYS2 gcc? I tried many ways, but none of them worked. All generated .exe files require msys-2.0.dll, which I want to get rid of. So far, I tried to enable -ststic option, -static-libgcc option and pass these options to -Wl, but non of them works. I tried to strip the binary or not, with no difference but the output file size. I know I can do this in MSYS1.0 gcc, or mingw-w64 from Linux, but I can not do this in MSYS2.0. After

MSYS2 statically link output binary

馋奶兔 提交于 2020-05-25 07:42:07
问题 Is there any way to statically link the generated .exe file from MSYS2 gcc? I tried many ways, but none of them worked. All generated .exe files require msys-2.0.dll, which I want to get rid of. So far, I tried to enable -ststic option, -static-libgcc option and pass these options to -Wl, but non of them works. I tried to strip the binary or not, with no difference but the output file size. I know I can do this in MSYS1.0 gcc, or mingw-w64 from Linux, but I can not do this in MSYS2.0. After

ffmpeg mingw compilation 8192 char limits

元气小坏坏 提交于 2020-04-18 06:42:39
问题 I´m trying to compile ffmpeg shared with mingw64 on Windows 10. Here is the configure command: ./configure --arch=x86_64 --enable-shared --disable-static --prefix=/e/Downloads/ffmpeg-dyn/ Everything looks ok. Then I make: mingw32-make.exe -j16 But I encounter this error: LD libswresample/swresample-3.dll LD libswscale/swscale-5.dll dlltool -m i386:x86-64 -d libswresample/swresample-3.def -l libswresample/swresample.lib -D swresample-3.dll dlltool -m i386:x86-64 -d libswscale/swscale-5.def -l

windows下搭建ffmpeg环境

给你一囗甜甜゛ 提交于 2020-02-23 11:51:53
在windows下编译ffmpeg可以采用cygwin或msys+mingw两种方案,我个人比较喜欢msys+mingw方式,因为这样可以在windows下搭建一个类Unix操作系统,并且配置比cygwin要简单,因此本就是描述怎样建立msys+mingw的环境。 在windows下搭建ffmpeg编译环境在网上的文章很多,最为详细的可能是这篇文章: http://ffmpeg.arrozcru.org/wiki/index.php?title=Main_Page 。但是在由于版本问题,完全按照上面的描述是通不过的。 到 http://sourceforge.net/projects/mingw/files/ 下载最新版MinGW安装程序,我的是MinGW-5.1.6.exe 到 http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/MSYS-1.0.11.exe/download 下载MSYS-1.0.11,注意当前MSYS已经是1.0.14版,但是从1.0.11版之后,就再也没有安装程序了 到 http://prdownloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2?download