You are not logged in.

#1 2006-11-25 20:30:28

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

PKGBUILD lprof 1.11.4.1 problem

I've tried making my very first PKGBUILD (and just my luck) for a scons-based install script.

The PKGBUILD is as follows:

pkgname=lprof
_srcname=lprof
pkgver=1.11.4.1
pkgrel=1
pkgdesc="Imaging device calibration tool"
depends=('qt>=3' 'lcms>=1.12' 'vigra>=1.3')
makedepends=('python>=1.53' 'scons')
source=(http://sourceforge.net/project/downloading.php?group_id=146038&use_mirror=ovh&filename=${_srcname}-${pkgver}.tar.gz&11432377)
url="http://lprof.sourceforge.net/"
md5sum=('2177c77c24aa10db9b7681d264735ea9')

build() {
  cd ${startdir}/src/${_srcname}-${pkgver}
  python scons.py PREFIX=/usr || return 1
  python scons.py PREFIX=${startdir}/pkg install
}

EDIT: A rather careless mistake... a wrong source link. Changed to:

source=(http://heanet.dl.sourceforge.net/sourceforge/lprof/${_srcname}-${pkgver}.tar.gz)

END EDIT

The build fails with this error:

/lib/libvigraimpex.so: undefined reference to `png_set_gray_1_2_4_to_8'
/lib/libvigraimpex.so: undefined reference to `png_sig_cmp'
/lib/libvigraimpex.so: undefined reference to `png_create_read_struct'
/lib/libvigraimpex.so: undefined reference to `png_set_sig_bytes'
/lib/libvigraimpex.so: undefined reference to `png_set_IHDR'
/lib/libvigraimpex.so: undefined reference to `png_create_write_struct'
/lib/libvigraimpex.so: undefined reference to `png_set_swap'
/lib/libvigraimpex.so: undefined reference to `png_set_palette_to_rgb'
/lib/libvigraimpex.so: undefined reference to `png_write_info'
/lib/libvigraimpex.so: undefined reference to `png_write_end'
/lib/libvigraimpex.so: undefined reference to `png_get_IHDR'
/lib/libvigraimpex.so: undefined reference to `png_read_info'
/lib/libvigraimpex.so: undefined reference to `png_destroy_read_struct'
/lib/libvigraimpex.so: undefined reference to `png_write_image'
/lib/libvigraimpex.so: undefined reference to `png_read_update_info'
/lib/libvigraimpex.so: undefined reference to `png_read_image'
/lib/libvigraimpex.so: undefined reference to `png_create_info_struct'
/lib/libvigraimpex.so: undefined reference to `png_destroy_write_struct'
/lib/libvigraimpex.so: undefined reference to `png_init_io'
collect2: ld returned 1 exit status
scons: *** [build/linux/lprof] Error 1
scons: building terminated because of errors.
==> ERROR: Build Failed.  Aborting...

Any thoughts? I'm not a dev, but I'd really like this program....

Offline

#2 2006-11-25 23:03:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: PKGBUILD lprof 1.11.4.1 problem

pkgname=lprof
pkgver=1.11.4.1
pkgrel=1
pkgdesc="Imaging device calibration tool"
url="http://lprof.sourceforge.net/"
license="GPL"
depends=('qt>=3' 'lcms>=1.12' 'vigra>=1.3')
makedepends=('python>=1.53' 'scons')
source=(http://dl.sourceforge.net/lprof/${pkgname}-${pkgver}.tar.gz)
md5sums=('2177c77c24aa10db9b7681d264735ea9')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  sed -i "s/'tiff'/'tiff','png'/" SConstruct || return 1
  python scons.py PREFIX=/usr || return 1
  install -d ${startdir}/pkg/usr
  python scons.py PREFIX=${startdir}/pkg/usr install
}

Offline

#3 2006-11-25 23:07:29

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: PKGBUILD lprof 1.11.4.1 problem

Snowman wrote:
pkgname=lprof
pkgver=1.11.4.1
pkgrel=1
pkgdesc="Imaging device calibration tool"
url="http://lprof.sourceforge.net/"
license="GPL"
depends=('qt>=3' 'lcms>=1.12' 'vigra>=1.3')
makedepends=('python>=1.53' 'scons')
source=(http://dl.sourceforge.net/lprof/${pkgname}-${pkgver}.tar.gz)
md5sums=('2177c77c24aa10db9b7681d264735ea9')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  sed -i "s/'tiff'/'tiff','png'/" SConstruct || return 1
  python scons.py PREFIX=/usr || return 1
  install -d ${startdir}/pkg/usr
  python scons.py PREFIX=${startdir}/pkg/usr install
}

I'll try this as soon as possible. Frankly I din't expect such a quick answer! Thank you! Thank you SO MUCH!

EDIT: Thanks. It worked!

Offline

Board footer

Powered by FluxBB