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

From Official Kodi Wiki
Jump to navigation Jump to search
>Dankula
No edit summary
 
 
(37 intermediate revisions by 11 users not shown)
Line 1: Line 1:
__NOTOC__
{{xbmc4xbox|HOW-TO_compile_XBMC_for_Xbox_from_source_code}}
__TOC__
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 [http://www.eclipse.org/downloads/ 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.
|[[image:eclipsestep1.jpg|400px|right]]
|}
{|
|[[image:eclipsestep2.png|400px]]
|
===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''.
|
[[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''.

Latest revision as of 10:22, 11 December 2011

Attention.png XBMC for XBOX is not supported by xbmc anymore. Please check for updates on the related page at the xbmc4xbox wiki.