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
1
vote
1 answer

float.h not found or included properly when using mingw-w64

I'm trying to cross-compile a piece of code which uses float.h to set some FPU sizes. The particular piece of code that requires it is: #ifdef SINGLE _control87(_PC_24, _MCW_PC); /* Set FPU control word for single precision. */ #else /* not SINGLE…
crobar
  • 2,810
  • 4
  • 28
  • 46
1
vote
1 answer

Cross compiling FFmpeg + Qt application with MXE

I got a pretty simple project that uses Qt as well as FFmpeg that i developed under linux. Now I'am having trouble cross compiling said project with MXE to use it on a windows machine. Under linux everything i had to do was adding LIBS += -lavcodec…
ldr
  • 211
  • 1
  • 11
1
vote
0 answers

Building my Qt5.5 app using mxe with Qt3D support

Basically I am following these instruction on how to successfully cross compile my Qt5.5 project on Ubuntu for Microsoft Windows. My project has dependency on Qt3D, which I was hoping would be supported by mxe, however, when I invoke the build of my…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
1
vote
1 answer

Theory or Direction, c++, qt and crosscompiling with MXE

I am after a little bit of help, not an issue for someone to fix but more theory or the right path to go down would be helpful. I am quite new with C, C++. But I offered help to friend and have become a little stuck myself. I am cross-compiling for…
GavW
  • 27
  • 3
1
vote
0 answers

MXE compile on linux for linux

So I saw this project http://mxe.cc/ and tried it, it seems like it is very easy to compile stuff for windows with this. I tried to hack it a little bit to compile binaries for linux instead, because, if it compiles for other system so easily how…
Vanilla Face
  • 908
  • 1
  • 7
  • 17
1
vote
1 answer

Cross-compile program can't find SDL2 headers

I'm working on a project in c++ that uses autotools for easy cross-compile. I've sudo make install'd MXE on my system. When just using ./configure, and thus using g++, things run smoothly. However, using ./configure --host=i686-w64-mingw32, I run…
Bloodyaugust
  • 2,463
  • 8
  • 30
  • 46
1
vote
2 answers

Cross Compiling on Linux for Windows

I'm currently using MXE to perform cross compilation, attempting to cross compile with 0MQ that is using the libzmq bindings for C++ for the first time. I've already put the zmq.hpp & zmq.h files in the include folder, but I'm getting an error that…
intensified
  • 159
  • 3
  • 4
  • 10
0
votes
0 answers

CMAKE C++ MXE(x86_64-w64-mingw32.static-g++) Cross Compile libCURL from Ubuntu to Windows

I am working on trying to get a cross compile setup for making windows applications using ubuntu as a development platform. I have WxWidgets working with help of a previous post. I am now trying to get libCURL working. I need to get CMAKE to find…
Kevin192291
  • 1,925
  • 4
  • 26
  • 43
0
votes
1 answer

executable file compiled by MinGW x86_64-w64-mingw32 in Ubuntu not working on Windows

I am trying to create a executable file works on Windows 64bit from linux. I am using MXE to cross compile c file on my ubuntu server. And after I compile c file to .exe file, I move the file to my desktop(windows 10 64bit). Here's what I…
Jiho
  • 11
  • 4
0
votes
0 answers

Why would a cross-compiled DLL export symbols already defined in MSVCRT?

I'm using MXE to build my own cross-compiler toolchain (this specific version). Only I don't use the default gcc 5.5 but gcc 6.3.0 instead. I'm not specifically tied to that version - I just picked it because it was also used to generate the latest…
DaveC
  • 115
  • 8
0
votes
1 answer

make errors occur while using MXE CMake for compiling an SDL program

Calling i686-w64-mingw32.static-cmake CMakeLists.txt and then make works with programs that do not use any external libaries, however while trying to cross compile a SDL program for windows the following errors occur. CMake log. == Using MXE…
0
votes
0 answers

Cross-compile Qt-based application with external library

I've got a Qt based application written in C++ and I'm using the fuzzylite 6.0 library, and I want to link it statically. Compilation and execution work flawlessly on my Arch Linux machine. However, I also want to build for Windows. So I built the…
Gosterwz
  • 1
  • 1
0
votes
0 answers

C++ cross compiling from Linux to Windows issue with various libraries

I am trying to cross compile some c++ code from Linux to Windows using MXE/MinGW, but got stuck on some errors: /tmp/ccd6s46b.o:PSTDKernel.cpp:(.text$_ZN9QVector2DixEi[__ZN9QVector2DixEi]+0x29): undefined reference to…
JeroenD
  • 343
  • 1
  • 6
  • 16
0
votes
1 answer

MXE cross compile links to system libltdl.so as well as mxe package version

I'm attempting to cross-build an application from Linux for windows using M Cross Environment which is really just a system of makefiles which help use the Mingw-w64 tools. The build system for the application is autotools. The project links to…
crobar
  • 2,810
  • 4
  • 28
  • 46
0
votes
1 answer

cross build error: libtool: line 1112: lib: command not found

I'm attempting to cross-build an application from Linux for windows using M Cross Environment which is really just a system of makefiles which help use the Mingw-w64 tools. The build system for the application is autotools. When I try the build I…
crobar
  • 2,810
  • 4
  • 28
  • 46