Conseil : Recherchez des résultats uniquement en français. Vous pouvez indiquer votre langue de recherche sur la page Préférences.
Rappel concernant les règles de confidentialité de Google
Lire
Résultats de recherche
Cross Compiling avec Qt Créator (linux -> win32) par ...
https://openclassrooms.com › Forum › Programmation › Langage C++
27 nov. 2015 - 6 messages - 4 auteurs
Bonjour,. Je me (re)présente, je suis Bebenlebricolo et je suis présent sur OpenClassRoom depuis...bien 5 ans (anciennement sur le SDZ). Pour le moment je n'ai pas un niveau exceptionnel en C/C++ ; c'est pourquoi j'ai commencé le cours de C++, et j'en suis sur la partie Qt. Je travaille sous Ubuntu ...Compile for Windows on Linux | BlogCompiler
www.blogcompiler.com/2010/07/.../compile-for-windows-on-linu...Traduire cette page
11 juil. 2010 - As amazing as it may first seem, the MinGW-w64 project allows users to compile native Windows binaries on Linux. This concept of targeting a different platform than the compiler is running on is however not new, and is known as cross-c++ - How to compile for Windows on Linux with gcc/g++? - Stack ...
https://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g
I have written some effects in C++ (g++) using freeglut on Linux, and I compile them with
g++... PLUS
I have written some effects in C++ (g++) using freeglut on Linux, and I compile them with
g++ -Wall -lglut part8.cpp -o part8
So I was wondering if it is possible to have g++ make static compiled Windows executables that contains everything needed?
I don't have Windows, so it would be really cool, if I could do that on Linux :)
7 answers
Best Answer
56 votes
mingw32 exists as a package for Linux. You can cross-compile and -link Windows applications with it. There's a tutorial here at the Code::Blocks forum. Mind that the command changes to mingw32-gcc, for example.
EDIT: Debian Linux, for example, has MinGW in its repositories:
$ apt-cache search...
Answer 2 of 7
19 votes
One option of compiling for Windows in Linux is via mingw. I found a very helpful tutorial here.
To install mingw32 on Debian based systems, run the following command:
sudo apt-get install mingw32 mingw32-binutils mingw32-runtime
To compile your code, you can use something like:
...
Answer 3 of 7
7 votes
Install a cross compiler, like mingw64 from your package manager.
Then compile in the following way: instead of simply calling gcc call i686-w64-mingw32-gcc for 32-bit Windows or x86_64-w64-mingw32-gcc" for 64-bit Windows. I would also use the --static option, as the target system may not have...
Answer 4 of 7
5 votes
I've used mingw on Linux to make Windows executables in C, I suspect C++ would work as well.
Answer 5 of 7
3 votes
From: https://fedoraproject.org/wiki/MinGW/Tutorial
As of Fedora 17 it is possible to easily build (cross-compile) binaries for the win32 and win64 targets. This is realized using the mingw-w64 toolchain: http://mingw-w64.sf.net/. Using this toolchain allows you to build binaries for the...
Answer 6 of 7
1 votes
for Fedora it's
sudo yum groupinstall -y "MinGW cross-compiler"
Answer 7 of 7
1 votes
Suggested method gave me error on Ubuntu 16.04: E: Unable to locate package mingw32
===========================================================================
To install this package on Ubuntu please use following:
sudo apt-get install mingw-w64
After install you can use it:
...
Cross Compile to Windows From Linux | ArrayFire
https://arrayfire.com/cross-compile-to-windows-from-linux/Traduire cette page
13 août 2014 - Granted, this isn't a silver bullet, but rather a quick way to get a Windows build of platform independent code that you might already have running in Linux. I've found that this approach makes it easy to get binaries out the door in a hurry when it's hard to get a project building with Visual Studio or even on the ...Cross compiling for Win32 under Linux - Lazarus wiki
wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_L...Traduire cette page
9 oct. 2017 - The following sections describe how to set up a Linux system to cross compile, creating Win32 executables (or FreeBSD or Darwin/OSX, or ...). Why cross compiling? Free Pascal is a compiler and basically converts source into binaries (machine language). These binaries also contain information about ...Cross compile from GNU Linux to Windows · webcamoid/webcamoid ...
https://github.com/.../Cross-compile-from-GNU-Linux-to-Window...Traduire cette page
11 oct. 2017 - This page explain how to setup your build environment if you want to compile Webcamoid for Windows or Wine while working in GNU/Linux. NOTE 1: These instructions are focused in Arch Linux since I did not found an equivalent setup for other distros. NOTE 2: I will assume you already have installed Qt ...Cross-compilation avec GCC 4 sous Windows pour Linux
tcuvelier.developpez.com/tutoriels/cross-gcc/gcc-cross/?page=intro
Selon Wikipédia, un compilateur est un programme informatique qui traduit un langage, le langage source, en un autre, appelé le langage cible, en préservant la signification du texte source. Je suppose qu'une version en français serait appréciée. En gros, un compilateur prend un fichier source dans un langage (Building a Cross compiler for Windows on Linux - Silmor.de
silmor.de/qtstuff.mingw.phpTraduire cette page
Building a Cross compiler for Windows on Linux. This is a small How-To on creating a cross compiler for Windows that runs on Linux. Intro. Why would one ever do something as stupid as compiling Qt/Windows applications on Linux? There are several (good and better) reasons to do this: You don't feel comfortable working ...Cross-Compilation - Compiler un programme pour MS/Windows sous ...
https://shadoware.org/.../cross-compilation-compiler-un-programme-pour-ms-window...
1 juil. 2012 - Cela peut être utilisé par exemple pour compiler un programme sur votre ordinateur de tous les jours (sous Gnu/Linux, avec une architecture i386) à destination de votre téléphone mobile, qui lui est sous Symbian avec un processeur ARM. Les raisons de faire de la compilation croisée peuvent donc être ...Cross Compiling for Windows on Linux Tutorial - YouTube
https://www.youtube.com/watch?v=3-yw-aD8CTI
6 août 2014 - Ajouté par Kris Occhipinti
http://filmsbykris.com http://www.patreon.com/metalx1000 Notes: http://pastebin.