Questions tagged [mingw32]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
3 answers
25k views

Unable to locate package mingw32

A project I'm trying to compile needs mingw32. apt-get install gives me Unable to locate package mingw32. Doing an apt cache search yields many options and I need help choosing one that will work or ...
1 vote
1 answer
220 views

compile install libexpat for mingw under ubuntu

I'm using mingw under ubuntu to create windows executables. I need to use expat. It's not included in the repo, so I gather that I need to install it from sources. Is there an easy way to do this?
0 votes
1 answer
2k views

How to install mingw-w64-x86_64-gtk3 in Ubuntu 22.04?

I am using MingW32 and am trying to install the package mingw-w64-x86_64-gtk3, however, that's not available via the apt install and it looks like you could only install it via pacman. Could someone ...
0 votes
1 answer
283 views

How to use wine with more security?

This question may sound duplicate but please read. I am trying to make a cross compiled application. So I would like to try mingw64. But while installing it I found that it requires wine. I have heard ...
1 vote
1 answer
538 views

How to sync Ubuntu WSL and MINGW home directory for me

So I'm used to using the Git for Windows mingw and have ssh keys setup there. Recently adopted Ubuntu 18 on WSL (Windows subsystem for linux) and realized that the home folder in the Ubuntu is ...
3 votes
2 answers
10k views

How to compile C GTK3+ program in Ubuntu for windows?

I am using and gcc-7 and mingw-w64.I want to compile a c gtk3+ program in Linux using mingw so that it will produce .exe file which can be run in windows.I am able to Compile normal c programs using ...
4 votes
2 answers
6k views

Compiling files with mingw-w64

I have a program #include<iostream> #include<windows.h> using namespace std; int main() { cout<<"Hello World!! This Program Is made in win32 API\n"; return 0; } but when I ...
0 votes
3 answers
161 views

Configure Linux bash to understand "cd.."

In the Windows command prompt, both cd .. and cd.. move to the parent directory. On Linux bash (MINGW, etc) the former works, but the latter gives an error: cd..: command not found. Perhaps naive, but ...
3 votes
3 answers
13k views

How to setup Qt Creator to compile Windows executables?

The version of Qt Creator that ships in the repos. can compile Linux executables out of the box. However, it seems like some configuration is necessary to get it to compile Windows applications. I ...
1 vote
0 answers
565 views

makepkg-mingw on Ubuntu?

I'm trying to use Ubuntu to create a Windows app, following the steps outlined on this page. Is it possible to install makepkg-mingw on Ubuntu? Or is there a dedicated Ubuntu or Debian equivalent to ...
2 votes
0 answers
2k views

How to install mingw64-make command on ubuntu

I need to build window version of startcoin on ubuntu and it contains installing mingw64-make command. I already installed make and mingw on ubuntu but have difficulty in installing mingw64-make ...
1 vote
1 answer
1k views

Missing gcov symbols with mingw under Ubuntu 16.04

Before upgrading from Ubuntu 14.04 to Ubuntu 16.04 I could compile the following code with mingw-64-gcc x86_64-w64-mingw32-gcc -fprofile-generate -o test.exe test.c -lgcov -static //test.c #include &...
0 votes
1 answer
898 views

What is the /opt/mingw64 /opt/mingw32 equivalent for Ubuntu

Many manuals and tutorials about cross compiling windows binaries with the MinGW toolchain pointing out /opt/mingw64 or /opt/mingw32. E.g. like this $ sudo PATH=$PATH:/opt/mingw64/bin make install ...
1 vote
0 answers
305 views

Installing the Cairo library for mingw to allow cross compiling for Windows

As the title says. I'm trying to install the cairo library for mingw so I can cross compile an application that uses it for a Windows target on my Ubuntu machine. I can't figure out how to do it! ...
0 votes
1 answer
257 views

Error running .exe compiled with i586-mingw32msvc-g++ and SFML

So well, I'm fighting with WINE and MinGW32 right now. So I have a file, sortem.cpp which is compiled with a Makefile and linked and all from that Makefile. sortem.cpp #include <windows.h> #...
0 votes
1 answer
117 views

Use new version of mingw-g++

My machine currently runs on Ubuntu 12.04 (64bit version). I tried installing mingw-g++ for it, however, it installs an older version of g++, from the 4.6 series. Is there anyway I could download ...
2 votes
1 answer
18k views

x86_64-w64-mingw32-g++: cannot execute binary file: Exec format error

I have 64bit ubuntu virtual machine and a 64bit binary still getting the Exec format error. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 ...
1 vote
1 answer
3k views

How to set /usr/bin/i586-mingw32msvc-g++ to gww?

I use cross compiling for C++ using MinGW... I use /usr/bin/i586-mingw32msvc-g++ filename.cpp to compile, but I want to be able to type gww filename.cpp I think I need to set a PATH variable or ...
-1 votes
1 answer
891 views

please tell me how i can create .exe files for windows . my code is in C language gtk+

i want to create a .exe file which can run on windows. i have written a simple code to generate a window with a button in gtk. i have compiled this code and it is working properly using the command ...
2 votes
0 answers
80 views

Where can I download mingw32 version 4.72 for ubuntu?

I am cross compiling some software for linux that needs the 4.72 version of the mingw32 compiler to work. However, the version in the repos is only 4.4, where can I find 4.72?
2 votes
1 answer
3k views

GCC 4.8 / MINGW W64 4.8

There is a PPA where I can find these packages for 12.04? Also a build script will do the job! I've tried to download it from sources but the dependencies are a mess. I'd like to start porting my ...
1 vote
1 answer
288 views

Getting Eclipse CDT Helios to recognize i586 gcc mingw32 as a compiler, any ideas?

I installed CDT direct by extracting the tar. It detects the other compilers, but fails to recognize mingw32 as a compilation target. Any ideas? Unless you've tried a tutorial and it recognizes ...