You are not logged in.

#1 2009-07-01 20:41:49

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Nexuiz isn't working with testing/libjpeg

that's the thing.. seems like it only works with v6 and testing is v7
anyone know of a workaround for this?

Wrong JPEG library version: library is 70, caller expects 62

Offline

#2 2009-07-01 20:52:01

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Nexuiz isn't working with testing/libjpeg

Allan wrote:

Hi everybody,

I am pushing the libjpeg rebuilds I have done to [testing] now. I did most
of the rebuilds required for desktops to keep work (although I don't
guarantee even that...) and many applications still need rebuilt.  I would
recommend [testing] users not to rush to upgrade unless you are well
prepared for some breakages.

Devs, please remember to mark off rebuilt packages from the TODO list as
you go.

Cheers,
Allan

I'd suggest downgrading for the time being.  There are MANY rebuilds to be done as libjpeg hasn't had a release in a good number of years.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-07-02 08:32:43

ahaslam
Member
Registered: 2007-05-11
Posts: 119

Re: Nexuiz isn't working with testing/libjpeg

Maybe rebuild DP?

unzip sources/enginesource20090501.zip
cd darkplaces && make nexuiz

Offline

#4 2009-07-09 15:51:52

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Nexuiz isn't working with testing/libjpeg

You can fix it like this:

1. Use this PKGBUILD and makepkg.

pkgname=libjpeg-old
pkgver=6b
pkgrel=6
pkgdesc="Library of JPEG support functions - old version for compatibility"
arch=('i686' 'x86_64')
url="http://www.ijg.org/"
license=('custom')
depends=('glibc')
makedepends=('libtool')
options=(!libtool)
source=(ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v$pkgver.tar.gz)
md5sums=('dbd5f3b47ed13132f04c685d608a7547')

build() {
  cd $srcdir/jpeg-$pkgver
  cp /usr/share/libtool/config/config.{guess,sub} .
  sed -i "s#./libtool#libtool#" configure
  ./configure --prefix=~/libjpeg6 --enable-shared --enable-static
  make || return 1
  mkdir -p $pkgdir/libjpeg6/{bin,lib,include,share/man/man1}
  make prefix=$pkgdir/libjpeg6 mandir=$pkgdir/libjpeg6/share/man/man1 install
  install -m644 jpegint.h $pkgdir/libjpeg6/include
  #install -Dm644 README $pkgdir/usr/share/licenses/libjpeg/README
}

2. Install package like this:

sudo pacman -U --dbpath /var/lib/pacman --logfile /var/log/pacman.log --root=$HOME libjpeg-old-6b-6-i686.pkg.tar.gz

3. Launch nexuiz like this:

LD_PRELOAD=~/libjpeg6/lib/libjpeg.so.62.0.0 nexuiz-sdl

Win!


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#5 2009-07-20 21:51:13

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Nexuiz isn't working with testing/libjpeg

test1000 wrote:

You can fix it like this (...)

Thanks! Works for Warsow too.

Last edited by rwd (2009-07-20 21:51:34)

Offline

#6 2009-07-21 10:23:15

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Nexuiz isn't working with testing/libjpeg

Ah, thanks for letting me know. The method is useful in a lot of scenarios i think. Anyway, nexuiz should now be fixed though(2.5.1-2) so atleast that one doesn't need that workaround anymore.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#7 2009-07-21 12:40:23

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: Nexuiz isn't working with testing/libjpeg

Hi.

I am trying to do the same thing for lib32-libjpeg  - I have changed the package name to be lib32-libjpeg-old.

It installs o.k however when I run it I get

morgan@arch64 paintball2]$  LD_PRELOAD=~/libjpeg6/lib/libjpeg.so.62 ./paintball2
ERROR: ld.so: object '/home/morgan/libjpeg6/lib/libjpeg.so.62' from LD_PRELOAD cannot be preloaded: ignored.

If i ldd it ....

[morgan@arch64 paintball2]$ ldd /home/morgan/libjpeg6/lib/libjpeg.so.62.0.0
        linux-vdso.so.1 =>  (0x00007fff2e9c2000)
        libc.so.6 => /lib/libc.so.6 (0x00007ffd2f4c9000)
        /lib/ld-linux-x86-64.so.2 (0x00007ffd2fa6c000)

Any ideas how to get 32bit version to work ?

Offline

#8 2009-07-21 13:11:44

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Nexuiz isn't working with testing/libjpeg

well, in that line you post "LD_PRELOAD=~/libjpeg6/lib/libjpeg.so.62 ./paintball2" you are not linking to ~/libjpeg6/lib/libjpeg.so.62.0.0 <--


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

Board footer

Powered by FluxBB