You are not logged in.

#1 2009-03-12 00:14:19

thorjelly
Member
Registered: 2009-02-15
Posts: 52

lib32-glew package request

Could someone please make a 32 bit library for glew on AUR? It should be easy, although I don't really know how to compile 32-bit libraries for an x86_64 machine (or I'd do it myself!) I need a lib32-glew to run the pcsx2 linux port, which has recently dropped its 64-bit support. I have all plugins working except for the video plugin which appears to require it.

On a side note, neither pcsx2 packages in AUR are working; one is very old and the source appears to have been deleted, and the pcsx2-svn seems to crash after the configure screen neutral But I don't mind running the 32-bit binaries if I could get lib32-glew somehow!

glew is a C/C++ open gl loading library, by the way. I figure it would just be useful to have around in general (the lib32 version, I mean, since glew itself is readily available in extra)

Thanks.

Last edited by thorjelly (2009-03-12 00:17:34)

Offline

#2 2009-03-12 01:57:00

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: lib32-glew package request

thorjelly wrote:

It should be easy, although I don't really know how to compile 32-bit libraries for an x86_64 machine (or I'd do it myself!)

No compiling is required.  All you need to do in the PKGBUILD is to copy the libs from glew-1.5.1-1-i686.pkg.tar.gz to $pkgdir/opt/lib32/usr/lib.

You can just look up lib32 PKGBUILDs online, via abs, etc.  They should all be basically identical.  I can make the PKGBUILD tomorrow or this weekend if you or anyone else haven't done it yet.

Offline

#3 2009-03-12 02:40:24

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: lib32-glew package request

*** Do as tdy suggests and no what I wrote here before ***

Offline

#4 2009-03-12 04:07:04

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: lib32-glew package request

skottish wrote:

You don't need to copy anything. In fact, I highly recommend that you don't. Wait until someone produces a PKGBUILD.

I'm not sure I understand your point.  I think you misread my post because using a PKGBUILD is exactly what I suggested.

Offline

#5 2009-03-12 04:18:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: lib32-glew package request

tdy wrote:
skottish wrote:

You don't need to copy anything. In fact, I highly recommend that you don't. Wait until someone produces a PKGBUILD.

I'm not sure I understand your point.  I think you misread my post because using a PKGBUILD is exactly what I suggested.

Whoops. Sorry about that. I should stop posting until after I get some sleep.

Offline

#6 2009-03-12 04:56:51

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: lib32-glew package request

skottish wrote:

Whoops. Sorry about that. I should stop posting until after I get some sleep.

ah no problem.. work has been frying my mind lately, so I kept re-reading our posts thinking I had missed something obvious.

Last edited by tdy (2009-03-12 04:57:30)

Offline

#7 2009-03-12 12:10:08

thorjelly
Member
Registered: 2009-02-15
Posts: 52

Re: lib32-glew package request

tdy wrote:
thorjelly wrote:

It should be easy, although I don't really know how to compile 32-bit libraries for an x86_64 machine (or I'd do it myself!)

No compiling is required.  All you need to do in the PKGBUILD is to copy the libs from glew-1.5.1-1-i686.pkg.tar.gz to $pkgdir/opt/lib32/usr/lib.

You can just look up lib32 PKGBUILDs online, via abs, etc.  They should all be basically identical.  I can make the PKGBUILD tomorrow or this weekend if you or anyone else haven't done it yet.

Could you please? I'm still a little lost, heh. I don't know much about this stuff. Thank you for helping me out.

Offline

#8 2009-03-12 17:26:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: lib32-glew package request

I can't promise anything. I have no legitimate way to test this and I wrote it without any 32 bit libraries being installed. Good luck and may the force be with you:

PKGBUILD

_pkgsourcename=glew
pkgname=lib32-$_pkgsourcename
pkgver=1.5.1
pkgrel=1
arch=('x86_64')
groups=('lib32')
pkgdesc="A cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
license=('BSD' 'MIT' 'GPL')
depends=('lib32-libxmu' 'lib32-libxi' 'lib32-mesa')
source=(http://mirrors.easynews.com/linux/archlinux/extra/os/i686/$_pkgsourcename-$pkgver-$pkgrel-i686.pkg.tar.gz)
md5sums=('b739e1860fc8627f7d0f9abb8d06d3c7')

build() {
    cd $startdir/src
    mkdir -p $startdir/pkg/opt/lib32/usr/{bin,include,lib,share}
    cp -dpR $startdir/src/usr $startdir/pkg/opt/lib32    
}

Offline

#9 2009-03-12 23:18:38

thorjelly
Member
Registered: 2009-02-15
Posts: 52

Re: lib32-glew package request

Thanks! Works great! I also needed a lib32-nvidia-cg-toolkit package, but from your example I figured out how to make it on my own smile I have one more problem, which I will post in my previous thread on the Arch64 forum because it is probably more appropriate there.

Offline

#10 2009-03-19 10:35:17

thorjelly
Member
Registered: 2009-02-15
Posts: 52

Re: lib32-glew package request

For reference, this was the lib32-nvidia-cg-toolkit custom package file I made:

_pkgsourcename=nvidia-cg-toolkit
pkgname=lib32-$_pkgsourcename
pkgver=2.1.0017
pkgrel=1
pkgdesc="nVidia Cg libraries" 
arch=('x86_64')
url="http://developer.nvidia.com/object/cg_toolkit.html" 
license=('custom')
depends=('lib32-glibc') 
conflicts=('cgcompiler') # replaces cgcompiler 
source=(http://developer.download.nvidia.com/cg/Cg_2.1/2.1.0017/Cg-2.1_February2009_x86.tgz)
md5sums=('8752286743ddd9d5997e698714fcc556'
         '4d2071b0ee627e8dabbc754ffe01927c')
build() { 
    cd $startdir/src
    mkdir -p $startdir/pkg/opt/lib32/usr/{bin,include,lib,share}
    cp -dpR $startdir/src/usr $startdir/pkg/opt/lib32
}

Offline

Board footer

Powered by FluxBB