Questions tagged [mxe]

MXE (M Cross environment) is a platform that cross-compiles various tools for Windows from Unix systems.

MXE (M cross environment) is a Makefile that compiles a cross compiler and cross compiles many free libraries such as SDL and Qt. Thus, it provides a nice cross compiling environment for various target platforms, which

  • is designed to run on any Unix system
  • is easy to adapt and to extend
  • builds many free libraries in addition to the cross compiler
  • can also build just a subset of the packages, and automatically builds their dependencies
  • downloads all needed packages and verifies them by their checksums
  • is able to update the version numbers of all packages automatically
  • directly uses source packages, thus ensuring the whole build mechanism is transparent
  • allows inter-package and intra-package parallel builds whenever possible
62 questions
63
votes
4 answers

Building Qt 5 on Linux, for Windows

I wanted to migrate my Qt 4 app to use Qt 5 instead. These instructions failed, due to some differences with how MXE builds Qt 5, including the fact that it uses modularised Qt tarballs, instead of one large tarball.
tshepang
  • 12,111
  • 21
  • 91
  • 136
14
votes
4 answers

Cross compiling Qt application for Windows on Linux with dynamic linking

To comply with Qt's LGPL license, an application using the Qt library must either make the source code available or link dynamically against Qt (if I got that correctly in this few words). So I'd like to create a closed source application doing…
Ratatwisker
  • 171
  • 1
  • 9
8
votes
1 answer

How can I use CMake to get dependencies for Windows app while building it from Linux?

Currently I'm trying to deploy a Qt application for Windows using MinGW and CMake from Linux. I used MXE to prepare building environment (install mingw32 and compile Qt5 shared libraries). I've written CMakeList.txt and a toolchain script, and they…
mvlabat
  • 577
  • 4
  • 17
8
votes
2 answers

Project ERROR: Unknown module(s) in QT: webkitwidgets

I'm trying to use MXE (with help from this tutorial), and I'm getting this error at the qmake && make step: Project ERROR: Unknown module(s) in QT: webkitwidgets". What does this mean and what can I do?
Simhor
  • 701
  • 1
  • 6
  • 8
6
votes
1 answer

How to specify specific qt version in mxe

I need to use qt version 5.5 with mxe but dont find any option. I only see qt which is 4.8.7 and qt5 which is 5.8 Am I restricted to one of the two versions or is there any option to use 5.5 also. Thanks
lost111in
  • 207
  • 1
  • 3
  • 12
5
votes
0 answers

cross compiling for windows: cmake & mxe: lost in dependencies

Im trying to use cmake and MXE to cross-compile for Windows. Everything works fine on *nix. However I don't know how to get some of the dependencies (Grantlee5 and Qt5WebKitWidgets) to work with MinGW and cross compilation. Here is a (minimal)…
4
votes
0 answers

MXE - Undefined reference to Qt when cross compiling with cmake and mingw

I am trying to compile electronpass-desktop for Windows using MXE on linux. I've already successfully compiled all its dependencies (including libelectronpass). Then I executed (from…
4
votes
1 answer

How to link to third party dll when cross compiling from linux?

I would like to cross compile C++ projects for Windows 64 bit from Linux using the mingw-w64 tools (Actually I am using M Cross Environment which is based on mingw-w64, but I don't think this is relevant to the question). In my case the final step…
crobar
  • 2,810
  • 4
  • 28
  • 46
3
votes
0 answers

How to cross compile 64 bit Python with MXE

I have a project cross-compiled from Linux to Windows using MXE. In the process of moving from 32-bit to 64-bit I'm having a problem at runtime on Py_DECREF. Full details here: Python XDECREF failing on 64bit mingw I am thinking that there may be…
Dave Lawrence
  • 1,281
  • 12
  • 17
3
votes
3 answers

Execution impossible on w10 with a cross compiled libpng16-16.dll

I have a problem, I build and link a windows application on linux for windows using mxe (x86_64-w64-mingw32.shared), the build an linking is working well. Then I copy paste all usefull dll (that are all cross-compiled, except x64-msvcrt-ruby230.dll,…
Laurent Jospin
  • 604
  • 5
  • 9
3
votes
0 answers

Finding library dependencies (make/cmake/linker)

I'm trying to build a cross-platform QT C++ application (Linux/Windows), using MXE and cmake. I googled very, very hard, you don't know how brilliant my google queries were. Such queries. But: The problem: undefined…
strangeqargo
  • 1,276
  • 1
  • 15
  • 23
3
votes
2 answers

mxe cross compiling linux to windows vtk example

I would like to know if there is an example out there, or could somebody post one, for compiling a vtk .exe app using MXE. The headers and libraries are built but I can't seem to get it to work. I have managed to get Qt working. I usually use my own…
3
votes
1 answer

Qt X11 application built for Windows platform

I know it is weird but I need to execute a Qt GUI application that supports X11 protocol on MS Windows platform. It is obvious that if I build my Qt source code in Unix environment it automatically becomes an X11 application and this application…
Anony
  • 55
  • 1
  • 7
2
votes
1 answer

MXE Qt5 application builds fail in Docker container

So, I have successfully built MXE and Qt5 (make qt5) in a Docker container (based on Ubuntu 18.04) and copied the stuff in /opt/mxe and appended PATH with /opt/mxe/usr/bin. However, when I try to build my Qt5 application inside the container it…
juzzlin
  • 45,029
  • 5
  • 38
  • 50
2
votes
0 answers

Build SIP and PyGlobalShortcut for Windows

I am writing a Python2.7/PyQt4 programm under Ubuntu, but the application will be deployed on a Windows platform. One of the functions is that the application should capture several keystrokes (e.g. "Alt+A") even if it is not in focus/minimized. I…
R Kiselev
  • 1,124
  • 1
  • 9
  • 18
1
2 3 4 5