Child pages
  • Compiling

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Search

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.23 
            Releasenews | Download
 MediaPortal 2.2.2
            Releasenews | Download

Overview

Instructions on how to compile the MediaPortal 2 source code.

Compiling with Visual C# 2010 / 2012

Compiling a 'Release' version

The Release build configuration is used for productive builds. During development and for debug builds, use the Debug build configuration. To compile MediaPortal 2 in the Release build configuration, do the following steps:

  • Start Visual Studio 2010 / 2012
  • Open the solution file
    • Source\MP2\-Client.sln
      or
    • Source\MP2\-Server.sln
       or
    • Source\MP2\-ServiceMonitor.sln
       or
    • Setup\MP2\-Setup.sln
  • Set the active build configuration to 'Release'
  • Set the active platform to 'x86' *
  • Select Build->Rebuild solution

The output will be located in

  • Bin\MP2\-Client\bin\x86\Release\{code} for the client 
    * {code:language=php}Bin\MP2\-Server\bin\x86\Release\{code} for the server 
    * {code:language=php}Bin\MP2\-ServiceMonitor\bin\x86\Release\{code} for the service monitor 
    * {code:language=php}Bin\MP2\-Setup\Release\en\-us\{code} for the setup
    
    h2. Compiling a 'Debug' version
    
    The Debug build configuration is used during development. To compile MediaPortal 2 in the Debug build configuration, do the following steps:
    * Start Visual Studio 2010 / 2012 
    * Open the solution file 
    ** {code:language=php}Source\MP2-Client.sln
     or
    • Source\MP2\-Server.sln
       or
    • Source\MP2\-ServiceMonitor.sln
       or
    • Setup\MP2\-Setup.sln
  • Set the active build configuration to 'Debug'
  • Set the active platform to 'x86' *
  • Select Build->Rebuild solution

The output will be located in

  • Bin\MP2-Client\bin\x86\Debug\{code} for the client 
    * {code:language=php}Bin\MP2-Server\bin\x86\Debug\{code} for the server 
    * {code:language=php}Bin\MP2-ServiceMonitor\bin\x86\Debug\{code} for the service monitor 
    * {code:language=php}Bin\MP2-Setup\Debug\en-us\{code} for the setup  | *\* Important Note:* MediaPortal 2 does not work in 'Any CPU' configuration. All projects have been disabled from compiling in the 'Any CPU' configuration. |
       
    h1. Compiling with MSBuild
    
    
    MSBuild comes with the .NET SDK and is a command line tool to build software by using the project files that Visual Studio creates.
    
    The following batch files for compiling with MSBuild are already included in the repository:
    * {code:language=php}Build\MSBUILD_Rebuild_Release_Client.bat
     for the client
  • Build\MSBUILD\_Rebuild\_Release\_Server.bat
     for the server
  • Build\MSBUILD\_Rebuild\_Release\_ServiceMonitor.bat
     for the service monitor
  • Build\MSBUILD\_Rebuild\_Release\_Setup.bat
     for the setup

You have to run each batch file, one by one. Do not run more than one at the same time.

After the builds are successfully completed, your freshly compiled MediaPortal is available in:

  • 
    
    Bin\MP2-Client\bin\x86\Release{code} for the client
  • 
    
    Bin\MP2-Server\bin\x86\Release{code} for the server
  • 
    
    Bin\MP2-ServiceMonitor\bin\x86\Release{code} for the service monitor
  • 
    
    Bin\MP2-Setup\Release\en-us{code} for the setup

   

 

  • No labels

This page has no comments.