You are not logged in.

#1 2008-08-20 00:03:28

beretta
Member
Registered: 2008-04-21
Posts: 133

Canon ip4500 drivers

I have a nice Canon iP4500 that I'm now trying to get working in Arch.  Here's what I've done:

Downloaded the two files here from http://software.canon-europe.com/software/0028476.asp

cnijfilter-common-2.80-1.i386.rpm
cnijfilter-ip4500series-2.80-1.i386.rpm

I then modified the PKGBUILD from pixmaip4200 in AUR:  http://aur.archlinux.org/packages.php?ID=6528
I've listed the PKGBUILD below.

Going into http://localhost:631/admin, I can get cups to see the printer is there and install the driver from the package I made, but it won't send any jobs to it.  I get the error: "/usr/lib/cups/filter/pstocanonij failed"

Running commands from a terminal as per the instructions available at the canon website, I get these kinds of messages:

 $ cngpijmonip4500 IP4500
cngpijmonip4500: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64

Which tells me it might be looking for 32-bit libraries.

Has anyone else gotten a Canon printer working on x86_64? 


Here's the PKGBUILD

# Contributor: beretta
pkgname=pixmaip4500
pkgver=0.1
pkgrel=1
pkgdesc="A wrapper for the Canon drivers for the Pixma iP4500 printer"
arch=('x86_64')
url="http://software.canon-europe.com/"
license='unknown'
depends=('rpmextract' 'libxml2')
source=(cnijfilter-common-2.80-1.i386.rpm cnijfilter-ip4500series-2.80-1.i386.rpm)
md5sums=('a6b97bf57bd823f21118c0ee65f336d6' '0c1f319b5f4c9663738e2a082651b79c')
build() {
    rpmextract.sh cnijfilter-common-2.80-1.i386.rpm
    rpmextract.sh cnijfilter-ip4500series-2.80-1.i386.rpm
    mkdir -p $startdir/pkg/usr/lib
    cp -a usr/lib/* $startdir/pkg/usr/lib
    mkdir -p $startdir/pkg/usr/share
    cp -a usr/share/* $startdir/pkg/usr/share
    mkdir -p $startdir/pkg/usr/bin
    cp -a usr/local/bin/* $startdir/pkg/usr/bin
    cp -a usr/local/share/* $startdir/pkg/usr/share
    echo -e '[Desktop Entry]\nVersion=2.80\nType=Application\nName=Canon iP4500 Status Monitor\nGenericName=Canon iP4500 Status Monitor\nComment=View device status and ink levels.\nExec=/usr/bin/cngpijmon\nIcon=print-manager\nTerminal=false\nCategories=Application;Utility;\nStartupNotify=false\n' > ip4500.desktop
    mkdir -p $startdir/pkg/usr/share/applications
    cp -a ip4500.desktop $startdir/pkg/usr/share/applications
}

Offline

#2 2008-08-20 11:10:06

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Canon ip4500 drivers

Did you try installing 32 bit compatibility libraries? Dunno if that includes GTK, but that's what you seem to be needing here smile.

And that's the pain of binary drivers, but that's not your fault of course smile. A pity Canon still sticks to them.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2008-08-20 12:22:05

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Canon ip4500 drivers

I've tried that-- installed lib32-gtk2 and all its dependencies, but it still has the same problem.  Running pstocanonij directly still says the "wrong ELF class" error.  I don't see a lib32-libelf anywhere in db, so I'm not sure what to do next.

Offline

#4 2008-10-14 16:41:22

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Canon ip4500 drivers

If anyone else has this printer and is searching for help on it, I was finally able to get it to work using the Gutenprint drivers-- a good description of how to do that is on the wiki for the ip4300 printer:

http://wiki.archlinux.org/index.php/Canon_iP4300

Offline

Board footer

Powered by FluxBB