[Solved] qBittorrent on ubuntu server - problems during the compilation

Linux specific questions, problems.
Post Reply
davideddu

[Solved] qBittorrent on ubuntu server - problems during the compilation

Post by davideddu »

Hi,
I have a server and I want to install qBittorrent on it, using the webui to control it. I followed the guide in the wiki, and installed all the dependencies (of the debian) that don't require the X server.
I tried to compile it but I got the following error:

Code: Select all

root@server:~/qbittorrent-2.9.7# ./configure --disable-gui
Configuring qbittorrent ...
Verifying Qt 4 build environment ... fail

Reason: There was an error compiling 'conf'.  See conf.log for details.

Be sure you have a proper Qt 4.0 build environment set up.  This means not
just Qt, but also a C++ compiler, a make tool, and any other packages
necessary for compiling C++ programs.

If you are certain everything is installed, then it could be that Qt 4 is not
being recognized or that a different version of Qt is being detected by
mistake (for example, this could happen if $QTDIR is pointing to a Qt 3
installation).  At least one of the following conditions must be satisfied:

 1) --qtdir is set to the location of Qt
 2) $QTDIR is set to the location of Qt
 3) QtCore is in the pkg-config database
 4) qmake is in the $PATH

This script will use the first one it finds to be true, checked in the above
order.  #3 and #4 are the recommended options.  #1 and #2 are mainly for
overriding the system configuration.
What should I install?
I use Ubuntu Server 12.04 LTS. I installed Qt4 Core, qt4-qmake, some other Qt4 related packages and libtorrent-rasterbar6.

Now I'm using uTorrent server, but I don't want use it because it is closed-source. I suggest making a qbittorrent-server debian package, with the init.d script included...

Thanks, Davide.
Last edited by davideddu on Wed May 02, 2012 3:08 pm, edited 1 time in total.
Brogyi

Re: qBittorrent on ubuntu server - problems during the compilation

Post by Brogyi »

Missing a lot dependency's.You have two ways.

Code: Select all

1st
sudo apt-get install build-essential libtool automake autoconf subversion pkg-config
sudo apt-get install libboost-date-time-dev libboost-dev libboost-filesystem-dev \
libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev \
libboost-serialization-dev libboost-signals-dev libboost-test-dev \
libboost-thread-dev libssl-dev
sudo apt-get install libqt4-dev
2nd
sudo apt-get build-dep qbittorrent
One of them must work for you. ;)
davideddu

Re: qBittorrent on ubuntu server - problems during the compilation

Post by davideddu »

[quote="Brogyi"]
Missing a lot dependency's.You have two ways.

Code: Select all

1st
sudo apt-get install build-essential libtool automake autoconf subversion pkg-config
sudo apt-get install libboost-date-time-dev libboost-dev libboost-filesystem-dev \
libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev \
libboost-serialization-dev libboost-signals-dev libboost-test-dev \
libboost-thread-dev libssl-dev
sudo apt-get install libqt4-dev
2nd
sudo apt-get build-dep qbittorrent
One of them must work for you. ;)
[/quote]
Thanks, I'll try...
Brogyi

Re: qBittorrent on ubuntu server - problems during the compilation

Post by Brogyi »

I did it but not so simple. I had a lot problem with libtorrent-0.16.0 compilation.

Code: Select all

cd /tmp
sudo su***Just for libtorrent compilation! If you don't do it you'll get an error.
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/branches/RC_0_16/
cd RC_0_16
sudo ./autotool.sh
sudo ./configure --disable-debug --prefix=/usr && make clean && make
sudo make install
cd /tmp
svn co https://qbittorrent.svn.sourceforge.net/svnroot/qbittorrent/trunk
cd trunk
sudo ./configure --prefix=/usr --disable-gui
sudo make
sudo make install
sudo ldconfig
I'm going to add a picture from the result.Very poor.The desktop version much better.So I use rutorrent until the qbittorrent-nox reach the desktop version  quality level.
Attachments
first_start_s.jpg
Last edited by Brogyi on Tue May 01, 2012 7:24 pm, edited 1 time in total.
davideddu

Re: qBittorrent on ubuntu server - problems during the compilation

Post by davideddu »

This days I've tried uTorrent server. I want a torrent client on my server because I want continue the download while my laptop is switched off. On my server I have many processes that use the internet connection, so it reaches 20 KB/s. On Windows 7 (qBittorrent) reaches 100 KB/s, but on Ubuntu 12.04 it reaches 500 KB/s with the same torrent. With some torrents I've reached 900 KB/s (note that I have a 7 Mb/s ADSL connection...).
The best configuration is using Ubuntu with qBittorrent. In other platforms/OSes it needs some patches and workarounds.

I'll keep the laptop switched on...  :D

Sorry if I can't write in English very well  ;)

[quote="Brogyi"]
I did it but not so simple. I had a lot problem with libtorrent-0.16.0 compilation.

Code: Select all

cd /tmp
sudo su***Just for libtorrent compilation! If you don't do it you'll get an error.
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/branches/RC_0_16/
cd RC_0_16
sudo ./autotool.sh
sudo ./configure --disable-debug --prefix=/usr && make clean && make
sudo make install
cd /tmp
svn co https://qbittorrent.svn.sourceforge.net/svnroot/qbittorrent/trunk
cd trunk
sudo ./configure --prefix=/usr --disable-gui
sudo make
sudo make install
sudo ldconfig
I'm going to add a picture from the result.Very poor.The desktop version much better.So I use rutorrent until the qbittorrent-nox reach the desktop version  quality level.
[/quote]
Did you make it work? If so, I'll add [Solved]... I give up...
Brogyi

Re: qBittorrent on ubuntu server - problems during the compilation

Post by Brogyi »

Yes, it worked.This is what you can see on the picture.
Post Reply