2015-02-19, 18:38
:edit
----
This is my WIP which will be updated.
:edit2 building our own ffmpeg was a bad idea so now using some patch files, let's see how this goes
:edit3: I think its in an early use stage now, needs more polishing but does the job. If you plan to use your raspberry pi 2 mainly with kodi, use Openelec/Raspbmc/Osmc/xbian!
----
Now that we have the power to build directly on pi 2, I would like to share a few things and make some suggestions for the configure files.
I guess there may be more people who would like to build on pi 2 itself.
I went for 15 instead of 14.1 because texturepacker and it's pathfinding of sdl didn't work out for me, but is fixed in master branch.
So compilation with make -j4 does 'only take' about 1:30h (not including previously bootstraping and building of ffmpeg and configure stuff, which takes about another ~30 minutes).
Goal was to get raspbian+desktop+kodi cortex-a7 and neon optimized (yeah I know it won't be as feature rich as maybe OpenElec).
So far it 'runs' without cec (probably wrong compiled) and produces a blank screen on exit (still able to switch to another console) and I am sure there are more things that don't work...
Maybe someone could take a look at my config.log and give me some hints.
But to get started, it would be nice to get something like --with-platform=raspberry-pi2 which would set correct defined egl and uses neon=yes, cpu=cortex-a7 etc.
Here is a patch file from helix to give you the idea, I just used the changes for kodi 15, but I am nowhere near sure if the second part is perfect (in /tools/depends/configure.in - very few cpu args?).
Ideally that option would also include the right folders for compiler flags, eg CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads [...]"
See configure command above for the whole library folders.
If someone wants to try, here is a step-by-step guide of what I did so far.
----
This is my WIP which will be updated.
:edit2 building our own ffmpeg was a bad idea so now using some patch files, let's see how this goes
:edit3: I think its in an early use stage now, needs more polishing but does the job. If you plan to use your raspberry pi 2 mainly with kodi, use Openelec/Raspbmc/Osmc/xbian!
----
Now that we have the power to build directly on pi 2, I would like to share a few things and make some suggestions for the configure files.
I guess there may be more people who would like to build on pi 2 itself.
I went for 15 instead of 14.1 because texturepacker and it's pathfinding of sdl didn't work out for me, but is fixed in master branch.
So compilation with make -j4 does 'only take' about 1:30h (not including previously bootstraping and building of ffmpeg and configure stuff, which takes about another ~30 minutes).
Goal was to get raspbian+desktop+kodi cortex-a7 and neon optimized (yeah I know it won't be as feature rich as maybe OpenElec).
So far it 'runs' without cec (probably wrong compiled) and produces a blank screen on exit (still able to switch to another console) and I am sure there are more things that don't work...
Maybe someone could take a look at my config.log and give me some hints.
Code:
CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" CXXFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" LDFLAGS="-L/opt/vc/lib" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --enable-player=omxplayer --disable-avahi --enable-libcec
But to get started, it would be nice to get something like --with-platform=raspberry-pi2 which would set correct defined egl and uses neon=yes, cpu=cortex-a7 etc.
Here is a patch file from helix to give you the idea, I just used the changes for kodi 15, but I am nowhere near sure if the second part is perfect (in /tools/depends/configure.in - very few cpu args?).
Ideally that option would also include the right folders for compiler flags, eg CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads [...]"
See configure command above for the whole library folders.
If someone wants to try, here is a step-by-step guide of what I did so far.