[Edit: note that me-tv isn't actively developed anymore: https://answers.launchpad.net/me-tv/+question/216266.]
This 'guide' will put your metv in your home directory and won't interfere with the debian package version. --prefix is your friend, always.
me-tv 1.3.7-2 |
Anyway, here's how to compile me-tv v 1.4.0.9
Start here
sudo apt-get install gnome-common libglibmm-2.4-dev libxml++2.6-dev libgtkmm-2.4-dev libgconfmm-2.6-dev libunique-dev libvlc-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libsqlite3-dev libdbus-glib-1-dev
You'll probably need more than what I've shown above -- intltool, automake etc. But those packages were the ones that were missing on my particular system. As always, if a package is missing, do
aptitude search package|grep dev
and chances are that you find what you're looking for
Continuing...
mkdir ~/tmp
cd ~/tmp
wget https://launchpad.net/me-tv/1.4/1.4.0/+download/me-tv-1.4.0.9.tar.gz
tar xvf me-tv-1.4.0.9.tar.gz
cd me-tv-1.4.0.9/
./autogen.sh --prefix=/home/${USER}/.metv-1.4.0.9
Configure summary:
Source code location .......: .
Compiler ...................: gcc
Compiler flags .............: -O0 -g
Enable compile warnings ....: minimum
Enable more warnings .......: yes
Extra Compiler Warnings ....: -g -O2 -Wall -Wno-unused -Wextra -Wcast-align -Wcast-qual -Wcomment -Wformat -Wimplicit -Wmissing-braces -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch-default -Wundef
Debug support ..............: yes
Installing into prefix .....: /home/me/.metv-1.4.0.9
Type make to build Me TV 1.4.0.9
Now type `make' to compile Me TV
Who am I to argue with that?
make
make install
Add ~/.metv-1.4.0.9/bin/ to your PATH
echo 'export PATH=$PATH:/home/${USER}/.metv-1.4.0.9/bin'>>~/.bashrc
(important that you use ' and not " )
Done.
Toubleshooting:
If you get
2012-05-22 17:55:00: Me TV Server 1.4.0.9 started
2012-05-22 17:55:00: An unhandled exception was generated
2012-05-22 17:55:00: Error: The Me TV database version does not match the Me TV server version.
then you may shed a tear and
rm /home/${USER}/.local/share/me-tv/me-tv.db