How to configure scanner in Canon Pixma MP250? (SOLVED)

Using applications, configuring, problems
Message
Author
User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

How to configure scanner in Canon Pixma MP250? (SOLVED)

#1 Post by Rattlehead »

I downloaded the printer drivers for the Canon Pixma MP250 in my Presario CQ50 from http://www.murga-linux.com/puppy/viewtopic.php?t=47444 and installed them without problem (thanks Patriot). The scanner, nevertheless, seems to be more tricky: xsane keeps not recognizing my model (in fact, it is not included in Sane's "supported devices" list http://www.sane-project.org/sane-mfgs.html#Z-CANON).

Things I tried:

1) This forum entry http://www.murga-linux.com/puppy/viewtopic.php?t=50878
is for a different Pixma model, but through it I discovered that there is a command called "pixmascan" that allows you to scan from console. I have Puppy 4.3.1., so I should have pixmascan, but I don't ("command not found")

2) Via an Ubuntu forum (can't find the link), I read that I had to download and decompress scangear from Canon http://support-au.canon.com.au/contents ... 37401.html
I did it, but no results at all.

3) A new focus that seemed very promising: a whole blog on Canon Pixma models. I followed the best I could the instructions to update Sane as explained here:
http://mp610.blogspot.com/2008/04/give- ... -sane.html

I found this obstacle, though:
Check first that the development libusb library is present and installed.

On Mandriva, the rpm is called something like:

libusb0.1_x-devel-...

on Ubuntu, it is called: libusb-dev.

Install the package, if not already installed.

Be warned that if not installed, compilation will success, but the backend will not work, and no error message will be prompted!
searching "libusb" with Pfind did not show any result with a "dev" or "devel" on it. I kept on going, did the compiling (my first one! 8) ), and once it finished I tested the installation as explained in the blog:
Test Sane installation

Now, check that the new Sane git is correctly installed.

Current Sane git sane-backends version is 1.0.21, check it:

$ scanimage -V
scanimage (sane-backends) 1.0.21cvs; backend version 1.0.21
But my output is not like that: my backends version continues being 1.0.20., so I guess the installation is wrong. Maybe I am missing that one library? Where could I find it? Is it a different thing? Sorry for the long entry but I thought this information might be valuable for others too.
Last edited by Rattlehead on Tue 29 Jun 2010, 11:03, edited 1 time in total.

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#2 Post by Sit Heel Speak »

I have an MP210.

All it needed for the scanner was mp150_sane-0.14.4.pet and scangearmp_common-1.10-1.i386.pet, both from rcrsn51, at
http://www.murga-linux.com/puppy/viewtopic.php?t=42703.

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#3 Post by Rattlehead »

Nope. :( I tried that but no luck. Pixma mp250 is not included among the covered models. I installed both scangears because 20 was said to add support for other models, but xsane continues not detecting my scanner. Typing "Pixmascan -LL" shows a list of models (no mp250, it jumps from mp220 to mp470), and the message "No supported scanner found".

Any other suggestion?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

Edited: See post a bit further along.
Last edited by muggins on Tue 13 Apr 2010, 02:31, edited 1 time in total.

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#5 Post by Rattlehead »

Oh goodness!
scangearmp: error while loading shared libraries: libsane-canon_mfp.so.1: cannot open shared object file: No such file or directory
The dreaded dependencies, maybe? This is far beyond my knowledge!

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

Try uninstalling, then re-installing the .pet I just re-uploaded, with the missing symlink.

Otherwise, on the commandline, you just need to run:

Code: Select all

ln -s /usr/lib/libsane-canon_mfp.so.1.0.4 /usr/lib/libsane-canon_mfp.so.1

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#7 Post by Rattlehead »

Pet un and reinstalled. Still no luck. :cry:
Output when creating the link:
ln: creating symbolic link `/usr/lib/libsane-canon_mfp.so.1': File exists
Output when running scangearmp:
scangearmp: error while loading shared libraries: libgimp-2.0.so.0: cannot open shared object file: No such file or directory
More dependencies missing?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#8 Post by muggins »

I'll have to get back to you on this...whilst I do have gimp installed on my setup, I have absolutely no idea why scangearmp would link with those library files? I'll try recompiling without any gimp installed.

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#9 Post by Rattlehead »

Thanks for your efforts muggins. I'll be glad to hear of you.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#10 Post by muggins »

Rattlehead,

I looked at the source, and they're deliberately compiling it to be able to use Gimp plugin functionality. So the simplest thing would be to just install Gimp. I'm using version 2.4.6, so just do a search in the additional software section.

Otherwise, on recompiling, it seems a lot of the library files I included in the original .pet were unneeded, so the attached package is a lot smaller.

Let us know how you go if you re-install this, plus gimp.
Last edited by muggins on Tue 20 Apr 2010, 21:00, edited 1 time in total.

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#11 Post by Rattlehead »

Thanks Muggin, I was looking forward to install Gimp anyway, so this is no problem for me. I'll give it a try this weekend, when I have some more time, and tell you how it goes. :)

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#12 Post by Rattlehead »

Almost there, I think. I managed to install Gimp from http://dotpups.de/puppy4/dotpups/Graphics/Gimp-2.6.3/

It took me a while because, whenever I installed glib-2.6.6-i486, my computer became stupid -did not obey to icons, and the like. I had a different glib version already installed, I guess, because, simply excluding that file from installation, Gimp works without any error.

OK. First try: xsane still ignores me

Then I created the symbolic link
ln -s /usr/lib/libsane-canon_mfp.so.1.0.4 /usr/lib/libsane-canon_mfp.so.1
and run "pixmascan -LL"

Output: the same as previously. List of scanners which does not include mine, and "No supported scanner found!"

Next try: "scangear mp"

Output:
error while loading shared libraries: libgimp-2.0.so.0: cannot open shared object file: No such file or directory
I then ran pfind and found that libgimp-2.0.so.0 does exist, in /usr/local/lib, as a symbolic link to libgimp-2.0.so.0.600.3, which is in the same folder. So, I'm pretty sure that scangearmp is looking in the wrong folder and all I need is a symbolic link. What should I link? I'm still not very familiar with the folder structure :? Or my guess is wrong?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#13 Post by muggins »

Try doing:

Code: Select all

ln -s /usr/local/lib/libgimp-2.0.so.0 /usr/lib

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

sane and scangear-common-1.40 for all Canon scanners

#14 Post by Sit Heel Speak »

Try this. It contains the newest sane frontend and backend software for all Canon scanners, plus scangear-common-1.40-1.

It is probably much bigger than you need.

Try Menu --> Graphic --> Graphic Utilities --> XSane

It also has scangearmp and pixmascan but I haven't tried these.

It works on my MP210 and has the definitions for the MP250, so it should work for you.

pixma-sane-and-scangear-1.0.0.pet
(right-click on the "Click here to download" button at bottom of page, and save linked target)
File size: 2.4MB
md5sum:
# md5sum pixma-sane-and-scangear-1.0.0.pet
c488825b6daf5ca30d07849910c53d1e pixma-sane-and-scangear-1.0.0.pet

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#15 Post by npierce »

Rattlehead wrote:I then ran pfind and found that libgimp-2.0.so.0 does exist, in /usr/local/lib, as a symbolic link to libgimp-2.0.so.0.600.3, which is in the same folder. . . .
I don't have a Puppy running at the moment, so cannot verify the following for Puppy, but it is true for other distros.

When the linker/loader looks for a library, it looks in its cache file, /etc/ld.so.cache. If you install a new library it won't be included in the cache file until you update the cache by executing the following command (the -v is optional):

Code: Select all

/sbin/ldconfig -v
If you installed the new library in /lib or /usr/lib the linker/loader may find it anyway because those are the default places that it looks after looking in its cache file. But it doesn't look in /usr/local/lib by default.

(The directories that it looks in when updating the cache are listed in /etc/ld.so.conf or one of the files included by that file. /usr/local/lib is usually (always?) among those directories. So you shouldn't need to change anything there.)

Bottom line: Executing the ldconfig command may be all you need to do to help scangear find the library.

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#16 Post by Rattlehead »

Sit Heel Speak,

After installing your new front-end I get this Xsane message:

Error - Failed to open device `v4l:/dev/video`: Invalid argument.

And the only option available is "close" :roll:

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#17 Post by Rattlehead »

Npierce,

after updating libraries (thank you for the neat explanation, why isn't that kind of things in the wiki?), I get:

-From pixmapscan -LL: the same error of ever (list of models and "device not found").

-From scangearmp:
error while loading shared libraries: libcncpmsui.so: cannot open shared object file: No such file or directory
More libraries missing? :shock:

Thanks all you guys this forum is great.

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#18 Post by Sit Heel Speak »

Rattlehead wrote:Error - Failed to open device `v4l:/dev/video`: Invalid argument...and the only option available is "close" :roll:
Heh...the v4l drivers were the only ones in that whole set which I was unsure of, whether they should be included or not. I included them only because "v4l" brought to mind "video for linux" and, though I have no idea how v4l might interface with a scanner, I guessed that it might be useful.

The Puppy I am running has a node "video" inside /dev, it is actually a symlink to video0. Open /dev and see if you have the video symlink to video0. If not, create it in an rxvt terminal window:

Code: Select all

ln -s /dev/video0 /dev/video
and see if my frontend still gives the error message. If success, then if you are running a frugal install you *might* have to append the ln -s line to the end of /etc/rc.d/rc.local to recreate it upon every boot (--note: I'm not sure how Puppy's layering system in a frugal install handles nodes in /dev, i.e. are they created fresh from scratch at every boot, or are they persistent across boots?).

Anyway, make the symlink if it isn't there and try again.

Also,
error while loading shared libraries: libcncpmsui.so: cannot open shared object file: No such file or directory
Oops. My package contains libcncpmsui.so.1.4.0 but I neglected to create the usual symlinks.

Install my .pet again and then issue

Code: Select all

ln -s /usr/lib/libcncpmsui.so.1.4.0 /usr/lib/libcncpmsui.so.1
ln -s /usr/lib/libcncpmsui.so.1.4.0 /usr/lib/libcncpmsui.so
and try scangearmp again.

Also, what output does it give you from pixmascan -LL?

Are you running any sort of video for linux software/hardware?

User avatar
Rattlehead
Posts: 368
Joined: Thu 11 Sep 2008, 11:40

#19 Post by Rattlehead »

Open /dev and see if you have the video symlink to video0.
Yes, I have that link. No need to create it. (My installation is Puppy 4.3.1. frugal indeed, btw)

Install my .pet again and then issue
Code:
ln -s /usr/lib/libcncpmsui.so.1.4.0 /usr/lib/libcncpmsui.so.1
ln -s /usr/lib/libcncpmsui.so.1.4.0 /usr/lib/libcncpmsui.so
and try scangearmp again.
The second link already exists (not the first one). The front end repeats the "Failed to open device `v41:/dev/video0': Invalid argument" message

scangearmp output:
scangearmp: error while loading shared libraries: libgimpconfig-2.0.so.0: cannot open shared object file: No such file or directory
(but I have installed gimp, as explained above)

pixmascan -LL output:
Supported scanner(s):
Name VID:PID IF DPI
Canon PIXMA MP150 04a9:1709 0 1200x2400
Canon PIXMA MP170 04a9:170a 0 1200x2400
Canon PIXMA MP450 04a9:170b 0 1200x2400
Canon PIXMA MP500 04a9:170c 0 1200x2400
Canon PIXMA MP530 04a9:1712 0 1200x2400
Canon PIXMA MP800 04a9:170d 0 2400x4800
Canon PIXMA MP800R 04a9:170e 0 2400x4800
Canon PIXMA MP830 04a9:1713 0 2400x4800
Canon PIXMA MP160 04a9:1714 0 600x1200
Canon PIXMA MP180 04a9:1715 0 1200x2400
Canon PIXMA MP460 04a9:1716 0 1200x2400
Canon PIXMA MP510 04a9:1717 0 1200x2400
Canon PIXMA MP600 04a9:1718 0 2400x4800
Canon PIXMA MP600R 04a9:1719 0 2400x4800
Canon PIXMA MP140 04a9:172b 0 600x1200
Canon PIXMA MP810 04a9:171a 0 4800x9600
Canon PIXMA MP960 04a9:171b 0 4800x9600
Canon PIXMA MP210 04a9:1721 0 600x1200
Canon PIXMA MP220 04a9:1722 0 1200x2400
Canon PIXMA MP470 04a9:1723 0 2400x4800
Canon PIXMA MP520 04a9:1724 0 2400x4800
Canon PIXMA MP610 04a9:1725 0 4800x9600
Canon PIXMA MX700 04a9:1729 0 2400x4800
Canon PIXMA MX300 04a9:1727 0 600x1200
Canon PIXMA MX310 04a9:1728 0 1200x2400
Canon PIXMA MX700 04a9:1729 0 2400x4800
Canon PIXMA MP970 04a9:1726 0 4800x9600 experimental
Canon PIXMA MP750 04a9:1706 0 2400x4800
Canon PIXMA MP760 04a9:1708 0 2400x4800
Canon PIXMA MP780 04a9:1707 0 2400x4800
Canon SmartBase MP360 04a9:263c 1 1200x1200
Canon SmartBase MP370 04a9:263d 1 1200x1200
Canon SmartBase MP390 04a9:263e 1 1200x1200
Canon MultiPASS MP700 04a9:2630 1 1200x1200
Canon MultiPASS MP710 04a9:264d 1 1200x1200
Canon MultiPASS MP730 04a9:262f 1 1200x1200
Canon MultiPASS MP740 04a9:264c 1 1200x1200

No supported scanner found!
#
:(

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#20 Post by Sit Heel Speak »

I'm transferring everything over to another machine, so it will be a few days before I can look at this again...

Post Reply