Failure in Installing on Ubuntu

Linux specific questions, problems.
Post Reply
dinjo

Failure in Installing on Ubuntu

Post by dinjo »

Not sure what i'm missing

Code: Select all

root@odroid:~/qbittorrent-3.1.12# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty
root@odroid:~/qbittorrent-3.1.12#

root@odroid:~/qbittorrent-3.1.12# dpkg -l
ii  libboost-atomic1.54-dev:armhf        
ii  libboost-atomic1.54.0:armhf          
ii  libboost-chrono1.54-dev:armhf        
ii  libboost-chrono1.54.0:armhf          
ii  libboost-date-time-dev:armhf         
ii  libboost-date-time1.54-dev:armhf     
ii  libboost-date-time1.54.0:armhf       
ii  libboost-dev                         
ii  libboost-filesystem-dev:armhf        
ii  libboost-filesystem1.54-dev:armhf    
ii  libboost-filesystem1.54.0:armhf      
ii  libboost-iostreams-dev:armhf         
ii  libboost-iostreams1.54-dev:armhf     
ii  libboost-iostreams1.54.0:armhf       
ii  libboost-program-options-dev:armhf   
ii  libboost-program-options1.54-dev:armh
ii  libboost-program-options1.54.0:armhf 
ii  libboost-regex-dev:armhf             
ii  libboost-regex1.54-dev:armhf         
ii  libboost-regex1.54.0:armhf           
ii  libboost-serialization-dev:armhf     
ii  libboost-serialization1.54-dev:armhf 
ii  libboost-serialization1.54.0:armhf   
ii  libboost-signals-dev:armhf           
ii  libboost-signals1.54-dev:armhf       
ii  libboost-signals1.54.0:armhf         
ii  libboost-system-dev:armhf            
ii  libboost-system1.54-dev:armhf        
ii  libboost-system1.54.0:armhf          
ii  libboost-test-dev:armhf              
ii  libboost-test1.54-dev:armhf          
ii  libboost-test1.54.0:armhf            
ii  libboost-thread-dev:armhf            
ii  libboost-thread1.54-dev:armhf        
ii  libboost-thread1.54.0:armhf          
ii  libboost1.54-dev                     

root@odroid:~/qbittorrent-3.1.12# ./configure  --disable-gui
Configuring qbittorrent ...
Verifying Qt 4 build environment ... ok
Checking for Qt >= 4.6 ... yes
Checking for pkg-config executable ... yes
Checking for libtorrent-rasterbar >= 0.15.0 ... yes
Checking for libboost ...Could not find boost system library!
no

Error: need libboost!

root@odroid:~/qbittorrent-3.1.12# more conf.log
/usr/lib/arm-linux-gnueabihf/qt4/bin/moc -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. conf4.cpp -o conf4.moc
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o conf4.o conf4.cpp
g++ -Wl,-O1 -o conf conf4.o    -L/usr/lib/arm-linux-gnueabihf -lQtCore -lpthread
Last edited by dinjo on Thu Apr 02, 2015 9:40 am, edited 1 time in total.
dinjo

Re: Failure in Installing on Ubuntu

Post by dinjo »

Resolved by configuring

./configure  --disable-gui --with-libboost-lib=/usr/lib/arm-linux-gnueabihf
dinjo

Re: Failure in Installing on Ubuntu

Post by dinjo »

I did a clean of system and i can't even install libtorrent it keeps failing , have installed as per this https://github.com/dogecoin/dogecoin/bl ... tu--debian

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib
ciaobaby

Re: Failure in Installing on Ubuntu

Post by ciaobaby »

How has "dogecoin" got to do with anything related to qbittorrent?
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: Failure in Installing on Ubuntu

Post by Peter »

@Dinjo: You know that Debian got qBittorrent in the repository, right?
Even the newer ones. (See testing and sid, and "apt-pinning".)

Compiling manually everything is just a hassle.
dinjo

Re: Failure in Installing on Ubuntu

Post by dinjo »

I was able to compile it from source by looking at dsc file and finding correct dependencies.

debhelper (>= 7.4.12), dpkg-dev (>= 1.16.1), libtorrent-rasterbar-dev (>= 0.15.4), libboost-dev, libqt4-dev (>= 4.6.0)
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: Failure in Installing on Ubuntu

Post by Peter »

Well, glad you managed to do it, but why? lol.
dinjo

Re: Failure in Installing on Ubuntu

Post by dinjo »

I'm not really comfortable in apt pinning and i have the need for everything latest and greatest :-)
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: Failure in Installing on Ubuntu

Post by Peter »

The latest is the git version, but that's not whitelisted on most private trackers.
If you live on the edge... why don't you use Gentoo ~testing, or Fedora Rawhide, or Debian Experimental then? :)
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: Failure in Installing on Ubuntu

Post by sledgehammer_999 »

You can get almost the freshest of libtorrent and qbittorrent quite cheaply and without much head scratching.

Go and grab the "debian source package" for libtorrent and qbittorrent. A debian source package typically consists of 3 files. 1 *.dsc and 2 *.tar.gz files. These files contain all the necessary instructions for the debian build system to build the source and make .deb (debian binary packages).
Download the source package (from the right side bar):
1. Libtorrent: https://packages.debian.org/sid/libtorrent-rasterbar7
2. qbittorrent: https://packages.debian.org/sid/qbittorrent

Search the internet on how to build debian source packages.
They are only 2-3 easy commands that I forget right now.

If that fails....
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: Failure in Installing on Ubuntu

Post by Peter »

If you are on Debian/Ubuntu, you can use "dget".
Just copy the .dsc link from the site

For example:
"dget -x -u http://ftp.de.debian.org/debian/pool/ma ... 6.18-1.dsc"

And it will download the source files, patch them with Debian's changes, and put them in a new folder.
If you want to build it on your PC/box, you should use "pbuilder", it's really comfy.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: Failure in Installing on Ubuntu

Post by sledgehammer_999 »

No pbuilder is very cumbersome for oneshot builds.
I think the dpkg-build (?) is the correct tool here.
User avatar
Peter
Administrator
Administrator
Posts: 2701
Joined: Wed Jul 07, 2010 6:14 pm

Re: Failure in Installing on Ubuntu

Post by Peter »

You are right, if you have the tools.

(It's not like there is anything wrong with dpkg, just a heads up for people:)
The point in pbuilder by the way, is that you don't have to install the dependencies, compilers, etc.
It creates a chrooted environment, which will just build your stuff, and your system stays intact.

Debian:
- sudo apt-get install debian-archive-keyring
- sudo pbuilder create --distribution squeeze --mirror ftp://ftp.us.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
- sudo pbuilder build *.dsc

Ubuntu is the same, just the create command differs.
As you notice, you can have multiple "distributions" installed.
And the end result is a .deb file.
Last edited by Peter on Mon Apr 06, 2015 6:56 am, edited 1 time in total.
Post Reply