HowTo: Compiling MediaPortal with just .NET framework 2.0 (1 Viewer)

scoop

Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    Well, the subject is a bit deceptive, but here's a little tutorial on how to compile MediaPortal with as little as possible pieces of software installed:

    Get the software:
    It would be easy if svn.exe is placed in a directory which is in the PATH variable, or add the directory where you put it into the PATH variable.

    Initial checkout
    Code:
    @echo off
    c:
    cd\
    svn checkout https://svn.sourceforge.net/svnroot/mediaportal/trunk/mediaportal

    Ok, now the source should be available in c:\mediaportal .

    Update local working copy
    After the initial checkout, it should be sufficient to execute the following in order to update your local working copy:
    Code:
    @echo off
    pushd c:\
    svn update mediaportal
    popd
    If you run this little batch file, then after a while your local working copy should be updated with the SVN source tree. You can update later on with the same batch file.

    Build MediaPortal:
    After updating, it's time for compilation. I just put the command into a batch file so I don't have to remember the syntax:
    Code:
    @echo off
    pushd c:\mediaportal
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe mediaportal.sln /t:Rebuild /p:Configuration=Release
    popd
    After the build is successfully completed, your freshly compiled MediaPortal is available in C:\mediaportal\xbmc\bin\release\.

    That's it.

    Kind regards,
    Michel

    EDIT: added solution filename to build batchfile... :oops:
    EDIT 01-04-2006: updated howto for SVN
     

    pigboy307

    Portal Member
    March 10, 2006
    19
    0
    Am i being thick?
    Done all that and thanks for the idiots guide but what do i do with it now when i started it i said RC2 is this right. I thought it would have a different version number.

    I presume you run the postbuild.bat file?
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    postbuild.bat automatically gets run at the end of the build process, so no need to run it manually. The build vesion only gets updated during release (candidate) builds, so newer CVS versions always show the version of the last release (candidate). The same goes for binary CVS snapshots from https://www.team-mediaportal.de .

    Kind regards,
    Michel
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,

    Updated this little howto for the switch to SVN.

    Kind regards,
    Michel
     

    scoop

    Retired Team Member
  • Premium Supporter
  • November 14, 2004
    614
    7
    Hi,
    johnbobjamesson said:
    are there any advantages building MP on the machine you will be using it over using cvs snapshot builds?
    In short, no.

    You'll only gain from it if you've modified some parts of the code, for example. Another advantage is that you can update to current SVN anytime you want. Binary SVN snapshots are only created on fixed intervals or on request of a developer.

    Kind regards,
    Michel
     

    Users who are viewing this thread

    Similar threads

    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: New: Improvement /...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    1K
    • Sticky
    moved off-topic comments to 1.30.0 - Release naming discussions
    moved off-topic comments to 1.30.0 - Release naming discussions
    We have just released MediaPortal 1.30 - Ukraine Highlights of this release Improvement / Rework: [MP1-5092] - Update MediaInfo...
    Replies
    1
    Views
    1K
    It's okay, we did delay the release. But not by choice, so sorry, there will be a pre-release the other day, it's already in the process of packing and shipping...
    It's okay, we did delay the release. But not by choice, so sorry, there will be a pre-release the other day, it's already in the...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    Replies
    6
    Views
    3K
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    We have just released MediaPortal 1.28 Summer Breeze Highlights of this release Bugfixes: [MP1-5053] - TV framerate is not...
    Replies
    12
    Views
    4K
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5081] - WatchDog...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    2K
    Top Bottom