**Update: please read message 1 until 3 to get a complete overview of the build.
Tried to build OpenPHT for Ubuntu, no luck yet. Some of the header files are not correct, they need a path to other headers (plex/PlexTypes.h for instance). But even after fixing that the build will fail. Posting this for future reference, since this seems the way to build it as soon as the sources are “compilable”.
I am actively using kodi from the team-xbmc ppa, I recommend you use the same ppa so you can install the latest build dependencies for kodi (no need to install kodi itself here). First step is to make sure you can build at all:
sudo apt-get install build-essential
sudo apt-get install git-core
Now we are going to add the kodi ppa. You can leave this step, if you want to and use the standard kodi provided with Ubuntu. However, your results might be slightly different than mine.
sudo add-apt-repository ppa:team-xbmc/ppa
Install the kodi developement dependencies (on my system this took around 500Mb):
sudo apt-get update
sudo apt-get build-dep kodi
I also had to install the following (the configure step below failed without the package being available):
sudo apt-get install libsdl-image1.2-dev libflac++-dev libshairport-dev
Find yourself a location to save the sources (in this example it will be ¯/OpenPHT) and get them:
cd ~
git clone https://github.com/RasPlex/OpenPHT.git openpht-src
mkdir ~/openpht-build
cd ~/openpht-build
To build the sources, execute the following three commands:
cmake -DCMAKE_BUILD_TYPE=Debug -DCOMPRESS_TEXTURES=on -DENABLE_AUTOUPDATE=off -DCMAKE_INSTALL_PREFIX=/opt/openpht "~/openpht-src"
make
sudo make install