Solved Error installing Kodi dependencies on Ubuntu 12.04 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Solved Error installing Kodi dependencies on Ubuntu 12.04 (/showthread.php?tid=271048) |
Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-24 Following the instructions here: http://kodi.wiki/view/HOW-TO:Compile_Kodi_for_Ubuntu At step 2.1 I get to this part: Code: $ sudo apt-get build-dep xbmc The same error occurs if I instead use the alternative method 2.2. If I start by installing libcec-dev and then try the same, the output ends with: Code: libcec-dev is already the newest version. I do not have any held or broken packages. Yes I know Ubuntu 12.04 is a bit old, but it's a complex setup with RAID and LXC and I'm not quite ready to upgrade it yet. Any ideas? RE: Error installing Kodi dependencies on Ubuntu 12.04 - MikeB2013 - 2016-04-24 I think your best option is to download latest libcec source from git and build it on your pc, then build kodi See https://github.com/Pulse-Eight/libcec Instructions on how to build are in the README. Edit: with such an old version of Ubuntu you may run into more compatibility issues, depending on the version/branch of kodi. Mike RE: Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-24 Thanks for the response. In the meantime I found docs/README.ubuntu and docs/README.linux in the source download. Those instructions do not present this problem. Looks like the wiki just needs an update. Compiling 16.1-Jarvis did not get very far so I switched to 15.2-Isengard. That did not work either but I was able to compile it under Ubuntu 12.04 after changing a couple of files to work with g++ 4.6. The diffs are below. I would like to recommend that the dev team apply these changes as they cost nothing and allow compiling under Ubuntu Precise which is still supported for another year. Perhaps Jarvis could also be investigated for an easy fix. Code: diff --git a/xbmc/cores/dvdplayer/DVDPlayer.h b/xbmc/cores/dvdplayer/DVDPlayer.h RE: Error installing Kodi dependencies on Ubuntu 12.04 - fritsch - 2016-04-24 Kodi requireres C++11 and those changes above were made by intention. RE: Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-24 Now I feel a bit dumb. Turns out no source changes are required, Ubuntu Precise has a g++ 2.8 available. All I had to do was: Code: sudo apt-get install g++-2.8 Also I needed to install the latest CMake from cmake.org, removing the Ubuntu version first, in order for the MythTV PVR addon to compile. This works for Isengard. Have not tried Jarvis yet but am hopeful that will work too. RE: Error installing Kodi dependencies on Ubuntu 12.04 - fritsch - 2016-04-25 In short: We don't support 12.04 anymore. RE: Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-26 Does that mean you don't make binaries for it? That's certainly understandable, but I think it would be nice to add some clues to README.ubuntu and/or README.linux (advising installation of g++-4.8 and getting CMake from cmake.org), as those seem to be oriented towards building for unsupported distributions. RE: Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-26 And finally, would like to mention that Jarvis compiles under Ubuntu 12.04 (with the g++ and CMake upgrades noted above) with this small change: Code: --- a/xbmc/network/WebServer.cpp That is to say, MHD_VERSION 0x00040600 does not include MHD_OPTION_THREAD_STACK_SIZE. I don't know what other versions don't include it. UPDATE: The compiled result is testing well with a handful of add-ons and the MythTV PVR client. RE: Error installing Kodi dependencies on Ubuntu 12.04 - fritsch - 2016-04-26 for your symlink: sudo update-alternatives --config g++ And btw. we still compile kodi succesfuly: https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa?field.series_filter=trusty also have a look at the build-depends ppa https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-ppa-build-depends?field.series_filter=trusty which can help you to get the build dependencies: sudo apt-get build-dep kodi after you added the kodi stable ppa still wondering why installing from the stable ppa did not work for you. RE: Error installing Kodi dependencies on Ubuntu 12.04 - rodr - 2016-04-26 Thanks for the tip re update-alternatives. Trusty is 14.04. I'm on Precise which is 12.04. I didn't see any Kodi binaries beyond 14.2 for that. I think I followed instructions in README.ubuntu for the build dependencies but might have missed something...? RE: Error installing Kodi dependencies on Ubuntu 12.04 - fritsch - 2016-04-26 Jep - right. You did not miss something :-) I already forgot the 12.04 codename precise. Most recent hardware has insanely bad support on that ubuntu version, especially NUCs newer than IVB. |