Skip to content

Windows build (Method : cross compile on linux using MXE)

Arun Narayanankutty edited this page Jun 17, 2020 · 5 revisions

MXE is a version of MinGW that has been compiled on Linux and acts as a cross-compilation environment targeting the Windows operating system. More details can be found at http://mxe.cc/

  1. Install all dependencies required for MXE according to your linux distro as described here http://mxe.cc/#requirements

  2. download current version of MXE(lets use the home directory $HOME)

    cd ~ git clone https://github.com/mxe/mxe.git cd mxe

  3. Install dependencies required by Alphaplot(this may take some time)

    make qt5 gsl

  4. Create a symbolic link of MXE version of qmake(qt5) & minGW and copy it to /bin directory
    Note:Qt 4 is in the "qt" subdirectory. Qt 5 is in the "qt5" subdirectory (use Qt5(>5.6))

    sudo ln -sf ~/mxe/usr/i686-w64-mingw32.static/qt5/bin/qmake /bin/mxe-qmake-qt5 sudo ln -sf ~/mxe/usr/bin/i686-w64-mingw32.static-g++ /bin/i686-w64-mingw32.static-g++ sudo ln -sf ~/mxe/usr/bin/i686-w64-mingw32.static-gcc-ar /bin/i686-w64-mingw32.static-gcc-ar

  5. download latest sources of AlphaPlot(lets use the home directory $HOME)

    cd ~ git clone https://github.com/narunlifescience/AlphaPlot.git

  6. now we can build AlphaPlot

    cd ~/AlphaPlot mxe-qmake-qt5 CONFIG+=mxe make

After build process you will get AlphaPlot.exe inside ~/AlphaPlot/AlphaPlot directory...

cool

Clone this wiki locally