You are not logged in.

#1 2008-08-03 15:37:54

nycthbris
Member
Registered: 2007-10-23
Posts: 10

Error compiling deluge [solved]

So I downloaded the most recent pkgbuild of deluge (0.9.04) and used makepkg -sp

Unfortunately I receive the following error after a bit of compiling takes place:

/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
install: cannot stat `pixmaps/deluge.svg': No such file or directory
==> ERROR: Build Failed.
    Aborting...

I know I have all the dependencies installed, so I'm not sure what is going wrong here.
Any thoughts are appreciated!


Edit: I found the svn version in the AUR that has fixed the boost build error.

http://aur.archlinux.org/packages.php?ID=18502

Last edited by nycthbris (2008-08-04 21:00:22)

Offline

#2 2008-08-08 09:31:24

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Error compiling deluge [solved]

The svn package from aur would build for me, but not install the binaries. I went with the official pkg build (http://download.deluge-torrent.org/arch … 5.pkgbuild)

however 2 things needed to be done:

1) To fix the boost error, i needed to create a symlink libboost_thread.so -> libboost_thread-mt.so. I don't know if this is the most correct or elegant solution, but... whatever

ln -s /usr/lib/libboost_thread-mt.so /usr/lib/libboost_thread.so

2) After that the makepkg still failed on account of the last line in the pkgbuild:

 install -D -m644 pixmaps/deluge.svg $startdir/pkg/usr/share/pixmaps/deluge.svg

which i changed to:

 install -D -m644 $startdir/pkg/usr/share/pixmaps/deluge.png pixmaps/deluge.png

and presto big_smile

Offline

#3 2008-08-08 09:53:55

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Error compiling deluge [solved]

Symlinking is not the right way. Take a look at the .spec file and patches in Fedora, inside the .src.rpm:

diff -up ./setup.py.old ./setup.py
--- ./setup.py.old  2008-07-15 19:30:03.000000000 -0700
+++ ./setup.py  2008-07-15 19:31:47.000000000 -0700
@@ -157,11 +157,11 @@ if windows_check():
 else:
     _include_dirs += ['/usr/include/python' + python_version]
     _libraries = [
-        'boost_filesystem',
-        'boost_date_time',
-        'boost_iostreams',
-        'boost_python',
-        'boost_thread',
+        'boost_filesystem-mt',
+        'boost_date_time-mt',
+        'boost_iostreams-mt',
+        'boost_python-mt',
+        'boost_thread-mt',

Last edited by brebs (2008-08-08 09:55:36)

Offline

#4 2008-08-08 12:58:42

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Error compiling deluge [solved]

i see now smile

much more elegant smile thx

Offline

#5 2008-08-19 06:00:05

delor
Member
From: Poland
Registered: 2008-02-02
Posts: 62
Website

Re: Error compiling deluge [solved]

What about:
install: cannot stat `pixmaps/deluge.svg': No such file or directory

http://rafb.net/p/noblhz10.html

Last edited by delor (2008-08-19 06:25:51)

Offline

#6 2008-08-21 11:07:41

Fisiu
Member
From: Oświęcim/Poland
Registered: 2008-08-21
Posts: 1

Re: Error compiling deluge [solved]

Here is the patch.
boost-mt.patch:

*** ./setup_old.py    2008-08-21 12:36:56.000000000 +0200
--- ./setup.py    2008-08-21 12:39:51.000000000 +0200
***************
*** 157,167 ****
  else:
      _include_dirs += ['/usr/include/python' + python_version]
      _libraries = [
!         'boost_filesystem',
!         'boost_date_time',
!         'boost_iostreams',
!         'boost_python',
!         'boost_thread',
          'pthread',
          'ssl',
          'z'
--- 157,167 ----
  else:
      _include_dirs += ['/usr/include/python' + python_version]
      _libraries = [
!         'boost_filesystem-mt',
!         'boost_date_time-mt',
!         'boost_iostreams-mt',
!         'boost_python-mt',
!         'boost_thread-mt',
          'pthread',
          'ssl',
          'z'

And here is the PKGBUILD:

pkgname=deluge
pkgver=0.9.07
pkgrel=1
pkgdesc="A bittorrent client written with python and pygtk"
arch=('i686' 'x86_64')
url="http://deluge-torrent.org/"
license=('GPL2')
depends=('pygtk' 'boost' 'pyxdg' 'dbus-python' 'librsvg' 'setuptools')
makedepends=('subversion' 'intltool')
conflicts=('deluge')
provides=('deluge')
source=(http://download.deluge-torrent.org/source/$pkgver/$pkgname-$pkgver.tar.gz boost-mt.patch)
md5sums=('d5e73b6d997040a70ecf948950cf4a51'
     '7cafc0c498383545ed45436f3c007a24')
options=('!emptydirs')

build() {

  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ${srcdir}/boost-mt.patch || return 1
  python setup.py install --prefix=/usr --root=$startdir/pkg

  install -D -m644 deluge/data/pixmaps/deluge.svg $startdir/pkg/usr/share/pixmaps/deluge.svg
}

Or get complete tarball → http://fisiu.lua.pl/arch/tarball/deluge.tar.bz2

Offline

Board footer

Powered by FluxBB