Archive:HOW-TO:Compile XBMC for Xbox

From Official Kodi Wiki
Revision as of 12:42, 26 May 2006 by >Dankula
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 Studio 2003 (VS2003)
  • Microsoft XDK (Xbox Developer Kit)
  • Eclipse SDK, available here This tutorial was written using version 3.1.2

Configuring Eclipse

Selecting your Workspace

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.

Eclipsestep1.jpg
Eclipsestep2.png

Setting Up Your Project

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.

Configuring the CVS Repository Location

Enter the following information:

host
xbmc.cvs.sourceforge.net
Repository Path
/cvsroot/xbmc
User
anonymous
Password
leave blank
Connection Type
pserver
Port
Use default Port

Then click Next.

Eclipsestep3.png

Eclipsestep4.png

Select Your Module

Choose Use an Existing Module, select XBMC and click Next.
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.
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.

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.

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.

Eclipsestep5.png

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.
To Compile the new version, simply choose Run->External Tools->XBMC Builder.