Up to date instructions on rebuilding native?

Hi,
Does anyone have any up to date instructions on rebuilding Rasplex on a native linux box? The instructions on the wiki [github.com/RasPlex/RasPlex/wiki/Native-development-environment-setup] dont seem to work

git clone https://github.com/RasPlex/RasPlex.git
cd RasPlex
git submodule init
git submodule update --remote --recursive
cd OpenELEC.tv
sudo apt-get install openjdk-7-jdk # 6 should be fine too
sudo apt-get install ninja-build
./buildman -wrlfi

There is no ./buildman under OpenELEC.tv

Oddly, ./buildman does exist in the vagrant image but since that is dated April 2014 I have a feeling thats no longer up to date.

Thanks

Rasplex is no longer based on OpenELEC.

Regards

Yeah I see OpenELEC.tv sub module is now obsolete and it says see OpenPHT-Embedded instead which is a fork of LibreELEC, although the sub module folder in git is still called OpenELEC.tv I assume as to not break the build scripts

So to re-phrase the question, are there any instructions for rebuilding Rasplex now its based on LibreELEC?

Not at the moment, sorry.

Regards

Ok thanks.

Thus far I have figured out

git clone https://github.com/RasPlex/RasPlex.git
cd RasPlex
git submodule init
git submodule update --remote --recursive
cd OpenELEC.tv
PROJECT=RPi2 ARCH=arm DISTRO=RasPlex make release

And its building… something. Will wait and see what :o)

Build instructions is included in README.md in the OpenPHT-Embedded repo.

git clone https://github.com/RasPlex/OpenPHT-Embedded.git
cd OpenPHT-Embedded
DISTRO=RasPlex PROJECT=RPi2 ARCH=arm make image

Edit: The plex-home-theater and OpenELEC.tv submodules points to the OpenPHT repos, but builds are now more easily made directly from the OpenPHT-Embedded repo. The OpenPHT and settings add-on repo is cloned with --depth 1 during the build.

@Kwiboo Thanks for the info, I now have a build.

Could you give me any guidance on the best way once the initial build has completed to make incremental changes to OpenPHT [which is the only thing I’m looking to mod], and then rebuild?

I note the build scripts put the plexht source in build.RasPlex-RPi2.arm-7.0-devel/plexht-1.6 - changing anything in here and then re-running the make command doesnt cause a rebuild - just a reimage. Removing the stamp files for plexht does a rebuild, but the entire lot not just what I’ve changed. Running ninja from the ./arm dir in plexht also rebuilds, but is there a better way? A switch/env var for the top level make file that will do a rebuild of just whats changed?

Many thanks

The script for the plexht package supports using OPENPHT_REPO and OPENPHT_BRANCH environment variables to override what repo/branch to build. You can set default overrides in ~/.libreelec/options like I have on my local build host.

kwiboo@xenial:~$ cat ~/.libreelec/options
[ -z "$OPENPHT_REPO" ] && OPENPHT_REPO=file:///home/kwiboo/OpenPHT/.git
[ -z "$DISTRO" ] && DISTRO=RasPlex
[ -z "$PROJECT" ] && PROJECT=RPi2
[ -z "$ARCH" ] && ARCH=arm

This changes the plexht package script to use the latest commit from my local clone.

With this you can use a combination of the following to rebuild the plexht (OpenPHT) package:

kwiboo@xenial:~/OpenPHT-Embedded$ scripts/clean plexht
kwiboo@xenial:~/OpenPHT-Embedded$ scripts/build plexht
kwiboo@xenial:~/OpenPHT-Embedded$ make image

Thanks very much Kwiboo, thats great.