<p>Users that need to compile their own binaries should get the source code for the latest release from the <ahref="../download.html">Download Page</a>.</p>
<p>If you're a programmer and plan to contribute with code fixes or if you're user that wants to use the latest version and accepts the risks of doing that, then you should download the source from the Git server at https://github.com/leozide/leocad.git.</p>
<p>Typing this will download the latest revision to a directory called 'leocad' on your computer:</p>
<p>Note: You can receive notifications of source code changes by watching the project on the <ahref="https://github.com/leozide/leocad">Github Page</a>.</p>
<p>LeoCAD requires Qt 4.8 or later (including Qt5) to compile. You can download the Qt SDK for all platforms from <ahref="http://qt-project.org">http://qt-project.org</a>.</p>
<p>Although it's not required, you should also download and install a <ahref="library.html">Parts Library</a>, otherwise only a very small set of basic parts will be available.</p>
<h2>Compiling</h2>
<p>The easiest way to compile on any platform is to open 'leocad.pro' in Qt Creator and build it from there.</p>
<h4>Linux</h4>
<p>If you're not using Qt Creator, or if you prefer to compile from the command line you can generate a Makefile using qmake and then build and install it:</p>
<divclass="highlight"><code>leocad$ qmake leocad.pro<br>leocad$ make<br>leocad$ make install</code></div>
<p>There are two options that can be passed to qmake to customize LeoCAD builds that distribution maintainers will be interested:</p>
<ul>
<li>DISABLE_UPDATE_CHECK=1: Disables update checks at startup and removes that option from the menu. This is recommended to be set for distributions that have their own way of updating applications to avoid confusing users.</li>
<li>LDRAW_LIBRARY_PATH="path": Adds an extra path to be searched at startup for the LDraw library. The path should be the root folder of the LDraw library, for example: "/usr/share/ldraw".</li>
</ul>
<h4>Windows</h4>
<p>Windows users also have the option to compile with Visual Studio, you just need to use qmake to generate the project files first:</p>
<p>This will generate a file called 'leocad.vcxproj' that can be opened in Visual Studio.</p>
<h4>OSX</h4>
<p>To compile for OSX you'll need to add a <ahref="library.html">Parts Library</a> to the folder where you downloaded the source code. You can download the Linux library and unzip it there:</p>
<p>To compile for iOS you'll need to add a <ahref="library.html">Parts Library</a> to the folder where you downloaded the source code. You can download the Linux library and unzip it there:</p>