First thing, install the dependencies. in a terminal:
- Code: Select all
sudo apt-get install build-essential qt4-dev-tools libphonon-dev libqtgui4 libqt4-xml libqt4-network libqt4-dbus phonon-backend-gstreamer gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad checkinstall dh-make
As normal user:
- Code: Select all
cd ~/ && mkdir tmp && cd tmp/
wget http://flavio.tordini.org/files/minitube/minitube-1.9.tar.gz
tar xvzf minitube-1.9.tar.gz
cd minitube
At this point we have to pause before running the next commands because there is an issue with gcc 4.7 and we need to make a patch and apply the patch. Special thanks to Vbrummond for this patch!
Open a text editor in your terminal. leafpad, gedit, pluma whatever you use and add this text into the ~/tmp/minitube directory
- Code: Select all
diff -crB minitube-orig/src/qtsingleapplication/qtlocalpeer.cpp minitube/src/qtsingleapplication/qtlocalpeer.cpp
*** minitube-orig/src/qtsingleapplication/qtlocalpeer.cpp 2012-09-27 06:17:03.000000000 -0400
--- minitube/src/qtsingleapplication/qtlocalpeer.cpp 2012-10-28 13:18:02.836364666 -0400
***************
*** 46,51 ****
--- 46,52 ----
#include "qtlocalpeer.h"
+ #include "unistd.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QTime>
#include <QDebug>
Then save the text as qtlocalpeer.patch and exit
Now apply the patch
- Code: Select all
patch -p1 < ./qtlocalpeer.patch
Now we are ready to build minitube
- Code: Select all
qmake-qt4
dh_make -p minitube_1.9 --createorig
dh_make will prompt you what to build, press 's' for single. then run the next command
- Code: Select all
dpkg-buildpackage
This will build the package for you and make the debian installable file for your machine's architecture.
Now just install the package:
- Code: Select all
cd ~/tmp
sudo dpkg -i minitube_1.9-1_amd64.deb
Now go Play and Have FUN!
(and share this with your friends)



