Getting DVD playback to work on SuSE Linux 9.2 64 bit

Monday, February 14th, 2005 - Español English

First of all remove any xine related packages you might have laying around in your system. It is not necessary to remove the kde related package. This will give you a list:

rpm -qa | grep xine

Install from the sources DVD the file /suse/nosrc/xine-lib-0.99.rc6a-4.nosrc.rpm. To do this, mount the DVD, and use rpm:

mount /media/dvd/ rpm -i /media/dvd/suse/nosrc/xine-lib-0.99.rc6a-4.nosrc.rpm

You shouldn’t even need to be root to do that. If problems arise, it is that you have a different mount point because you changed it, so you know what to do.

Get the CSS descrambling library libdvdcss2. It is readily available from lots of sites, the most notable one that I know of to us, AMD64 users, being:

http://cambuca.ldhs.cetuc.puc-rio.br/xine/x86_64-suse91/

Get both libdvdcss2 and libdvdcss2-devel, and install them with rpm. And if you are tempted to try the other packages, don’t waste your time, they are linked against an older (SuSE 9.1) libreadline. It won’t work on 9.2

Now grab from http://xinehq.com the file xine-lib-1-rc6a.tar.gz. Not the latest one (stable 1.0) since the spec file we have is not made for it.

Uncompress it with gunzip then recompress it with bzip2, to match the .spec file. Then move the resulting file to its proper location:

gunzip xine-lib-1-rc6a.tar.gz bzip2 xine-lib-1-rc6a.tar mv xine-lib-1-rc6a.tar.bz2 /usr/src/packages/SOURCES

Now that everything is in place, a little modification to the spec file is necessary. When building for the first time, rpm’s ‘checkfiles’ complained about two files not being in the file list with a cryptic error. The solution is to add them to the .spec file. The lines to add are (preceded by the line number where to insert them):

330: xineplug_vo_out_opengl 475: /usr/bin/xine-remote

Use your favorite text editor to do that, and remember the file is

/usr/src/packages/SPECS/xine-lib.spec

Then begin the build process. In my previous SuSE installs I used to do it as a regular user, not root, but in this stock 9.2 it won’t work: when assembling the compiled files it would complain about some silly thing. I don’t remember if I had changed something before or what, and I just don’t feel like checking. Just build as root.

su -
cd /usr/src/packages rpmbuild -ba SPECS/xine-lib.spec

Upon completion you’ll have several nice RPMs ready to be installed at

/usr/src/packages/RPMS/x86_64/

Pages: 1 2

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>