xbmc should build against gles not gl

Bug #1084201 reported by Steve Payne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kodi
Unknown
Unknown
ubuntu-nexus7
Fix Released
Undecided
Unassigned
xbmc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I think all that's needed is a reasonably small tweak to the rules (see attached patch). The work to make it use GLES was already done in order to make it work on the Raspberry Pi.

(The resultant binary seems to look like the OpenGL-based one but now no longer runs at a snail's pace. It's still confused about the screen resolution (gets 800x1280 instead of 1280x800) which I am guessing is probably down to the way the TEGRA driver might be reporting it:

ubuntu@dexter:~$ grep 1280 /var/log/Xorg.0.log
[ 12.352] (II) TEGRA(0): Modeline "800x1280"x0.0 0.00 800 800 800 800 1280 1280 1280 1280 (0.0 kHz eP)
[ 12.352] (II) TEGRA(0): Output LVDS-1 using initial mode 800x1280
[ 12.352] (--) TEGRA(0): Virtual size is 1280x800 (pitch 0)
[ 12.352] (**) TEGRA(0): Driver mode "800x1280"
ubuntu@dexter:~$

but I have yet to find time to fully dig through the XBMC code to find out exactly where it's getting its notion of the available resolutions from.)

Revision history for this message
Steve Payne (c-launchpad-iamsrp-com) wrote :
Revision history for this message
Sean Feole (sfeole) wrote :

Hey Steve, thanks for the bug report!

Have you filed an upstream bug with XBMC Media Center?? Looks like they use their own tracker

Please see: https://launchpad.net/xbmc

When you do please send me the link and I will be happy to link this bug accordingly

Revision history for this message
Steve Payne (c-launchpad-iamsrp-com) wrote :
Sean Feole (sfeole)
Changed in ubuntu-nexus7:
status: New → Confirmed
tags: added: mobile nexus7
Changed in xbmc:
status: Unknown → New
Sean Feole (sfeole)
Changed in ubuntu-nexus7:
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the work there, that component is in universe though and it seems it needs sponsoring so unassigning canonical-desktop-team and subscribing ubuntu-sponsors instead

Changed in ubuntu-nexus7:
assignee: Canonical Desktop Team (canonical-desktop-team) → nobody
Revision history for this message
Sean Feole (sfeole) wrote :

Hey Sebastien, did you mean to subscribe the bug to ubuntu-sponsers?

Revision history for this message
Sebastien Bacher (seb128) wrote :

yes, since there is a patch (the activity log and the subscriber list confirms they correctly got subscribed... was there any issue?)

Changed in xbmc (Ubuntu):
status: New → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have tried applying your patch. To build on the Nexus 7 I had to add a build dependency on libgles2-mesa-dev and then the tablet compiled XBMC in 90 minutes but did not succeed to make a package due to an dh-shlibdeps problem on libgles2-mesa. I could start the compiled binary via

./xbmc.bin

in the main directory of the source at least, only with the problem that xbmc assumes a portrait screen whereas the desktop is landscape (and a video app should be used in landscape). So at least the program starts, meaning that the GLES support is correct now.

Then I tried out whether the build servers could package the patched XBMC. I test-built on a PC (amd64) to be sure nothing is broken (15 minutes) and uploaded this. Unfortunately it FTBFS already during ./configure due to a Python problem (why did the previous version build on the build servers then?).

So we are at least a step further knowing that your patch worked. Now we must hope that someone steps up making the package build and solving the landscape problem.

Revision history for this message
Steve Payne (c-launchpad-iamsrp-com) wrote :

Thanks for taking the time to look at this request.

I think/hope that the landscape problem is addressed in https://bugs.launchpad.net/bugs/1085350

Once I apply the workaround therein it looks okay. However, it doesn't seem to understand using the touch-screen for pointer input (using an attached mouse works fine). I've not had any time to look into this issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xbmc - 2:11.0~git20120510.82388d5-1ubuntu6

---------------
xbmc (2:11.0~git20120510.82388d5-1ubuntu6) raring; urgency=low

  * debian/rules: Added multi-arch search path for Python header files
    "-I/usr/include/$(DEB_HOST_MULTIARCH)/python2.7" to CFLAGS and CXXFLAGS.
 -- Till Kamppeter <email address hidden> Wed, 12 Dec 2012 08:47:30 +0100

Changed in xbmc (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tested -1ubuntu7 on the Nexus 7 and now XBMC starts and plays the videos fluently. Closing Nexus 7 task ...

Thank you very much for the patch!

Changed in ubuntu-nexus7:
status: Confirmed → Fix Released
Changed in xbmc:
status: New → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.