Archive:HOW-TO:Compile XBMC for Xbox: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Dankula
No edit summary
 
>Bizzeh
No edit summary
Line 1: Line 1:
__NOTOC__
=Checking Out CVS=
__TOC__
==Prerequisites==
It is easy to download and compile your own build of XBMC, assuming that you have the proper tools to do so. This tutorial will show you how using Eclipse, which is an easy, user-friendly way to get the lastest source code from CVS and compile it. In order to use this tutorial, you will need the following software:
* Microsoft Visual C++ 2003 (Compiler and IDE)
* '''Microsoft Visual Studio 2003 (VS2003)'''
* Microsoft XDK (XBox Development Kit)
* '''Microsoft XDK (Xbox Developer Kit)'''
* TortoiseCVS
* '''Eclipse SDK, available [http://www.eclipse.org/downloads/ here]''' This tutorial was written using version 3.1.2
==Getting Source==
==Configuring Eclipse==
===Using TortoiseCVS===
{|
If you have TortoiseCVS, you can skip the first two steps.
|
* Get TortoiseCVS installer from [http://www.tortoisecvs.org/ the TortoiseCVS site]
===Selecting your Workspace===
* Install TortoiseCVS
When you first launch Eclipse, it will prompt you to choose your workspace. This is where the downloaded source code will be saved to on your computer. Your completed build will also be saved here. After choosing your workspace, the welcome screen will appear. Select the arrow in the upper right-hand corner of the screen to proceed to the workbench.
* Right click in a directory and click "CVS Checkout" and it will present this screen
|[[image:eclipsestep1.jpg|400px|right]]
[[Image:Tcvs empty.png]]
|}
* Fill in the CVSROOT with ":pserver:anonymous@xbmc.cvs.sourceforge.net:/cvsroot/xbmc" which will automaticaly fill in several of the other box's for you.
{|
* Fill in the Module with "XBMC" which will give you a box that looks like:
|[[image:eclipsestep2.png|400px]]
[[Image:Tcvs full.png]]
|
* Click ok and wait for all the source tree to download
===Setting Up Your Project===
==Building XBMC==
Once you reach the workbench, select ''File->New->Project'' and the New Project Wizard will appear. Then, choose ''Checkout Projects from CVS''  and then press ''Next''.
===Build.bat===
|}
Building with build.bat is a very simple process
{|
* Double click on build.bat to run the automated build process
|
* The process will create a BUILD directory with your new XBMC build inside
 
===xbmc.sln===
===Configuring the CVS Repository Location===
This is the way of just building default.xbe, which is only recomended for advanced users who are debugging problems.
Enter the following information:
* Open up the xbmc.sln file with Visual C++ 2003
;host
* Select Release or Debug from the Build Manager
:xbmc.cvs.sourceforge.net
* Compile, and wait
;Repository Path
* Depending on if you selected Release or Debug, the default.xbe would be in that sub directory.
:/cvsroot/xbmc
;User
:anonymous
;Password
:leave blank
;Connection Type
:pserver
;Port
:Use default Port
Then click ''Next''.
|
[[image:eclipsestep3.png|400px|right]]
|}
{|
|
[[image:eclipsestep4.png|400px]]
|
 
===Select Your Module===
Choose ''Use an Existing Module'', select XBMC and click ''Next''.<br>''Then, choose Check out as a project in the workspace'' and click ''Finish''. Eclipse will then download the latest source code for XBMC to your computer. This will take a while.
|}
==Compiling Your Build==
{|
|
Once the download has completed, you should see the latest source in tree form on the left side of the screen.
Choose ''Run->External Tools->External Tools'' from the menu.<br>
Choose ''Program'' and then click ''New''. This will bring up the screen pictured to the right. Complete the following fields:
;Name
:XBMC Builder
;Location
:Choose ''Browse File System'' and select Build.bat from the XBMC folder within the folder that you selected as your workspace earlier.
;Working Directory
:Choose ''Browse File System'' and select the XBMC folder within the folder that you selected as your workspace earlier.<br>
Then choose ''Apply'', then ''Run''. Eclipse will then begin to compile your build. You should see it working in the Console window in the bottom right-hand corner of your screen. This will take a while to complete.<br><br>
Hopefully, you will eventually see the following message in the console window:
  Build Succeeded!
  View the build log in your HTML browser? [y/n]
At this point, your build is ready to install on your Xbox. You can find it in the BUILD folder located in the folder that you defined as your workspace. It is also available as a RAR archive in your workspace folder.
|
[[image:eclipsestep5.png|right|400px]]
|}
 
==Updating Your Source Code and Compiling a New Build==
It is not necessary to take all of the previous steps to compile a new build. Simply right-click >XBMC at the top of the tree view and choose ''Compare With->Latest From HEAD''. This will open the Team Synchronizing View. Then, right-click on your project and choose ''Override and Update''.<br>
To Compile the new version, simply choose ''Run->External Tools->XBMC Builder''.

Revision as of 19:42, 13 October 2006

Checking Out CVS

Prerequisites

  • Microsoft Visual C++ 2003 (Compiler and IDE)
  • Microsoft XDK (XBox Development Kit)
  • TortoiseCVS

Getting Source

Using TortoiseCVS

If you have TortoiseCVS, you can skip the first two steps.

  • Get TortoiseCVS installer from the TortoiseCVS site
  • Install TortoiseCVS
  • Right click in a directory and click "CVS Checkout" and it will present this screen

Tcvs empty.png

  • Fill in the CVSROOT with ":pserver:[email protected]:/cvsroot/xbmc" which will automaticaly fill in several of the other box's for you.
  • Fill in the Module with "XBMC" which will give you a box that looks like:

Tcvs full.png

  • Click ok and wait for all the source tree to download

Building XBMC

Build.bat

Building with build.bat is a very simple process

  • Double click on build.bat to run the automated build process
  • The process will create a BUILD directory with your new XBMC build inside

xbmc.sln

This is the way of just building default.xbe, which is only recomended for advanced users who are debugging problems.

  • Open up the xbmc.sln file with Visual C++ 2003
  • Select Release or Debug from the Build Manager
  • Compile, and wait
  • Depending on if you selected Release or Debug, the default.xbe would be in that sub directory.