Child pages
  • Compiling

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed broken content from import

...

Open any of the following solution files

  • Source\MP2\-Client.sln

  • Source\MP2-Server.sln
  • Source\MP2-ServiceMonitor.sln
  • 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

  • Code Block
    languagephpxml
    Bin\MP2\-Client\bin\x86\Release\{code} for the client 
    * {code:language=php}

    for the client

  • Code Block
    languagexml
    Bin\MP2\-Server\bin\x86\Release\{code} for the server 
    * {code:language=php}

    for the server

  • Code Block
    languagexml
    Bin\MP2\-ServiceMonitor\bin\x86\Release\{code} for the service monitor 
    * {code:language=php}

    for the service monitor

  • Code Block
    languagexml
    Bin\MP2\-Setup\Release\en\-us\{code} for the setup
    
    h2. Compiling a 

    for the setup

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 Block
    languagexml
    Source\MP2-Client.sln

     or

  • Code Block
    language
    php
    xml
    Source\MP2\-Server.sln

     or

  • Code Block
    language
    php
    xml
    Source\MP2\-ServiceMonitor.sln

     or

  • Code Block
    language
    php
    xml
    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

  • Code Block
    languagephpxml
    Bin\MP2-Client\bin\x86\Debug\{code} for the client 
    * {code:language=php}
  • Code Block
    languagexml
    Bin\MP2-Server\bin\x86\Debug\{code} for the server 
    * {code:language=php}
  • Code Block
    languagexml
    Bin\MP2-ServiceMonitor\bin\x86\Debug\{code} for the service monitor 
    * {code:language=php}
  • Code Block
    languagexml
    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}
Info
titleImportant Note

MediaPortal 2 does not work in 'Any CPU' configuration. All projects have been disabled from compiling in the 'Any CPU' configuration.


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 Block
    languagexml
    Build\MSBUILD_Rebuild_Release_Client.bat

     for the client

  • Code Block
    languagephpxml
    Build\MSBUILD\_Rebuild\_Release\_Server.bat

     for the server

  • Code Block
    languagephpxml
    Build\MSBUILD\_Rebuild\_Release\_ServiceMonitor.bat

     for the service monitor

  • Code Block
    languagephpxml
    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:

  • Code Block
    languagephpxml
     
    Bin\MP2-Client\bin\x86\Release
    {code} for

    for the client

  • Code Block
    languagephpxml
     
    Bin\MP2-Server\bin\x86\Release
    {code} for

    for the server

  • Code Block
    languagephpxml
     
    Bin\MP2-ServiceMonitor\bin\x86\Release
    {code} for

    for the service monitor

  • Code Block
    languagephpxml
     
    Bin\MP2-Setup\Release\en-us
    {code} for

    for the setup