Build:PC

Aus TuxBoxWIKI
Wechseln zu: Navigation, Suche

HowTo Build Tuxbox-Neutrino (aka Neutrino-HD) for pc

Based up http://dbox2world.net/thread/12844-tuxbox-neutrino-gui-neutrino-pu-mp-generic-pc/ Tested with Kubuntu 17.04, openSuse Leap 42.3/15.0


Install some basic required host packages

Kubuntu

Add an extra package sources entry into source list file '/etc/apt/sources.list' Or use your favourite editor and add with this command:

sudo echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list

Then install some basics for your host:

sudo apt-get update
sudo apt-get install build-essential ccache git make subversion patch gcc bison flex texinfo automake libtool pkg-config ncurses-dev yasm libswscale-dev deb-multimedia-keyring

Install some packages for neutrino build:

sudo apt-get install libreadline6-dev
sudo apt-get install libswresample-dev
sudo apt-get install libopenthreads-dev
sudo apt-get install libglew-dev
sudo apt-get install freeglut3-dev 
sudo apt-get install libao-dev 
sudo apt-get install libid3tag0-dev 
sudo apt-get install libmad0-dev 
sudo apt-get install libcurl4-openssl-dev 
sudo apt-get install libfreetype6-dev 
sudo apt-get install libsigc++-2.0-dev  
sudo apt-get install libjpeg-dev 
sudo apt-get install libgif-dev 
sudo apt-get install libflac-dev 
sudo apt-get install libvorbis-dev
sudo apt-get install libavformat-dev


OpenSuse

Install some basics for your host:

sudo zypper install build-essential ccache git make subversion patch gcc bison flex texinfo automake libtool pkg-config ncurses-devel yasm libswscale-devel

If installation with zypper or Yast was failed you can install a rpm package of your trust. Download package manually e.g. from here and install manually:

   http://packman.links2linux.com/package/libmad/430902
   

Some other packages should be already installed but it's a good idea to take a look into Yast otherwise for manual installation use zypper:

sudo zypper install libreadline6
sudo zypper install libswresample-devel
sudo zypper install libOpenThreads-devel
sudo zypper install libGLEW1_13            => for SuseLeap 15.x    libGLEW2_1-debuginfo
sudo zypper install glew-devel
sudo zypper install freeglut-devel 
sudo zypper install libao-devel 
sudo zypper install libid3tag-devel
sudo zypper install libcurl4
sudo zypper install libfreetype6 
sudo zypper install libsigc++2-devel  
sudo zypper install libjpeg62-devel 
sudo zypper install libgif6                => for SuseLeap 15.x    libgif7-debuginfo
sudo zypper install flac-dev               => for SuseLeap 15.x    flac-devel
sudo zypper install libvorbis-devel
sudo zypper install libavformat-devel

The libmad-devel package maybe not in any official package repository, but you can try with:

sudo zypper install libmad-devel

Get Neutrino sources

Change into your home directory and make some steps for prepare:

mkdir tuxbox-neutrino
cd tuxbox-neutrino

Clone sources

git clone https://github.com/tuxbox-neutrino/build-generic-pc.git
git clone https://github.com/tuxbox-neutrino/gui-neutrino.git
git clone https://github.com/tuxbox-neutrino/library-stb-hal.git

change into build directory

cd build-generic-pc

Build some stuff required by Neutrino

make prepare

This will build ffmpeg, lua, libdvbsi++, libsigc++


You will see many, many warnings and it may takes a while.

Build Neutrino

Now we should be ready to build neutrino, but for neutrino-pc platform we need the mp (multiplatform) branch.

Change into gui-neutrino directory and checkout required build sources:

cd ..
cd gui-neutrino

We have two usable branches master and mpx. Both branches should be suitable, but mpx-branch is usable for more platforms. If you use a branch that is not working, please report, so we can fix.

git checkout master
cd ..
cd build-generic-pc


Start build

Now we can build neutrino:

make neutrino

For faster build you can use the '-j' option eg.

make -j4 neutrino

Run Neutrino

If all was fine, we can start Neutrino with:

make run

for debugging:

   make run-gdb
   make run-valgrind
   make run-helgrind