Skip to content

kylegordon/ohPlayer

 
 

Repository files navigation

OpenHome Sample Players (https://github.com/openhome/ohPlayer) for Mac, Windows, Linux and Raspberry Pi.

Repository and source setup
---------------------------
Before building, clone ohdevtools (https://github.com/openhome/ohdevtools.git) into the same parent directory as ohPlayer.

OpenHome can fetch pre-built dependencies for ohNet and ohPipeline from the OpenHome build server.

To fetch dependencies, run
    'go fetch --all'
or
    'go fetch --all --debug'
depending on your build requirements.
App dependencies will be downloaded to the ohPlayer/dependencies directory.

Building OpenHome Player sample apps:
------------------------------------------

Linux (Ubuntu 12.x onward, Raspbian)
-------------------------------------

# install compiler dependencies
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8 

# install audio and UI dependencies
sudo apt-get install gtk+-3-dev libnotify-dev notify-osd libasound2-dev

# install package maker
sudo apt-get install ruby-dev
sudo gem install fpm

# make the project
cd ohPlayer/linux

make ubuntu     // release build
or
make raspbian   // release build
or
DEBUG=1 make ubuntu   // debug build
or
DEBUG=1 make raspbian // debug build
or
sudo make ubuntu-install     // build and install locally
or
sudo make raspbian-install   // build and install locally

# generate a debian package for distribution
./GeneratePkg.pl --platform=raspbian --application=openhome-player --version=0.1.2.3

# generate an installer package
./GeneratePkg.pl --platform=raspbian --application=openhome-player --version=0.1.2.3 --installer

Cross-compilation is not yet supported. Test applications must be built on the target platform at present.
The project will build a GTK menubar application.


Windows (Visual Studion 2013)
-----------------------------

Open the OpenHomePlayer solution in Visual Studio 2013 and build release or debug variants

  Win32/OpenHomePlayer.sln

The solution will build a windows tray application.

The installer generation process employs the Inno Setup 5 tool - http://www.jrsoftware.org/isinfo.php
The actual download was 'isetup-5.5.5.exe'.

All defaults were chosen during application installation including the installation of the optional pre-processor extensions..
To create the installer, compile the installer script, OpenHomePlayerInstaller.iss, as follows:

  iscc /dMySrcDir="C:\<src folder>" OpenHomePlayer Installer.iss

Where <src folder> identifies the parent folder of the installer (Win32Installer) and application source (Win32) folders.

'setup.exe' will be generated in the Win32Installer folder.


Mac OSX (Mountain Lion onward)
-------------------------------

Open the Sample Xcode project and build release or debug variants.

   osx/OpenHomePlayer.xcodeproj
   
The project will build a system menu application.

About

ohPlayer is a full featured OpenHome media renderer licenced under an MIT licence

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.4%
  • Objective-C++ 7.8%
  • JavaScript 4.1%
  • Python 4.1%
  • Perl 3.7%
  • C 1.0%
  • Other 1.9%