Difference between revisions of "MythTV on Windows using Visual Studio"

From MythTV Official Wiki
Jump to: navigation, search
(Get the Source)
Line 24: Line 24:
 
== Get the Source ==
 
== Get the Source ==
  
You will need to clone the git source tree.   
+
You will need to clone the git source tree.
 +
 
 +
Open a "Visual Studio Command Prompt (2010)" and navigate to where you want the source locatedThis guild will assume it's located in <tt>c:\source</tt>.
 +
 
 +
To clone the source from github execute the following:
 +
 
 +
{{Code box||<pre>git clone git://github.com/MythTV/mythtv.git}}
 +
 
 +
This should place the source code in <tt>c:\source\mythtv</tt>
  
 
== Running Configure ==
 
== Running Configure ==

Revision as of 18:34, 9 September 2013


As of MythTV version 0.28, you can use Microsoft Visual Studio 2010 or greater to build a native Win32 version of all main components (plugins are still not available as of writing this).

This guide will provide you with the steps needed to install all required tools and to perform a full compile of the Mythtv source code.


Information.png Tip: The version of Visual Studio referenced in this guild is 2010, however we will try to make sure any newer version also works.


Requirements

The following tools must be installed in order to build the source. Some of the tools require specific settings or post install steps to be successfully used. Please follow each link to see detailed instructions that that component.


Information.png Tip: If a link isn't provided, it is assumed the default install will work as expected

Get the Source

You will need to clone the git source tree.

Open a "Visual Studio Command Prompt (2010)" and navigate to where you want the source located. This guild will assume it's located in c:\source.

To clone the source from github execute the following:


Script.png '
git clone git://github.com/MythTV/mythtv.git
</div>

This should place the source code in c:\source\mythtv

Running Configure

There is a PowerShell script (configure.ps1) that is used to make sure your build environment is setup correctly. It also compiles third party dependencies that are needed for MythTV.

Configure can produce two types of output

  • Makefiles
  • Visual Studio Solution/Project files (mostly used for debugging with Visual Studio)

Makefiles

This is the best choice if you are looking for a simple way to quickly compile all code. It is completely command line driven and when finished, you will have all needed dll's & exe's.

Visual Studio Solution/Projects

Best used if you want to debug or develop code. It creates a set of solution and project files. You can then open the solution file in Visual Studio and use the full features of the tool.


Information.png Tip: You can run configure multiple times to produce both the makefiles and the Visual Studio Solution. You can then run the build on the command line at any time and switch to the IDE if you need to debug something.