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
0
votes
1 answer

C++ program cross compile on linux using mingw works in msys2 but not directly in windows

I have a strange problem. I have a program which depend on Qt, Zlib and ruby that I cross compile on ubuntu using mxe (x86_64-w64-mingw32.shared). The ruby I use is not included in mxe packages, but has been compiled with the same toolchain. Then I…
Laurent Jospin
  • 604
  • 5
  • 9
0
votes
0 answers

MXE and QT deployment gives Runtime Error

I'm building a QT application on Ubuntu that works pretty good. Now I have to deploy it on Windows, so I installed MXE in order to cross compile my sources. MXE build git clone https://github.com/mxe/mxe.git cd mxe # I need posix threads, that why I…
Zelnes
  • 403
  • 3
  • 10
0
votes
0 answers

QT Compile on Linux: Cross Compilation failed with mxe / mingw / Linux, Debian

I cannot compile the Windows Wallet, it shows me everytime this Error: What have I missed here? I am Using Debian. Source Code: https://github.com/rat4/blackcoin Content of…
barks
  • 11
  • 3
0
votes
0 answers

Compiling Octave MXE nsi-installer with --enable-64

I am trying to compile an Octave nsi-installer for Windows with --enable-64 for large array support. Attempt 1: Using a Linux Mint virtual machine on Windows 10: ./configure shows everything seems to be OK, and after running make, quite a lot…
0
votes
1 answer

Cross compiling linker error

I am cross compiling a small c++ script for Windows on Linux. It's made with Qt and uses curl, I compiled qt and curl via mxe (make qt5 and make curl). I then run these commands: $MXE/usr/i686-w64-mingw32.static/qt5/bin/qmake make Which gives me…
Rikudou_Sennin
  • 1,357
  • 10
  • 27
0
votes
2 answers

Multiple "Undefined reference" errors with MXE and SDL2

I am trying to compile a OpenGL program which uses SDL for context creation and image loading. When I compile it on Linux natively, it compiles and runs without error. I have installed MXE in /opt/mxe and have checked that the SDL2 directory (which…
strNOcat
  • 913
  • 2
  • 8
  • 22
0
votes
0 answers

Crosscompiling my Linux QT Project with MXE fails. Library not found

I have a QT5 Project on Linux using taglib. It compiles fine inside QtCreator and runs flawless under Linux. Now I want to Crosscompile the code using MXE. I've downloaded and "installed" MXE according the docs. I did a "make" for making all…
selli69
  • 41
  • 5
0
votes
1 answer

mxe cross compiler QSerialPort on mac

I am using qt 5.5.1 on mac os x and would like to develop an application for windows. So far so good. I have installed the cross compiler M cross environment (MXE) to generate .exe files. The compiler seems to work but I have the problem that mxe…
masterWN
  • 85
  • 1
  • 9
0
votes
0 answers

How to cross compile SEC256k1 via mxe?

As far as I know there aren't any packages for it in MXE so I've got to setup my own compile. According to the docs If you use the Autotools, all you have to do is: ./configure --host=i686-w64-mingw32.static make And the other methods (modifying…
pajkatt
  • 147
  • 6
0
votes
1 answer

Can't link in libnanomsg for Windows MinGW, cross compiling using MXE

I am trying to build nanomsg on mingw, cross compiling from ubuntu using mxe. The target host is x86_64. I built it fine but it won't link. I am getting issues like undefined reference to 'imp__nn_freemsg' I think it's a static lib issue. I built…
Matthew Darnell
  • 1,315
  • 2
  • 12
  • 24
0
votes
3 answers

How to recompile in MXE only a specific package?

I've used this SO answer as a recipie to build Qt GUI applications for Windows on Linux. It works perfectly. But my resulting "Hello World" binary is 12MB big - only for a button in a window - and this is too much. So I thought I could modify the…
mythbu
  • 786
  • 1
  • 7
  • 20
0
votes
1 answer

using QMediaPlayer on Windows system with code compiled on Linux

A project of mine is written with Qt5/c++, using the QMediaPlayer class to read audio files. Everything's ok as long as I run this project on Linux. Since I want to run my program on Windows, I use MXE to compile my code and create a binary file for…
suizokukan
  • 1,303
  • 4
  • 18
  • 33
0
votes
1 answer

C mxe linking fails: ld cannot find symbols

trying to cross-compile TranscriberAG with MXE, I'm stuck on a problem I don't understand. I managed to reproduce the problem on a tiny file: #include int test() { dlopen("test", RTLD_LAZY); } I compile it…
Elie Roux
  • 425
  • 1
  • 3
  • 17
0
votes
1 answer

Mingw does not find symbols in dll

I am trying to build an application from under Linux for windows, using M cross environment (MXE), that is to say, Mingw. However I have run into a problem: references to functions from the library that I am trying to use remained unresolved. Here…
Srv19
  • 3,458
  • 6
  • 44
  • 75
-1
votes
1 answer

How do I cross-compile a program that compiles in Linux for Linux, in Linux for Windows?

I am trying to compile a program that I did not write. It compiles for Ubuntu 16.04 in Ubuntu 16.04 just fine using the following commands. qmake make Is there a simple way to cross compile it for Windows 32bit or 64bit via the manipulation of…