Hardware Reference
In-Depth Information
Omxplayer was designed for the Raspbian environment and is much more com-
plicated to build for other platforms. If you want to build for Pidora, you should try
the steps documented by Omarr Khattab .
To install omxplayer on Raspbian, you will need to have Git installed and then clone a
copy of the source tree into your home directory on the Raspberry Pi:
$ sudo apt-get install git
$ git clone https://github.com/popcornmix/omxplayer
Cloning into 'omxplayer'...
remote: Counting objects: 1065, done.
remote: Compressing objects: 100% (539/539), done.
remote: Total 1065 (delta 730), reused 823 (delta 523)
Receiving objects: 100% (1065/1065), 1.38 MiB | 598 KiB/s, done.
Resolving deltas: 100% (730/730), done.
Because you will need to build it from source, you'll need to complete some additional
build dependencies and system preparations. To simplify the process on Raspbian,
just run the included script ( ./prepare-native-raspbian.sh ), which will prepare the OS
for building omxplayer :
$ ./prepare-native-raspbian.sh
This will do a lot of things:
• Patch the makefiles for the Raspbian specific settings.
• Install dependent packages for building omxplayer .
• Install gcc 4.7, which is necessary to build omxplayer .
• Update the Raspberry Pi firmware.
• Install the latest prebuilt Linux kernel (and modules).
• Update to the latest videocore libraries and headers.
• Sync the changes to the SD card.
• Launch raspi-config to enable you to set the memory_split . If you have an older
Raspberry Pi Model B (with only 256 MB of memory), you will need to set the
memory_split value to 16; otherwise, the ffmpeg code in omxplayer will not com-
pile. If you have a current Raspberry Pi Model B, the default setting (64) is ac-
ceptable as is.
Even with this process, you still have a few things left to do to get it working.
There is (at least as of the time of this writing) one minor bug in Makefile.include that
will prevent it from building. To fix it, open Makefile.include with your favorite text
 
Search WWH ::




Custom Search