<p>The Litecoin source tree, in the doc/ folder, provides a <a href="https://github.com/litecoin-project/litecoin/blob/v0.8.6.3-mark2/doc/build-msw.md" rel="nofollow">file regarding building on Windows</a>, using <a href="http://www.mingw.org/" rel="nofollow">MinGW and MSYS</a>. I can't personally vouch for those instructions, never having used them myself, so if you go that route, good luck. The way that the release binaries are built, if I'm not mistaken, is using the <a href="http://www.gitian.org/" rel="nofollow">Gitian builder</a>. If you're looking to do a Windows build, I would try that. If you want to actually use Gitian, you can clone the repo, and use the readme file to get Gitian set up, and then follow <a href="https://github.com/litecoin-project/litecoin/blob/v0.8.6.3-mark2/doc/release-process.md#perform-gitian-builds" rel="nofollow">the build segment of the release process</a> to do the actual build. On the other hand, if you're not necessarily looking for determinism or the ability to reproduce the exact build, you could try taking a look at the <a href="https://github.com/litecoin-project/litecoin/tree/v0.8.6.3-mark2/contrib/gitian-descriptors" rel="nofollow">Gitian build scripts</a> to see what packages are being used, what commands are run, et cetera, and try to reproduce that on a Linux system.</p>

CC BY-SA 3.0
2014-03-30T15:59:43.833Z
2014-03-30T15:59:43.833Z
Micha
<p>I have compiled litecoin-qt on Ubuntu 12.04 before. First install the necessary packages:</p>

<pre><code>sudo apt-get install qt4-qmake libqt4-dev build-essential libboost1.48-all-dev libssl-dev libdb++-dev libminiupnpc-dev
</code></pre>

<p>Then, in the directory of the litecoin source code, run</p>

<pre><code>qmake
make
</code></pre>

<p>And you're done!</p>

<p>However, the compiled file is a Linux binary, so you'll have to use it on Linux. As far as I know, trying to compile a Windows binary on Linux would be even harder than just compiling it on Windows.</p>

<p><strong>Note</strong>: This answer was posted before the question was clarified.</p>

CC BY-SA 3.0
2014-03-20T04:37:19.043Z
Thanks but not really what I am looking for. I am specifically looking for compiling the Windows executable...
user
CC BY-SA 3.0
2014-03-20T17:42:35.877Z
The question should be rephrased, as it's not clear what you're asking. Are you asking which is the best version of Windows to run while compiling litecoin?
Jay
CC BY-SA 3.0
2014-03-20T18:40:39.750Z
@user1162541: I think it would be best if you explained your "unique situation" and why you can't just use the provided binary.
Tony
CC BY-SA 3.0
2014-03-20T20:13:09.527Z
@John Thanks, I have rephrased the question to make it clearer.
please delete me
CC BY-SA 3.0
2014-03-20T20:14:19.560Z
@Tony I foresee the need to frequently recompile and would like to find the best configuration for this, so before trying to solve this problem I'd like to see if there are specific OS configurations that people recommend that make the process overall easier. I have added more detail in the post.
please delete me
CC BY-SA 3.0
2014-03-20T20:21:03.440Z
Just to clarify, are you making your own altcoin? If not, I don't see why you can't just download the Windows binary provided by the altcoin devs.
Tony
CC BY-SA 3.0
2014-03-20T20:26:39.400Z
@Tony Yes I am making my own litecoin-based altcoin (see edited post). This is why compiling is necessary.
please delete me
CC BY-SA 3.0
2014-03-19T22:59:25.727Z
2014-03-30T20:00:21.967Z
2014-03-30T20:00:21.967Z
Tony
<p>I'd like to compile Litecoin for Windows, but have difficulties doing so. To be specific: I want to create the Windows executable (.exe) GUI (qt) Litecoin client (to be more specific I want to compile the executable for an alt-coin based on litecoin, but the code base is the same as litecoin).</p>

<p>Many tutorials are either focused on compiling for Linux, or they focus on Bitcoin compiling, which is a bit different nowadays than Litecoin. Rather than explaining my specific problems, which are likely unique to my situation, I was wondering what a recommended Operating System (and version) is to compile Litecoin? Who has specific (preferably smooth) experience building the GUI litecoin client for Windows?</p>

<p>A useful relevant topic is this one:
<a href="https://bitcointalk.org/index.php?topic=149479.0" rel="nofollow">https://bitcointalk.org/index.php?topic=149479.0</a></p>

<p>But this is based on bitcoin, not litecoin. <a href="http://andarazoroflove.org/how-to-create-alt-coin-scrypt-clones-for-fun-and-profit-bitcoin-litecoin-secrets-exposed/" rel="nofollow">This</a> referenced tutorial has a bit on Windows, but it's not too optimistic:</p>

<blockquote>
  <p>Windows -Qt</p>
  
  <p>This is the trickiest one to crack of the GUI wallets. I am going to
  detail how I got this to work and offer you an easy way to get the
  dependencies in an attempt to make this work for you too. That said,
  it may not–and I’ve already said I won’t do tech support. So here’s
  the deal. I got this to work and then duplicated it on a second
  machine to ensure it wasn’t a fluke! Most of the information needed to
  compile the basic coind.exe or GUI wallet is in this thread:
  <a href="https://bitcointalk.org/index.php?topic=149479.0" rel="nofollow">https://bitcointalk.org/index.php?topic=149479.0</a> Unfortunately nothing
  is as easy as it seems, and although the MinGW and QT installs went
  fine, I couldn’t compile it without a few tweaks to the .pro file.</p>
</blockquote>

<p>In this tutorial, Windows is used to create the executable, but I understand one can also use Linux to create Windows executables, right? There are few experiences documenting successful or smooth compiling of Litecoin (forks) for Windows, so I was wondering if people do have good experiences doing so and what kind of OS or approach they used. </p>

CC BY-SA 3.0
2014-03-19T20:55:56.580Z
I'd go with Ubuntu as it's the distribution all guides are most likely going to focus on.
John T
CC BY-SA 3.0
2014-03-19T22:14:56.583Z
On windows this guide helped me: http://andarazoroflove.org/how-to-create-alt-coin-scrypt-clones-for-fun-and-profit-bitcoin-litecoin-secrets-exposed/
jamd315
CC BY-SA 3.0
2014-03-29T10:21:41.727Z
The title of your question is misleading. The best OS for compiling any bitcoin variant would clearly be a Linux dist. What you're asking is "What is the recommended OS for compiling a Windows binary for Litecoin."
Todd Chaffee
CC BY-SA 3.0
2014-03-29T21:58:36.787Z
I've tried using the following as a baseline,

https://bitcoinqtmsvc2012.codeplex.com/

however also needed some tweaking, but usefull resource for anyone looking to try.
hafnero
<litecoin><compiling><litecoin-qt>
What is the recommended OS for compiling a Windows binary for Litecoin?
please delete me
# What is the recommended OS for compiling a Windows binary for Litecoin?

(Asked by: username_0 on 2014-03-19)

I'd like to compile Litecoin for Windows, but have difficulties doing so. To be specific: I want to create the Windows executable (.exe) GUI (qt) Litecoin client (to be more specific I want to compile the executable for an alt-coin based on litecoin, but the code base is the same as litecoin).

Many tutorials are either focused on compiling for Linux, or they focus on Bitcoin compiling, which is a bit different nowadays than Litecoin. Rather than explaining my specific problems, which are likely unique to my situation, I was wondering what a recommended Operating System (and version) is to compile Litecoin? Who has specific (preferably smooth) experience building the GUI litecoin client for Windows?

A useful relevant topic is this one:
<https://bitcointalk.org/index.php?topic=149479.0>

But this is based on bitcoin, not litecoin. [This](http://andarazoroflove.org/how-to-create-alt-coin-scrypt-clones-for-fun-and-profit-bitcoin-litecoin-secrets-exposed/) referenced tutorial has a bit on Windows, but it's not too optimistic:

> Windows -Qt
>
> This is the trickiest one to crack of the GUI wallets. I am going to
> detail how I got this to work and offer you an easy way to get the
> dependencies in an attempt to make this work for you too. That said,
> it may not–and I’ve already said I won’t do tech support. So here’s
> the deal. I got this to work and then duplicated it on a second
> machine to ensure it wasn’t a fluke! Most of the information needed to
> compile the basic coind.exe or GUI wallet is in this thread:
> <https://bitcointalk.org/index.php?topic=149479.0> Unfortunately nothing
> is as easy as it seems, and although the MinGW and QT installs went
> fine, I couldn’t compile it without a few tweaks to the .pro file.

In this tutorial, Windows is used to create the executable, but I understand one can also use Linux to create Windows executables, right? There are few experiences documenting successful or smooth compiling of Litecoin (forks) for Windows, so I was wondering if people do have good experiences doing so and what kind of OS or approach they used.

**Tags:** litecoin, compiling, litecoin-qt

> **Comments:**
> **username_1**: I'd go with Ubuntu as it's the distribution all guides are most likely going to focus on.  
> **username_2**: On windows this guide helped me: http://andarazoroflove.org/how-to-create-alt-coin-scrypt-clones-for-fun-and-profit-bitcoin-litecoin-secrets-exposed/  
> **username_3**: The title of your question is misleading. The best OS for compiling any bitcoin variant would clearly be a Linux dist. What you're asking is "What is the recommended OS for compiling a Windows binary for Litecoin."  
> **username_4**: I've tried using the following as a baseline,  https://bitcoinqtmsvc2012.codeplex.com/  however also needed some tweaking, but usefull resource for anyone looking to try.  

---

## 2 answers

### Answer by username_5 on 2014-03-30. Score: 1

The Litecoin source tree, in the doc/ folder, provides a [file regarding building on Windows](https://github.com/litecoin-project/litecoin/blob/v0.8.6.3-mark2/doc/build-msw.md), using [MinGW and MSYS](http://www.mingw.org/). I can't personally vouch for those instructions, never having used them myself, so if you go that route, good luck. The way that the release binaries are built, if I'm not mistaken, is using the [Gitian builder](http://www.gitian.org/). If you're looking to do a Windows build, I would try that. If you want to actually use Gitian, you can clone the repo, and use the readme file to get Gitian set up, and then follow [the build segment of the release process](https://github.com/litecoin-project/litecoin/blob/v0.8.6.3-mark2/doc/release-process.md#perform-gitian-builds) to do the actual build. On the other hand, if you're not necessarily looking for determinism or the ability to reproduce the exact build, you could try taking a look at the [Gitian build scripts](https://github.com/litecoin-project/litecoin/tree/v0.8.6.3-mark2/contrib/gitian-descriptors) to see what packages are being used, what commands are run, et cetera, and try to reproduce that on a Linux system.


---

### Answer by username_6 on 2014-03-19. Score: -1

I have compiled litecoin-qt on Ubuntu 12.04 before. First install the necessary packages:

```
sudo apt-get install qt4-qmake libqt4-dev build-essential libboost1.48-all-dev libssl-dev libdb++-dev libminiupnpc-dev

```

Then, in the directory of the litecoin source code, run

```
qmake
make

```

And you're done!

However, the compiled file is a Linux binary, so you'll have to use it on Linux. As far as I know, trying to compile a Windows binary on Linux would be even harder than just compiling it on Windows.

**Note**: This answer was posted before the question was clarified.

> **Comments:**
> **username_7**: Thanks but not really what I am looking for. I am specifically looking for compiling the Windows executable...  
> **username_8**: The question should be rephrased, as it's not clear what you're asking. Are you asking which is the best version of Windows to run while compiling litecoin?  
> **username_6**: @user1162541: I think it would be best if you explained your "unique situation" and why you can't just use the provided binary.  
> **username_0**: @username_1 Thanks, I have rephrased the question to make it clearer.  
> **username_0**: @username_6 I foresee the need to frequently recompile and would like to find the best configuration for this, so before trying to solve this problem I'd like to see if there are specific OS configurations that people recommend that make the process overall easier. I have added more detail in the post.  
> **username_6**: Just to clarify, are you making your own altcoin? If not, I don't see why you can't just download the Windows binary provided by the altcoin devs.  
> **username_0**: @username_6 Yes I am making my own litecoin-based altcoin (see edited post). This is why compiling is necessary.  

---

