msys2

Configuring Eclipse for using with MSYS2

匆匆过客 提交于 2019-12-19 09:42:34
问题 My I use Eclipse Mars and MSYS2. Eclipse does not recognize my MSYS2 installation. It contains Mingw-w64 for 32 bit compilation. Things I have found on the Internet did not work. What should I do? 回答1: Well, a bit late to the party, but it looks like there is nothing special about MSYS2: the usual procedure of setting up Eclipse to work with MinGW-w64 installation worked for me just fine. The main issue is that as described in Eclipse CDT FAQ to detect MinGW toolchain CDT tries to find

How to distribute a GTK+ application on Windows?

自古美人都是妖i 提交于 2019-12-17 16:33:28
问题 I have installed GTK+ (specifically GTK3) via MSYS and MinGW on Windows. I now want to copy the GTK+ dlls to my application directory so that it can be run on a computer without a global GTK+ installation. Which dlls are required for GTK+ to operate? 回答1: You have some hints on the Windows page of the GTK+ website. This is the section named Building and distributing your application . It features a blog post about distributing a GTK+ application on Windows. The solution proposed there is to

How to use MinGW-64 with Qt Creator

旧街凉风 提交于 2019-12-17 15:29:20
问题 I am aware that there are many post about this, but I honestly didn't understood any of it. So, how do I install a kit for my Qt Creator (open source 5.7)? I already downloaded and installed MSYS2.... don't know what to do with it. I already downloaded and installed Qt64 - NG.... no clue what to do next. I just want to be able to develop in Qt and chose betwen MinGW 32 and MinGW 64. Thanks in advance! EDIT: I also checked the wiki page. Most of the commands didn't worked. And I was told that

How do you build OpenLDAP libraries on Windows using Msys2 and MinGW?

雨燕双飞 提交于 2019-12-13 17:16:52
问题 I'm trying to build OpenLDAP on Windows. I'm having extreme difficulty doing so. I started to follow the directions outlined here, but quickly realized that it was out of date. I then found this, and realized it wasn't quite right either. I finally found this, and experienced the exact bug that this guy is experiencing. However, when I try his work around (commenting out line 1116 in portable.h) I ran into more issues. Is there a canonical source for building this library? I'm using: Windows

how to build apache httpd 2.* and beyond on msys2

主宰稳场 提交于 2019-12-13 06:14:50
问题 httpd build on msys2 fails with the following error: xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory On real linux distros, installing the expat-devel package seems to solve the problem see here, more precisely, expat-devel is an apr-util prerequisite and at least its headers ar missing on msys2. So how to build httpd with msys since no expat-devel package or headers is available ? When configuring httpd --with-included-apr, where do apr-utils look for expat headers or

Using BLAS, LAPACK, and ARPACK with MSYS2

我与影子孤独终老i 提交于 2019-12-13 03:46:39
问题 I am working on Windows 10 64-bit using MSYS2 with the 64-bit toolchain. In the MSYS2 terminal I found and installed the following packages after searching for them with pacman -Ss , mingw64/mingw-w64-x86_64-openblas 0.2.20-2 mingw64/mingw-w64-x86_64-lapack 3.6.1-1 mingw64/mingw-w64-x86_64-arpack 3.5.0-1 I took an example fortran source file from the Intel MKL library examples; I copied the dgelsx.f file to a folder in my msys home directory. I compile (in the mingw64 terminal) with gfortran

link pthread statically with cmake

此生再无相见时 提交于 2019-12-12 18:43:17
问题 How can I get CMake to link pthread statically on Windows? I use MSYS2 MinGW 32 bit and cmake v3.7. What I would like to achieve is a compiler invocation like g++ -static-libgcc -static-libstdc++ -std=c++11 -o test test.cpp -Wl,-Bstatic -lpthread Setting target_link_libraries(test PUBLIC "-Wl,-Bstatic -lpthread") results in -Wl,-Bdynamic -Wl,-Bstatic -lpthread being called. If I change CMAKE_EXE_LINKER_FLAGS , pthreads is included before my object files and thus symbols are not resolved. 回答1:

How do I define a path from an MSYS Makefile for a C++ program?

回眸只為那壹抹淺笑 提交于 2019-12-12 05:06:33
问题 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 as /mingw64/bin , where in the C++ program it shall have a form like "C:\\prog64\\msys64\\mingw64\\bin" . Additional challenge is that depending on a configuration variable PYTHONMAJOR the path shall be wide characters or normal characters. My

Install xgboost under python with 64-bit msys failing

独自空忆成欢 提交于 2019-12-12 00:25:32
问题 I want to install xgboost using anaconda python. In this process, I am trying to install xgboost. While trying to "make" the xgboost i am getting the below error: C:\GitRepository\xgboost> g++ -m64 -c -Wall -O3 -msse2 -Wno-unknown-pragmas -funroll-loops -fopenmp -fPIC -o updater.o src/tree/updater.cpp src/tree/updater.cpp:1:0: warning: -fPIC ignored for target (all code is positio n independent) // Copyright 2014 by Contributors ^ src/tree/updater.cpp:1:0: sorry, unimplemented: 64-bit mode

Using GCC Through Git Bash

佐手、 提交于 2019-12-11 06:45:41
问题 I have Git for Windows 2.10.2 and the latest version of MSYS2 installed on my Windows 7 machine. I had been using an older version of MinGW to compile c++ code. I would use notepad++ to write/edit the files and compile and run them through Git Bash using gcc console commands. I love being able to go to my file directory, right click, and select the "Git Bash Here" option to open the console and do whatever I needed. After uninstalling MinGW, I installed MSYS2 and downloaded some of their