XBMC will be renamed to Kodi for v14. Read here for more details
Various pages on the wiki might contain old references to "XBMC", but will most often still apply to "Kodi". Find out how you can help here.

HOW-TO:Compile XBMC for Linux, Add-on:Amazon.com

From Kodi
(Difference between pages)
Jump to: navigation, search
 
m (Addon-Bot Update)
 
Line 1: Line 1:
<div class="messagebox merge">[[Image:Merge-arrow.gif|left]] It has been suggested that the ''[[:{{NAMESPACE}}HOW-TO compile XBMC for Linux on Fedora Red Hat Enterprise Linux CentOS]]'' article should be merged into this article ([[{{{2|:{{NAMESPACE}} Talk:HOW-TO compile XBMC for Linux on Fedora Red Hat Enterprise Linux CentOS}}}|discuss]]).</div>
+
{{Addon
<div class="messagebox merge">[[Image:Merge-arrow.gif|left]] It has been suggested that the ''[[:{{NAMESPACE}}HOW-TO compile XBMC for Linux on Debian/Ubuntu]]'' article should be merged into this article ([[{{{2|:{{NAMESPACE}} Talk:HOW-TO compile XBMC for Linux on Debian/Ubuntu}}}|discuss]]).</div>
+
|Name=Amazon.com
<div class="messagebox merge">[[Image:Merge-arrow.gif|left]] It has been suggested that the ''[[:{{NAMESPACE}}HOW-TO compile XBMC for Linux on openSUSE Linux]]'' article should be merged into this article ([[{{{2|:{{NAMESPACE}} Talk:HOW-TO compile XBMC for Linux on openSUSE Linux}}}|discuss]]).</div>
+
|provider-name=C-Quel + John Lockwood
<div class="messagebox merge">[[Image:Merge-arrow.gif|left]] It has been suggested that the ''[[:{{NAMESPACE}}HOW-TO compile XBMC for Linux on Moblin v2]]'' article should be merged into this article ([[{{{2|:{{NAMESPACE}} Talk:HOW-TO compile XBMC for Linux on Moblin v2}}}|discuss]]).</div>
+
|ID=metadata.amazon.com
 
+
|latest-version=1.0.4
 
+
|extension point=xbmc.metadata.scraper.movies
{{Current event}}
+
|provides=
{{GoToParent|Parent=Installing XBMC for Linux}}
+
|Summary=Amazon Movie Scraper
__NOTOC__
+
|Description=Download Movie information from www.amazon.com
''This is only a copy and paste from the [http://xbmc.svn.sourceforge.net/viewvc/*checkout*/xbmc/branches/linuxport/XBMC/README.linux README.linux] just to get this article started. Please refer to the SVN version of [http://xbmc.svn.sourceforge.net/viewvc/*checkout*/xbmc/branches/linuxport/XBMC/README.linux README.linux] to be sure you got the latest edition!''
+
|Platform=all
----
+
|icon url=<img size=150 src="http://mirrors.xbmc.org/addons/dharma/metadata.amazon.com/icon.png"/>}}
;'''Note:''' This is an initial Linux port. It does not yet include all the features of XBMC. Don't expect too much. For more information read the [[XBMC for Linux port project]] article in this wiki.
+
;'''Note:''' XBMC is open source (GPL) software and as so the source code is available for anyone to modify and/or compile (under the rules of the GPL).
+
 
+
 
+
==Prerequisites==
+
*Supported Linux Operating-System installed on a supported computer, currently the officially supported OS are:
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/desktopedition Ubuntu Desktop Edition 8.04 (Hardy Heron) 32-bit for x86]
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/desktopedition Ubuntu Desktop Edition 8.10 (Intrepid Ibex) 32-bit for x86]
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/desktopedition Ubuntu Desktop Edition 9.04 (Jaunty Jackalope) 32-bit for x86]
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/serveredition Ubuntu Server Edition 8.04 (Hardy Heron) 32-bit for x86]
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/serveredition Ubuntu Server Edition 8.10 (Intrepid Ibex) 32-bit for x86]
+
**[http://www.ubuntu.com/products/WhatIsUbuntu/serveredition Ubuntu Server Edition 9.04 (Jaunty Jackalope) 32-bit for x86]
+
**[http://www.ubuntu.com/products/mobile Ubuntu Mobile and Embedded Edition 8.04 (UME) 32-bit for x86]
+
**[http://www.ubuntu.com/products/mobile Ubuntu Mobile and Embedded Edition 8.10 (UME) 32-bit for x86]
+
**[http://www.ubuntu.com/products/mobile Ubuntu Mobile and Embedded Edition 9.04 (UME) 32-bit for x86]
+
***Note that it is also possible to compile and run 32-bit XBMC under 64-bit (AMD64/EMT64) Ubuntu if you run it in a 32bit chroot.
+
 
+
* Other working distributions (but officially unsupported) are:
+
**[[HOW-TO compile XBMC for Linux on Fedora Red Hat Enterprise Linux CentOS|Fedora RedHat Enterprise Linux, and CentOS]]
+
**[[HOW-TO compile XBMC for Linux on openSUSE Linux|OpenSUSE]]
+
**[[HOW-TO compile XBMC for Linux on Debian/Ubuntu|Debian]]
+
**[[HOW-TO compile XBMC for Linux on Moblin v2|Moblin]]
+
 
+
*[http://en.wikipedia.org/wiki/X86 x86-based computer]. No other special hardware is required for development, as developers can compile using the "''make sdl_2d option''" (see [http://xbmc.svn.sourceforge.net/viewvc/*checkout*/xbmc/branches/linuxport/XBMC/README.linux|README.linux]). However for end-users the minimum requirement is a [http://en.wikipedia.org/wiki/Graphics_Processing_Unit 3D GPU (Graphics Processing Unit)] that at least supports [http://en.wikipedia.org/wiki/Shader_model Shader Model 3.0] and [http://en.wikipedia.org/wiki/OpenGL OpenGL 2.0] (that features 24bpp or 32bpp for 3D hardware-acceleration support, which XBMC GUI need to run smootly at an acceptable frame-rate). Graphic adapters that support [http://en.wikipedia.org/wiki/DirectX DirectX version 9.0c] or later usually meet all of those mentioned requirements, ([[Team-XBMC]] recommends [http://en.wikipedia.org/wiki/Nvidia NVIDIA GeForce 6150 or later] as NVIDIA are currently the manufacturer that offers [http://en.wikipedia.org/wiki/Graphics_hardware_and_FOSS good device-drivers for Linux] (and [http://en.wikipedia.org/wiki/Nvidia NVIDIA GeForce 6150 or later] supports OpenGL 2.0).
+
 
+
*Correctly installed graphics device-drivers which supports 24bpp or 32bpp for 3D hardware-acceleration, ([[Team-XBMC]] recommends that you run [http://www.albertomilone.com/nvidia_scripts1.html Envy] which is a application that automaticly downloads and installs the correct proprietary device-driver for your ATI or NVIDIA graphic chip).
+
 
+
==Getting the source code==
+
For the first time:<br>
+
<source lang="bash">
+
$ sudo apt-get install subversion
+
$ cd $HOME
+
$ svn checkout {{svn}}
+
</source>
+
 
+
In order to update the source code (and clean old make files):<br>
+
<source lang="bash">
+
$ cd $HOME/XBMC
+
$ svn up
+
$ make clean
+
</source>
+
 
+
==Installing required Ubuntu packages==
+
The current list of required packages for each supported version is located in the [http://xbmc.svn.sourceforge.net/viewvc/*checkout*/xbmc/branches/linuxport/XBMC/README.linux README.linux] file in the SVN
+
 
+
'''''Use a single command to get all build dependencies'''''
+
 
+
For this, you need to specify the PPA in your apt sources. Please find them [http://forum.xbmc.org/showthread.php?t=33327 on the forum].
+
 
+
Update apt :
+
<source lang="bash">
+
$ sudo apt-get update
+
</source>
+
 
+
Here is the magic command to get the build dependencies (used to compile the version on the PPA).
+
<source lang="bash">
+
$ sudo apt-get build-dep xbmc
+
</source>
+
 
+
==How to compile==
+
===Default compile and install===
+
Requires 3D GPU that has supported OpenGL 3D hardware acceleration, set bitdepth to 24bpp or 32bpp<br>
+
<source lang="bash">
+
$ cd $HOME/XBMC
+
$ ./bootstrap
+
$ ./configure
+
$ make
+
$ sudo make install
+
</source>
+
 
+
===./configure command line switches===
+
These switches are possible when running configure:
+
 
+
* '''--prefix=/path'''
+
** Install XBMC to /path rather than default (/usr/local)
+
* '''--disable-gl'''
+
** Much much slower GUI rendering but works on all adapters and bitdepths. For development purposes only.
+
* '''--disable-debug'''
+
** <nowiki>No debug information (smaller executable, no FreeMem text in screens)</nowiki>
+
** <nowiki>open issue: FreeMem is still shown even with --disable-debug</nowiki>
+
 
+
It is also possible to combine these options, for example:
+
 
+
<source lang="bash">
+
$ ./configure --disable-debug --disable-gl
+
</source>
+
 
+
===Quicker compilation===
+
By adding -j<number> to the make command, you describe how many cores will be used. So for dualcore the commands are:<br>
+
<source lang="bash">
+
$ make -j2
+
</source>
+
or
+
<source lang="bash">
+
$ make -j2 sdl_2d
+
</source>
+
 
+
Exprimental: You could add [http://distcc.samba.org/ distcc] if you have more than one computer networked. This will run make on several computers sharing the workload between them.
+
 
+
==How to run==
+
Everything is now taken care of by the install script. Simply run the xbmc command from anywhere:
+
<source lang="bash">
+
$ xbmc
+
</source>
+
 
+
==Fullscreen==
+
Toggle FS with \ key while XBMC is running.
+
 
+
==Multi-monitor Fullscreen==
+
If you have a multi-monitor setup and you want to use fullscreen, make sure to set the env variable
+
SDL_VIDEO_FULLSCREEN_HEAD to the display no. which you want SDL to use for the fullscreen mode.
+
 
+
For e.g. "SDL_VIDEO_FULLSCREEN_HEAD=1 ./xbmc.bin -fs" to tell SDL to use display no.1
+
 
+
[[category:How To|Linux]]
+
[[category:Linux]]
+
[[category:Development]]
+
[[category:Inner Workings]]
+
[[category:OpenGL]]
+
[[category:To-Do]]
+

Revision as of 09:19, 24 October 2011

Amazon.com
<img width="256" src=""/>
Author: C-Quel + John Lockwood

Type: Movie information
Version: 1.0.4
Repo:

Summary: Amazon Movie Scraper
Home icon grey.png   ▶ Add-ons ▶ Amazon.com

Download Movie information from www.amazon.com

Personal tools
Namespaces

Variants
Actions
Navigation
Wiki help
Toolbox