Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Canon CAPT ebuild (LBP 1120/1210/3000/...)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mk81
n00b
n00b


Joined: 31 May 2006
Posts: 2
Location: Vienna

PostPosted: Sun Jun 04, 2006 2:28 pm    Post subject: Canon CAPT ebuild (LBP 1120/1210/3000/...) Reply with quote

Well, I've got one of those Canon printers and it is connected to another PC running Windows XP... so I couldn't use the method described here, simply because this driver needs the printer connected to the USB port on the local machine.

After some search I found http://software.canon-europe.com/software/canon_capt_printer_driver_for_linuxs23675.asp and thought, well... give it a try.

The following printers should be supported:

  • LaserShot LBP-1120
  • LaserShot LBP-1210 (<- this is the one I've got and the one I can do testing with)
  • LBP-3200
  • Laser Shot LBP3000
  • Laser Shot LBP2900
  • LaserShot LBP5000
  • LaserShot LBP3300

To ease the pain in case of a reinstall or uninstall (both are much easier if you can use portage) or if that WinXP PC eventually goes gentoo later this year, I created two ebuilds. (Canon common modules and Canon CAPT driver)
The sources have to be fetched and de-RPMed manually, the ebuilds go into your portage overlay directory. (see readme)

This was the first time creating an ebuild, so please bear with me in case of mistakes, I'll try my best to address issues if need arises.
Code:

mk81@midori ~# emerge -pv cndrvcups-common cndrvcups-capt

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   Rf  ] net-print/cndrvcups-common-1.30  0 kB [1]
[ebuild   Rf  ] net-print/cndrvcups-capt-1.30  -usb 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage


Contents:
cndrvcups-common-1.30.ebuild -- Canon Printer Driver Common Module for Linux
cndrvcups-capt-1.30.ebuild -- Canon CAPT Printer Driver for Linux -- see readme for USE flags

Links:
README
ebuild
MD5 checksums

Credit where credit is due, so I'd like to thank 'Peacefaker' for his hints and explanations.

As always, by downloading this, you acknowledge that this is free software, that there is no warranty of any kind and I'm not responsible in any way if your hardware starts talking binary. ;)
_________________
Desktop:
Linux 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ @ 2500MHz
4x512MB DDR333, 4x120GB Seagate Barracuda

Server:
Linux 2.6.10-gentoo-r6 i686 VIA Samuel 2 @ 600Mhz
256MB DDR266, 1x80GB Samsung HD
Back to top
View user's profile Send private message
gonzzor
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2004
Posts: 133

PostPosted: Sun Jul 09, 2006 11:31 am    Post subject: Reply with quote

Hi..

Thought I mention that there is a ebuild request in https://bugs.gentoo.org/show_bug.cgi?id=130612
There are two other ebuilds there. It's shorter and has some other features. It hasn't got the USB use flag..
I haven't got time to developed it until autumn..

Does yours work on AMD64? Since the files are 32bit binaries...
_________________
After 5 hours trying to install PHP 4 on FreeBSD I missed my Gentoo machine...
Back to top
View user's profile Send private message
mk81
n00b
n00b


Joined: 31 May 2006
Posts: 2
Location: Vienna

PostPosted: Wed Jul 12, 2006 8:57 am    Post subject: Reply with quote

I've yet to test it locally, but there've been no problems on my AMD64 so far.

I tend to think that the binaries you build are 64bit.

Code:
$ file /usr/lib/cups/filter/pstocapt
/usr/lib/cups/filter/pstocapt: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped

$ ldd /usr/lib/cups/filter/pstocapt
        libcups.so.2 => /usr/lib/libcups.so.2 (0x00002af6d7993000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00002af6d7ab1000)
        /lib64/ld-linux-x86-64.so.2 (0x00002af6d787b000)

$ ls -l /lib
lrwxrwxrwx 1 root root 5 2006-07-04 15:32 /lib -> lib64


There are however 32bit binaries that are used if the printer is connected locally, they execute quite fine on my multilib system. If I find the time I'll test it with the printer connected to a local USB port.

Code:
# file ccpd
ccpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

# ldd ccpd
        linux-gate.so.1 =>  (0xffffe000)
        libcups.so.2 => /emul/linux/x86/usr/lib/libcups.so.2 (0xf7f39000)
        libpthread.so.0 => /lib32/tls/libpthread.so.0 (0xf7f26000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7f22000)
        libc.so.6 => /lib32/tls/libc.so.6 (0xf7e0a000)
        libssl.so.0.9.7 => /emul/linux/x86/usr/lib/libssl.so.0.9.7 (0xf7dda000)
        libcrypto.so.0.9.7 => /emul/linux/x86/usr/lib/libcrypto.so.0.9.7 (0xf7cdf000)
        /lib/ld-linux.so.2 (0xf7f71000)


There's an error 500 on bugs.gentoo.org at the moment, but I'll have a look at it later.
_________________
Desktop:
Linux 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ @ 2500MHz
4x512MB DDR333, 4x120GB Seagate Barracuda

Server:
Linux 2.6.10-gentoo-r6 i686 VIA Samuel 2 @ 600Mhz
256MB DDR266, 1x80GB Samsung HD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum