MXE compile on linux for linux
NickName:Vanilla Face Ask DateTime:2015-11-02T16:29:24

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 can it be hard to compile for host? 90% of the stuff seems to just build out of the box, but there are some errors and therefore I cannot build. I want to ask, how correctly should I configure mxe to build for the linux host? I know this is not supported but I don't think it should be that hard because we build from source anyway. And there are next to no modifications for downloaded sources too (in a windows build that is).

For people who might ask why I don't want to use shared stuff, I want to basically have two options:

  1. dpkg package for user with dependencies specified (the linux way)
  2. single standalone static executable

Any suggestions? Or maybe there's whole another guide on linux on how to build things from scratch (without a lot of manual work like mxe does)?

Copyright Notice:Content Author:「Vanilla Face」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/33473461/mxe-compile-on-linux-for-linux

More about “MXE compile on linux for linux” related questions

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, becau...

Show Detail

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 compile-gtc.sh: #!/bi...

Show Detail

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

Show Detail

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 ...

Show Detail

Cross compiling on Linux for Windows using MXE - GSL linking?

I have a C++ project developed on Linux that I would like to pass to my Windows-user colleagues by giving them the executable file. I searched into the problem and found that one way could be to c...

Show Detail

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 fail...

Show Detail

missing package in MXE

I've made a C++ project in Qt. My app shows short video using QMediaPlayer and QVideoWidget. Everything works fine when I compile it in Qt. I'm a Linux user. The problems starts when I try to cross

Show Detail

How to compile Berkeley DB 5.3.28 for MXE cross-compiler?

Has anybody a solution for building Berkeley DB for MXE's cross-compile environment? When I run my build script: #!/bin/bash MXE_PATH=/path/to/mxe db=db-5.3.28 rm -rf ./$db/build_mxe mkdir...

Show Detail

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 acco...

Show Detail

Fortran cross compilation (Linux to Windows) recent developments

I want to use Linux to compile code and create a .exe that can be used on Windows. The reasons being that I have been having difficulty getting CGAL to work with MinGW on Windows 7 and this proved

Show Detail