Author

Topic: [HOW-TO] Compile Windows Binaries on Linux Using MXE Automatedly (Read 837 times)

full member
Activity: 149
Merit: 102
Hello!

I have created a repository and today I will show you how to compile Windows binary files

Step 1. Go to a folder you are comfortable with and type this:

Code:
git clone https://github.com/empinel/mxe compiler

This clones my version of the MXE Cross Compile Enviroment, then enter the compiler directory

Code:
cd compiler

Then we will make the scripts executable run this command

Code:
chmod +x *.sh

Now we will edit the setup script, there is a variable named LOCATION set, change that to the directory of the script, for example

Current terminal:

Code:
administrator@BetaMax:/media/administrator/compiler$ 

Your script should be like (well, we snipped some):

Code:
#!/bin/bash

LOCATION=/media/administrator/compiler
MXE_PATH=$LOCATION/mxe/

echo We are assuming the location of this script is $LOCATION
echo If not, please terminate and edit this script and change it to the appropr$
echo
echo We are now installing.....

Same thing should be done for compile.sh

Now give the terminal complete root access execute the setup script
This will setup the compile the enviroment for you

Code:
sudo -i
./setup.sh

Now we will enter the working folder and let's clone your altcoin
Don't forget the dot after the Coin Repository Link
After this, rename [coinname]-qt.pro to altcoin-qt.pro

Code:
cd working
git clone [INSERT COIN REPOSITORY HERE] .
cp [INSERT_COIN_NAME]-qt.pro altcoin-qt.pro

Now we will execute the compile script

Code:
cd .. && ./compile.sh
Jump to: