You are not logged in.

#1 2009-03-10 14:19:43

pjjanak
Member
Registered: 2008-08-17
Posts: 128

Bitpim in Arch64

So, I've been tinkering with the bitpim PKGBUILD from the AUR and have made a small amount of headway. What I've been trying to do is to get the 32 bit build (that one being the only one available) of bitpim in my 64 bit environment. So far, I have it running, but then it complains about libpango being of the wrong elfclass, even though I have the lib32 package installed for pango. Does anyone know how I can make bitpim look in /opt/lib32 instead of /usr/lib/ for the libpango it needs? And more than that, has anyone been able to run bitpim under Arch64 succesfully?

Peter

Offline

#2 2009-03-10 19:16:42

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Bitpim in Arch64

Sure, I run it all the time.  You just need to wrap the bitpim executable with a couple exports.  I generally make a wrapper and put it in my ~/bin, but if you want to do it right you should edit the pkgbuild and add the export lines to the main executable.

I've been pretty lazy, and just edited the bitpim shell executable directly.  Here's my /usr/bin/bitpim:

#!/bin/sh
GTK_PATH=/opt/lib32/usr/lib/gtk-2.0
GCONV_PATH=/opt/lib32/usr/lib/gconv
PANGO_RC_FILE=/opt/lib32/config/pango/pangorc
GDK_PIXBUF_MODULE_FILE=/opt/lib32/config/gdk/gdk-pixbuf.loaders
GTK_IM_MODULE_FILE=/opt/firefox32/gtk.immodules
MOZ_PLUGIN_PATH=/opt/mozilla/lib/plugins
GTK_MODULES=/opt/lib32/usr/lib/gtk-2.0/modules/libgnomebreakpad.so
export GTK_PATH GCONV_PATH PANGO_RC_FILE GDK_PIXBUF_MODULE_FILE GTK_IM_MODULE_FILE MOZ_PLUGIN_PATH GTK_MODULES
            LD_LIBRARY_PATH=/opt/lib32/usr/lib/:/usr/lib/BitPim-1.0.7.20081215:$LD_LIBRARY_PATH exec /usr/lib/BitPim-1.0.7.20081215/bitpim "$@"

Note that my bitpim version is likely different than yours; everything above the last line needs to be added so that bitpim can find the libraries it needs.  You'll need the lib32 version of your gtk engine as well, which you probably have already if you use 32-bit gtk apps in arch64.

Oh, and don't forget lib32-libusb or usb phone connectors won't work (with zero error messages, what a pain to track down that was).


Cthulhu For President!

Offline

#3 2009-03-10 21:15:21

pjjanak
Member
Registered: 2008-08-17
Posts: 128

Re: Bitpim in Arch64

Excellent. Thanks a lot buttons, I'll get on this a bit later and let you know if I have any issues.

Peter

Offline

#4 2009-03-12 20:42:45

NobeyamaGP
Member
Registered: 2008-10-16
Posts: 39

Re: Bitpim in Arch64

I'm very interested in getting this working as well. Pjjanak, could you post the PKGBUILD you have so far? I tried adding the exports that buttons suggested, but with the PKGBUILD from AUR bitpim won't even load and complains about wrong ELF class.

Offline

#5 2009-04-18 22:54:50

whaevr
Member
Registered: 2008-03-17
Posts: 182

Re: Bitpim in Arch64

I have the wrapper Buttons used above, but I get this error:

ImportError: libexpat.so.0: wrong ELF class: ELFCLASS64

I have lib32-libexpat..any ideas?

Offline

#6 2009-07-27 01:41:45

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Re: Bitpim in Arch64

Try the bitpim-svn package, it uses shared libraries instead of the private bitpim ones.

Last edited by matthewbauer (2009-08-14 15:51:08)


Libertarian Arch Linux User

Offline

Board footer

Powered by FluxBB