Bitcoin Forum
November 13, 2024, 08:12:15 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [HOW-TO] Compile Windows Binaries on Linux Using MXE Automatedly  (Read 832 times)
Empinel (OP)
Full Member
***
Offline Offline

Activity: 149
Merit: 102


View Profile
February 21, 2016, 09:38:56 AM
Last edit: February 21, 2016, 09:56:38 AM by Empinel
 #1

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!