You are not logged in.

#1 2008-12-17 10:49:46

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Canon PIXMA MP540 Driver: PKGBUILD improving

It gives the drivers for the Canon PIXMA MP540 multifunctional
This is my first package contribution to the AUR:
http://aur.archlinux.org/packages.php?ID=22275

cnijfilter-common 3.00 is needed. I've made a PKGBUILD for this, see here:
http://aur.archlinux.org/packages.php?ID=20694

The PKGBUILD of the MP540 is based on cnijfilter-mp510 2.70-4.
I think it could be improved, I'm not fully confident with PKGBUILDs.

# Contributor: Eric Le Bras <eric.lebras@gmail.com> (cnijfilter-mp510)
# Contributor: Jeroen Op 't Eynde <jeroen [at] xprsyrslf [dot] be>

pkgname=cnijfilter-mp540
pkgver=3.00
pkgrel=1
pkgdesc="Canon IJ Printer Driver for Pixma MP540"
url="http://support-my.canon-asia.com/contents/MY/EN/0100160402.html"
arch=('i686')
license=('custom:cnijfilter-common')
depends=('cnijfilter-common' 'libxi' 'libcups' 'popt')
makedepends=('rpmextract')
source=(http://gdlp01.c-wss.com/gds/4/0100001604/01/cnijfilter-mp540series-3.00-1.i386.rpm)
md5sums=('ef2cfde6fc6398a9ab3c464140073ce8')

build() {
    cd $startdir/pkg/
    rpmextract.sh $startdir/src/cnijfilter-mp540series-3.00-1.i386.rpm
    mkdir -p usr/bin
    mkdir -p usr/share
    mv usr/local/bin/* usr/bin
    mv usr/local/share/* usr/share
    mkdir -p usr/share/licenses
    ln -s /usr/share/licenses/cnijfilter-common usr/share/licenses/cnijfilter-mp540
    chmod -R a+rX usr/
    ln -s /usr/bin/cifmp540 usr/local/bin/cifmp540
}

edit: Subject more specific
edit2: added / on second last rule of PKGBUILD

Last edited by Duologic (2009-01-08 22:23:20)

Offline

#2 2009-01-07 13:35:44

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

How did you get this working? Because for me it doesn't work. Cups says: "Unable to open USB port device file: No such file or directory". It wants /dev/usblp0, which doesn't exist, if i change it to usblp1, which actually exists nothing happens...

Offline

#3 2009-01-07 13:39:39

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

It seems like a problem with between CUPS and usb-ports, are you using the webinterface to install the printer?

I'm currently not at the computer with this printer, I'll check the configuration on friday and post it here.
Don't forget to install the common-package with version 3.00

Offline

#4 2009-01-08 17:51:13

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

are you using the webinterface to install the printer?

yes

Don't forget to install the common-package with version 3.00

i haven't:

$ pacman -Qs cnijfilter
local/cnijfilter-common 3.00-1
    Canon IJ Printer Driver (Common package)
local/cnijfilter-mp540 3.00-1
    Canon IJ Printer Driver for Pixma MP540

anyway if i start arch with the printer plugged in the usblp0 is created, but still no printing hmm - it just pretends to smile (i mean cups)

Offline

#5 2009-01-08 20:13:34

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

I found the problem, there wasn't a slash in the PKGBUILD on the right place. Just try to reinstall the package with the new PKGBUILD found in AUR and let me know if it works,

Otherwise do following as root:

ln -s /usr/bin/cifmp540 /usr/local/bin/cifmp540

Offline

#6 2009-01-09 09:53:41

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

hi, still nothing: "Unable to send print file to printer: Broken pipe"

Offline

#7 2009-01-09 10:01:08

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

Try removing /usr/local/bin/cifmp540  and reinstall the package. Then remove the printer from cups and add a printer with Find new Printer, the driver should be there. Print a test page and admire it by hanging it on the wall.

Offline

#8 2009-01-09 10:22:12

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

whee, it's working... I didn't after all remove the /usr/local/bin/cifmp540... When you install the printer in cups, it finds 2 printers... one with cnijusb, the other with usb backend. It seems the cnijusb backend is broken.

Thanks for the help.

Back a few weeks I was trying to make a pkgbuild for this, too , but couldn't get the printing working hmm so I never posted it. BTW The scanning worked with it:

pkgname=pixma_mp540_drivers
pkgver=3.0
pkgrel=1
pkgdesc="Canon pixma common stuff"
arch=('i686')
license=('custom')
depends=('libcups' 'popt' 'libxi')
makedepends=('rpmextract')
source=('http://software.canon-europe.com/files/soft31329/software/MP540_RPM_drivers.tar')
md5sum=('a4b9d98fd1269668254a0f70181bdba9')

build(){
    cd $startdir/src/
    tar -xf MP540_RPM_printer.tar
    tar -xf MP540_RPM_scangear.tar
    cd $startdir/pkg/
    rpmextract.sh $startdir/src/cnijfilter-common-3.00-1.i386.rpm
    rpmextract.sh $startdir/src/cnijfilter-mp540series-3.00-1.i386.rpm
    rpmextract.sh $startdir/src/scangearmp-common-1.20-1.i386.rpm
    rpmextract.sh $startdir/src/scangearmp-mp540series-1.20-1.i386.rpm
    mkdir -p usr/share/licenses/${pkgname}
    mv usr/share/doc/cnijfilter-common-3.00/* usr/share/licenses/${pkgname}
    mv usr/share/doc/scangearmp-common-1.20/* usr/share/licenses/${pkgname}
    rm -rf usr/share/doc
    mkdir -p usr/bin
    mkdir -p usr/share
    mv usr/local/bin/* usr/bin
    mv usr/local/share/* usr/share
    rm -rf usr/local
    ln -s usr/lib/libcnbpcmcm338.so.7.03.1 usr/lib/libcnbpcmcm338.so
    ln -s usr/lib/libcnbpcnclapi338.so.3.3.2 usr/lib/libcnbpcnclapi338.so
    ln -s usr/lib/libcnbpcnclbjcmd338.so.3.3.0 usr/lib/libcnbpcnclbjcmd338.so
    ln -s usr/lib/libcnbpcnclui338.so.3.4.0 usr/lib/libcnbpcnclui338.so
    ln -s usr/lib/libcnbpess338.so.3.1.1 usr/lib/libcnbpess338.so
    ln -s usr/lib/libcnbpo338.so.1.10.1 usr/lib/libcnbpo338.so
    ln -s usr/lib/libcncpcmcm.so.6.50.1 usr/lib/libcncpcmcm.so
    ln -s usr/lib/libcncpmsimg.so.1.0.1 usr/lib/libcncpmsimg.so
    ln -s usr/lib/libcncpmsimg338.so.1.2.0 usr/lib/libcncpmsimg338.so
    ln -s usr/lib/libcncpmslld.so.1.0.0 usr/lib/libcncpmslld.so
    ln -s usr/lib/libcncpmslld338.so.1.2.0 usr/lib/libcncpmslld338.so
    ln -s usr/lib/libcncpmslld338c.so.1.01.1 usr/lib/libcncpmslld338c.so
    ln -s usr/lib/libcncpmsui.so.1.2.0 usr/lib/libcncpmsui.so
    chmod -R a+rX usr/
}

Last edited by lman (2009-01-09 10:23:12)

Offline

#9 2009-01-09 14:53:00

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

If you post it to the AUR, I suggest to split it up into four packages.
Or write just two for scangear, the other are already in there.

I never tried the scanner on linux, didn't found the time. Maybe if someone else makes a PKGBUILD for it.

The symlinks are wrong, that was the fault with my PKGBUILD, put a slash in front of the linksource; like this:

ln -s /usr/lib/libcncpmsui.so.1.2.0 usr/lib/libcncpmsui.so

edit: one -> two and three -> four

Last edited by Duologic (2009-01-09 14:55:25)

Offline

#10 2009-01-10 13:41:09

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

Do you guys know if there is an equivalent for the Canon Pixma MP530? Im currently just using the default Gutenprint + CUPS way and it works pretty well.

Offline

#11 2009-01-10 14:43:45

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Canon PIXMA MP540 Driver: PKGBUILD improving

I gues Canon didn't release drivers for MP530, I've checked the Asian and Europian headquarters.
Check these websites regularly, that's how I'd find out about it.
You should be glad you got it working, MP540 didn't work until I got these drivers.
Open Printing Database says you can use MP500's driver for it, I gues its the one you use right now.

Offline

Board footer

Powered by FluxBB