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

From MythTV Official Wiki
Jump to: navigation, search
(Running Configure)
(Running Configure)
Line 30: Line 30:
 
:* Visual Studio Solution/Project files (mostly used for debugging with Visual Studio)
 
:* Visual Studio Solution/Project files (mostly used for debugging with Visual Studio)
  
==== Makefiles ====
+
=== 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.
 
: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 ====
+
=== 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.
 
: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.
  
 
{{Tip box|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.}}
 
{{Tip box|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.}}
 +
 +
<hr />

Revision as of 18:27, 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

Running Configure

There is a configure.ps1 PowerShell script 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.