Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 14.10 installation #164

Open
Lockzi opened this issue Dec 28, 2014 · 15 comments
Open

Ubuntu 14.10 installation #164

Lockzi opened this issue Dec 28, 2014 · 15 comments

Comments

@Lockzi
Copy link

Lockzi commented Dec 28, 2014

Steps:
Blank Ubuntu Desktop 14.10 installation
Clone RetroRig github repo
sudo ./RetroRig

Did not install XBMC nor Kodi

Installed Kodi manually

Error in /usr/bin/xbmc-retrorig not finding XBMC.bin (line 137)

The path for Kodi is /usr/bin/kodi/kodi.bin instead of /usr/bin/xbmc/xbmc.bin - the startup script does not check kodi paths.

Take caution with copying the ~/.xbmc directory as it may now instead be called .kodi? This is unverified.

@Lockzi
Copy link
Author

Lockzi commented Dec 28, 2014

http://ppa.launchpad.net/mdeguzis/retrorig/ubuntu/dists/ does not list utopic (Ubuntu 14.10)
Might be the cause of XBMC/Kodi not being installed.

@mdeguzis
Copy link
Owner

@beaumanvienna , looks like we may need some corrections to the 14.10 detection or other packages. I will do a blank install on a VM here today to take a look as well. We may need your superman cpp skills :)

@beaumanvienna
Copy link
Contributor

Hi guys, it's probably a good time to pick up work for Ubuntu 14.10. This might take some time, probably some weeks. I'm currently in Germany with my Family, tomorrow I'm going back to Malaysia for my long term commissioning assignment. So I won't have much time for RR.

@Lockzi I would like to ask you to go with Ubuntu 14.04.01 in the mean time. A partition of 10GB should be sufficient, as long as you have your ROM files on a separated partition. Just create symbolic links for the folders RetroRig/ROMs and RetroRig/saves.

This is the repository RR is installing its backends from:
https://launchpad.net/~beauman/+archive/ubuntu/retrorig

Forget about Kodi, RR only works with the XBMC version supplied by our repository. This is how it should look like:

yo@yo ~/RetroRig $ apt-cache policy xbmc
xbmc:
  Installed: 3:14.0.12.2
  Candidate: 3:14.0.12.2
  Version table:
 *** 3:14.0.12.2 0
        500 http://ppa.launchpad.net/beauman/retrorig/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     2:12.3+dfsg1-3ubuntu1 0
        500 http://ubuntu.saix.net/ubuntu-archive/ trusty/universe amd64 Packages

The problem about Ubuntu 14.10 is that some libraries have their version tag contained in their package name rather then a generic name, that has been updated. So for example a library is called myLib54.deb and it contains mylib54.so, instead of myLib.deb containing mylib.54.so and link mylib.so to the current version. In this case we have a dependency on a certain version of a library. I will have to package at least some of our backends for 14.10 again, but that might take some time.

@Lockzi thanks for the feedback, please let me know if this is acceptable for you.

@beaumanvienna
Copy link
Contributor

Professor, I just remembered I copied an archive of the missing libraries to our Box box, it's contained in folder libs named libs.Ubuntu.14.10.tar.bz. It contains the missing libraries. You could copy this to the libregeek FTP server. Be advised, I only tested this with the release candidate for Ubuntu 14.10.

@beaumanvienna
Copy link
Contributor

This is the code I had used to install the missing libraries:

https://github.com/ProfessorKaos64/RetroRig/blob/66800fa4f4c48f66f67f18758234b5cc73bb3d60/scriptmodules/setup.shinc#L361

I think it got kicked out during the sys-call rework :-DDD

It's expecting the library archive at
wget --tries=50 -P /tmp "http://www.libregeek.org/RetroRig/libs/libs.Ubuntu.14.10.tar.bz".

Maybe merge the code back in? But anyway, this is a quick&dirty solution. The actual way is to package the concerned backends for 14.10. The cleanest way currently is to use 14.04.

@mdeguzis
Copy link
Owner

Ok, i'll take a look at this during the week if I don't see to it today.
yes, for the moment, please used 14.04 LTS. Thank you very much JC

On Sun, Dec 28, 2014 at 1:24 PM, Jens-Christian [email protected]
wrote:

This is the code I had used to install the missing libraries:

https://github.com/ProfessorKaos64/RetroRig/blob/66800fa4f4c48f66f67f18758234b5cc73bb3d60/scriptmodules/setup.shinc#L361

I think it got kicked out during the sys-call rework :-DDD

It's expecting the library archive at
wget --tries=50 -P /tmp "
http://www.libregeek.org/RetroRig/libs/libs.Ubuntu.14.10.tar.bz".


Reply to this email directly or view it on GitHub
#164 (comment)
.

Michael DeGuzis
Email: [email protected]
Website: http://www.libregeek.org
Linked In Resume/Profile
http://www.linkedin.com/profile/view?id=124915388&trk=nav_responsive_tab_profile

@mdeguzis
Copy link
Owner

The problem is I don't see how to use wget to download using the page link/libs.Ubuntu.14.10.tar.bz or the link file you get when sharing from box.net/libs.Ubuntu.14.10.tar.bz. For now I am going to put it back in it's original location specified in your code (which is still intact).

So far so good. I'll update you (both of you) on testing when I have a base install up.

Update: original file location on libregeek is restored. Install is being tested now.

@mdeguzis
Copy link
Owner

Updates:

Install goes better, but starting RetroRig on 14.10 gives this output:

mikeyd@test1410:/usr/share/applications$ ./startXBMC.sh 
starting xbmc
python: can't open file '/usr/share/xbmc/FEH.py': [Errno 2] No such file or directory
mikeyd@test1410:/usr/share/applications$ 

@beaumanvienna there is actually nothing in /usr/share/xbmc, so one thing fixed (missing libs) another look at the logs hopefully will show some more here. I will add an uploaded paste of the logs soon. There seems to be multiple issues we have to fix. I have marked the compatibility check as "Experiencing issues" for 14.10.

I have disabled Ubuntu 14.10 from being a supported platform along with a warning until the issues are sorted out. I'd rather other folks not run into the same issue over and over. The Message looks like this:
error

@beaumanvienna
Copy link
Contributor

The problem is I don't see how to use wget to download using the page link/libs.Ubuntu.14.10.tar.bz or the link file you get when sharing from box.net/libs.Ubuntu.14.10.tar.bz. For now I am going to put it back in it's original location specified in your code (which is still intact).

Yeah, the libregeek FTP server always used to be OK for temporary solutions. And yes, the code is still in there, didn't see it yesterday, that's good. Thanks for uploading the file!

To test if the library dependencies are satisfied you could use ldd. It will mention missing dependencies.

yo@yo /usr/share/RetroRig $ ldd /usr/lib/xbmc/xbmc.bin 
    linux-vdso.so.1 =>  (0x00007fffa69a6000)
    libssh.so.4 => /usr/lib/x86_64-linux-gnu/libssh.so.4 (0x00007f54720c4000)
    libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f5471eba000)
    libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f5471ca8000)
    libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f5471a9c000)
    libmicrohttpd.so.10 => /usr/lib/x86_64-linux-gnu/libmicrohttpd.so.10 (0x00007f5471885000)
    libtinyxml.so.2.6.2 => /usr/lib/x86_64-linux-gnu/libtinyxml.so.2.6.2 (0x00007f547166f000)
    libyajl.so.2 => /usr/lib/x86_64-linux-gnu/libyajl.so.2 (0x00007f5471466000)
    libbluetooth.so.3 => /usr/lib/x86_64-linux-gnu/libbluetooth.so.3 (0x00007f5471249000)

I suggest to do this with XBMC, all emulators and antimicro. I would like to automate this in a consistency check.

OK, we can then try to make the temporary solution work. I can start to package everything for Utopic. I had started to write a script to package everything for a new OS version here: https://github.com/ProfessorKaos64/RetroRig/blob/master/supplemental/build-all.sh

@mdeguzis
Copy link
Owner

suggest to do this with XBMC, all emulators and antimicro. I would like to automate this in a consistency check.

Good idea. I'll try to work on a function to check libraries, based on the platform/release. I can call this function, say in the add_standard_repos function, like "h_check_libraries" or something like that. This should be something I can start working on while you are away.

OK, we can then try to make the temporary solution work. I can start to package everything for Utopic. I had started to write a script to package everything for a new OS version here: https://github.com/ProfessorKaos64/RetroRig/blob/master/supplemental/build-all.sh

Looks good. I'll see if I can start expanding that for you while you are busy. When you are available again, if it needs corrections, we can worry about it then. Good idea. I may change target OS to the actual OS (ubuntu), and change it to "release" so that in the future we can build in maybe other distros. Either that, or keep this build-all, as a "build-all-ppa". Whatever works.

@beaumanvienna
Copy link
Contributor

I just installed Ubuntu 14.10, RR 0.9.8.2 and ran the installation.

Turns out that XBMC can't be installed at all:

yo@yo:~$ apt-cache policy xbmc
xbmc:
  Installed: (none)
  Candidate: 3:14.0.12.2
  Version table:
     3:14.0.12.2 0
        500 http://ppa.launchpad.net/beauman/retrorig/ubuntu/ trusty/main amd64 Packages
     2:13.1~rc1+dfsg1-1ubuntu3 0
        500 http://my.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages

(candiate with correct version)
and

yo@yo:~$ sudo apt-get install xbmc
[sudo] password for yo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xbmc : Depends: libass4 but it is not installable
        Depends: libnfs1 but it is not installable
        Depends: libshairport1 but it is not installable
        Depends: librtmp0 but it is not installable
E: Unable to correct problems, you have held broken packages.

I'm going to try to fix this first. This is how it translates from 14.04 to 14.10

libass4 -> libass5
libnfs1 -> libnfs4
libshairport1 -> libshairport2
librtmp0 -> librtmp1

Even if libs.ubuntu.14.10.tar.bz was successfully installed, I get for dolphin-emu:

yo@yo:~$ ldd /usr/bin/dolphin-emu 
    [...]
    librtmp.so.0 => not found
    libgnutls.so.26 => not found
    [...]

@mdeguzis
Copy link
Owner

mdeguzis commented Jan 2, 2015

Thank you JC. Got your email reply as well. I very much appreciate you checking into this. Hope your new year was good.

@beaumanvienna
Copy link
Contributor

Professor, I would like to change the registration of XBMC in service rescan from

sha1=$(file /usr/lib/xbmc/xbmc.bin | cut -f 19 -d ' '| cut -f 2 -d '='|cut -f 1 -d ',') (in setup.shinc) to

sha1=$(sha256sum /usr/lib/xbmc/xbmc.bin | cut -f 1 -d ' ')

Do you think sha256sum is installed by default on Ubuntu?

It's apparently part of package coreutils:

yo@yo:~$ apt-file search /usr/bin/sha256sum 
coreutils: /usr/bin/sha256sum

@mdeguzis
Copy link
Owner

It is, I use it infrequently when I have certain files from the internet.
The binary location is /usr/bin/sha256sum and is provided by the package
coreutils. This is on 14.04 that I checked, but it should be the same on
14.10. I believe it is a GNU package.

On Sun, Jan 11, 2015 at 9:20 AM, Jens-Christian [email protected]
wrote:

Professor, I would like to change the registration of XBMC in service
rescan from

sha1=$(file /usr/lib/xbmc/xbmc.bin | cut -f 19 -d ' '| cut -f 2 -d '='|cut
-f 1 -d ',') (in setup.shinc) to

sha1=$(sha256sum /usr/lib/xbmc/xbmc.bin | cut -f 1 -d ' ')

Do you think sha256sum is installed by default on Ubuntu?


Reply to this email directly or view it on GitHub
#164 (comment)
.

Michael DeGuzis
Email: [email protected]
Website: http://www.libregeek.org
Linked In Resume/Profile
http://www.linkedin.com/profile/view?id=124915388&trk=nav_responsive_tab_profile

@mdeguzis
Copy link
Owner

I stated to package a few things for 14.10 under the ES PPA. I may* tackle
mupen64plus today. But, I will need help figuring out gens I believe. It is
a tough one haha.

On Sun, Jan 11, 2015 at 9:40 AM, mikey d [email protected] wrote:

It is, I use it infrequently when I have certain files from the internet.
The binary location is /usr/bin/sha256sum and is provided by the package
coreutils. This is on 14.04 that I checked, but it should be the same on
14.10. I believe it is a GNU package.

On Sun, Jan 11, 2015 at 9:20 AM, Jens-Christian [email protected]
wrote:

Professor, I would like to change the registration of XBMC in service
rescan from

sha1=$(file /usr/lib/xbmc/xbmc.bin | cut -f 19 -d ' '| cut -f 2 -d
'='|cut -f 1 -d ',') (in setup.shinc) to

sha1=$(sha256sum /usr/lib/xbmc/xbmc.bin | cut -f 1 -d ' ')

Do you think sha256sum is installed by default on Ubuntu?


Reply to this email directly or view it on GitHub
#164 (comment)
.

Michael DeGuzis
Email: [email protected]
Website: http://www.libregeek.org
Linked In Resume/Profile
http://www.linkedin.com/profile/view?id=124915388&trk=nav_responsive_tab_profile

Michael DeGuzis
Email: [email protected]
Website: http://www.libregeek.org
Linked In Resume/Profile
http://www.linkedin.com/profile/view?id=124915388&trk=nav_responsive_tab_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants