-
-
Notifications
You must be signed in to change notification settings - Fork 39
Windows build (Method : cross compile on linux using MXE)
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/
-
Install all dependencies required for MXE according to your linux distro as described here http://mxe.cc/#requirements
-
download current version of MXE(lets use the home directory $HOME)
cd ~ git clone https://github.com/mxe/mxe.git cd mxe
-
Install dependencies required by Alphaplot(this may take some time)
make qt5 gsl
-
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
-
download latest sources of AlphaPlot(lets use the home directory $HOME)
cd ~ git clone https://github.com/narunlifescience/AlphaPlot.git
-
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