View previous topic :: View next topic |
Author |
Message |
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Mon May 22, 2006 9:19 am Post subject: |
|
|
Thank you.
With the "cnijtools"-flag turned on, those files get installed on my system. I'll try it without "cnijtools" now and take a look if any core-component is missing. |
|
Back to top |
|
|
mci_nano n00b
Joined: 28 Nov 2004 Posts: 32 Location: BS; Germany
|
Posted: Mon May 22, 2006 8:42 pm Post subject: |
|
|
Hi again
ColinK wrote: | Thank you.
With the "cnijtools"-flag turned on, those files get installed on my system. I'll try it without "cnijtools" now and take a look if any core-component is missing. |
with cnijtools and cofter's tipps I tried to compile again. But with cnijtools on i can't compile. I read some other posts about this(and also the posts in this thread, some seem to be equal) but don't know what to do.
Quote: | gcc -O2 -Wall -o cngpijmon bjcupsmon_main.o bjcupsmon_cups.o bjcupsmon_draw.o bjcupsmon_callbacks.o bjcupsmon_msgidset.o bjcupsmon_transsts.o bjcupsmon_ui.o interface.o support.o -L/usr/lib64 -L/usr/lib64 -lgtk -lgdk -rdynamic -lgmodule -lglib -lXi -lXext -lX11 -lm -lxml -lcups
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.a when searching for -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lxml
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [cngpijmon] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/cnijfilter-2.60/work/cnijfilter-2.60/cngpijmon/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/cnijfilter-2.60/work/cnijfilter-2.60/cngpijmon'
make: *** [all] Fehler 2
|
whats the trick on AMD64 systems? _________________ AMD Athlon 64 3700+; Nvidia 7800GT; 1GB RAM |
|
Back to top |
|
|
cofter n00b
Joined: 19 May 2003 Posts: 9 Location: Deutschland
|
Posted: Mon May 22, 2006 9:49 pm Post subject: |
|
|
I think the problem is the cnijtools flag. I think its you should make it default on, because without it the driver won't work. _________________ Cofter is everything on fuqin planet Earth |
|
Back to top |
|
|
Shan Guru
Joined: 04 Nov 2003 Posts: 558 Location: /dev/null
|
Posted: Mon May 22, 2006 9:53 pm Post subject: |
|
|
cofter wrote: | I think the problem is the cnijtools flag. I think its you should make it default on, because without it the driver won't work. |
Funny it works just fine without it on my system (albiet its an AMD64 setup so the cnijtools wont build anyways). My Guess is in that its the specific driver being compiled and not moved, not whether the tools are being built. _________________ { NO -U } { STRIP }
{ TINY } |
|
Back to top |
|
|
mci_nano n00b
Joined: 28 Nov 2004 Posts: 32 Location: BS; Germany
|
Posted: Tue May 23, 2006 8:38 am Post subject: |
|
|
cofter wrote: | I think the problem is the cnijtools flag. I think its you should make it default on, because without it the driver won't work. |
Yes, if i turn cnijtools use-flag of it will compile. But nothing happens if I print something. (same problem as cofter had befor). Don't know wich files to copy manually like he did. I hoped that cnijtools would solve my problem.
I use a IP2200. Maybe someone knows which files to copy? Or we can fix the ebuild... _________________ AMD Athlon 64 3700+; Nvidia 7800GT; 1GB RAM |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Tue May 23, 2006 2:12 pm Post subject: |
|
|
I asked cofter to reproduce the problem and to determine which file exactly is missing.
One reason to seperate the core driver and auxiliary tools was to support amd64 too. The tools have additional dependencies, which have to be satisfied in 32bit (libglade and libxml).
ftp://download.canon.jp/pub/driver/bj/linux/ is the origin of this driver - you can search for binary versions there. But to my surprise, I didn't find any binary IP2200 driver. But cnijfilter-common-2.60-1.src.rpm (which is used by the cnijfilter.ebuild), contains sourcecode for IP2200. That's strange..
I can't reproduce your problems, because I either don't have the same printer or the same architecture. |
|
Back to top |
|
|
mci_nano n00b
Joined: 28 Nov 2004 Posts: 32 Location: BS; Germany
|
Posted: Wed May 24, 2006 6:07 am Post subject: |
|
|
ColinK wrote: |
One reason to seperate the core driver and auxiliary tools was to support amd64 too. The tools have additional dependencies, which have to be satisfied in 32bit (libglade and libxml).
|
Maybe that libxml thing is my problem. I know, I have installed libxml(tried that because of the failure message, mentioned above) and libxml2, but with no luck. Maybe it didn't compile for 32Bit?!?
Could that be the point? How to ensure that libxml is available in 32Bit? _________________ AMD Athlon 64 3700+; Nvidia 7800GT; 1GB RAM |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Wed May 24, 2006 8:18 am Post subject: |
|
|
They both are not available in 32bit on amd64. The only solution would be to write a 32bit ebuild for them. I already did this with libpopt and called it bjdeps. But as libxml and libglade are still missing, the bjtools and cnijtools won't compile or run, although the core driver should work. |
|
Back to top |
|
|
SirYes Apprentice
Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
Posted: Wed May 24, 2006 7:36 pm Post subject: |
|
|
I've tried your ebuild and everything worked very well with my Canon iP4000.
Big thanks for a good job!
I just have a question. Have you tried installing gnome-cups-manager and get it to work with this driver? Because I observed one strange thing - I was unable to invoke the printer properties window. Adding/removing, seeing jobs, pause/resume are okay. It's just the properties window that refuses to work. The program just hangs...
Additionally, I needed to remerge gnomesu with LDFLAGS="-Wl,--export-dynamic" as hinted in Bug #131290 to get gnome-cups-manager to enable all its functions... (it's a dependency)
With CUPS directly through the browser everything works correctly. Does your printer work with gnome-cups-manager?
See screenshot to appreciate the thing.
Edit:
The printer also works (including changing the properties) with GtkLP. _________________ My blog: In search for ultimate programming language |
|
Back to top |
|
|
SirYes Apprentice
Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
Posted: Wed May 24, 2006 8:23 pm Post subject: |
|
|
After running gnome-cups-manager from command line I've just noticed a stream of warnings, and after a HUGE timeout the program became responsive again:
Code: | ** (gnome-printer-view:4001): WARNING **: IPP request failed with status 1280
** (gnome-printer-view:4001): WARNING **: IPP request failed with status 1280
** (gnome-printer-view:4001): WARNING **: IPP request failed with status 1280
** (gnome-printer-view:4001): WARNING **: IPP request failed with status 1280
** (gnome-printer-view:4001): WARNING **: IPP request failed with status 1280
... |
Must look into it deeper.
Edit:
After turning the printer on and after even BIGGER timeout the properties window has shown... This time I've spotted something different:
Code: | ** (gnome-printer-view:4342): WARNING **: connect = 'usb:/dev/usb/lp0'
** (gnome-printer-view:4342): WARNING **: IPP request failed with status 1280 |
Anyway, all controls were empty. It's only a proof that something is wrong in my system.
ip4000-Properties-General.png
ip4000-Properties-Paper.png
Edit2:
After emerging the newest, ~arch'ed cups, the controls are working correctly at last.
Hooray! _________________ My blog: In search for ultimate programming language
Last edited by SirYes on Wed Jun 07, 2006 11:25 am; edited 1 time in total |
|
Back to top |
|
|
SirYes Apprentice
Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
Posted: Mon May 29, 2006 4:39 pm Post subject: |
|
|
Recently when trying to print a document from OpenOffice CUPS displayed:
Quote: | Filter "pstocanonbj" for printer "ip4000" not available: No such file or directory |
A screenshot of gnome-cups manager with the problem: ip4000-pstocanonbj.png
I've found a site providing three Debian packages: libcnbj-2.5, bjfilter-2.5 and pstocanonbj:
http://mambo.kuhp.kyoto-u.ac.jp/~takushi/canon-pixus25.html
Maybe you could look into it? Said "pstocanonbj" seems to be rewritten from scratch - it's no longer the Canon's version. So, a working Linux source is out there. How about packaging it for Gentoo as well? _________________ My blog: In search for ultimate programming language |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Mon May 29, 2006 5:51 pm Post subject: |
|
|
It should be possible to use Takushi Miyoshis modifications. Quite a few people do have trouble with this pstocanonbj filter.
It would be best, to make it an option, because it doesn't support all features. |
|
Back to top |
|
|
SirYes Apprentice
Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
Posted: Tue May 30, 2006 9:37 am Post subject: |
|
|
I understand. But on my machine (for 99%, because I'm not at home ATM) there's no 'pstocanonbj' listed in:
Code: | # equery files bjfilter |
Any hints how to deal with that? _________________ My blog: In search for ultimate programming language |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Tue May 30, 2006 6:47 pm Post subject: |
|
|
I contacted Takushi who wrote the alternative pstocanonbj. With his assistance, I'll try to bundle it with my ebuild. But I currently don't have much time. So please be patient, it could take a week or two.
Also cofter promised to help me reproduce his problem as soon as he will have some spare time. |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Wed May 31, 2006 7:18 pm Post subject: |
|
|
net-print/bjfilter
If you previously had trouble with the bjfilter.ebuild, you might try the new use-flag. But don't expect too much. It compiles, but I can't print with it! I'm fine without the use-flag. |
|
Back to top |
|
|
Sir Boss n00b
Joined: 29 May 2006 Posts: 12
|
Posted: Wed May 31, 2006 11:20 pm Post subject: Pixma iP1600 |
|
|
I'm trying to get my Pixma iP1600 to work using the cnijfilter . I've compiled it with use flags cnijtools and ip2200, which the ebuild seemed to suggest as the nearest equivalent to my printer. It compiles fine, but when I select the driver and try to print a test page, nothing happens...no error messages, and no reaction whatsoever from my printer. I've also tested the other cnijfilter drivers, none of them work either. I'm fairly certain I the printer location is correct; I don't have any other USB printers attached, and the free turboprint demo driver prints fine to this location (though with a big ugly logo in the middle of the page). Any ideas on how to make this work?
The relevant results of the cups error log:
Code: |
# cat /var/log/cups/error_log
I [31/May/2006:19:07:16 -0500] Setting tmpprinter_5jAzsiyS device-uri to "usb:/dev/usb/lp0" (was "file:/dev/null".)
I [31/May/2006:19:07:16 -0500] Saving printers.conf...
I [31/May/2006:19:07:16 -0500] New printer 'tmpprinter_5jAzsiyS' added by 'root'.
I [31/May/2006:19:07:16 -0500] Saving printers.conf...
I [31/May/2006:19:07:16 -0500] Printer 'tmpprinter_5jAzsiyS' modified by 'root'.
I [31/May/2006:19:07:16 -0500] Saving printers.conf...
I [31/May/2006:19:07:16 -0500] Printer 'tmpprinter_5jAzsiyS' now accepting jobs ('root').
I [31/May/2006:19:07:16 -0500] Saving printers.conf...
I [31/May/2006:19:07:16 -0500] Printer 'tmpprinter_5jAzsiyS' started by 'root'.
I [31/May/2006:19:07:16 -0500] Adding start banner page "none" to job 3.
I [31/May/2006:19:07:16 -0500] Adding end banner page "none" to job 3.
I [31/May/2006:19:07:16 -0500] Job 3 queued on 'tmpprinter_5jAzsiyS' by 'root'.
I [31/May/2006:19:07:16 -0500] Started filter /usr/lib/cups/filter/pstops (PID 2077) for job 3.
I [31/May/2006:19:07:16 -0500] Started filter /usr/lib/cups/filter/pstocanonij (PID 2078) for job 3.
I [31/May/2006:19:07:16 -0500] Started backend /usr/lib/cups/backend/usb (PID 2079) for job 3.
I [31/May/2006:19:14:02 -0500] Printer 'tmpprinter_5jAzsiyS' deleted by 'root'.
I [31/May/2006:19:14:02 -0500] Saving printers.conf...
|
Thanks for your help! |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Thu Jun 01, 2006 12:09 am Post subject: |
|
|
Try a few different settings.
I've got the same problem if the wrong paper source is selected. I have to choose "cassette" otherwise it won't work nor prompt any error. |
|
Back to top |
|
|
Sir Boss n00b
Joined: 29 May 2006 Posts: 12
|
Posted: Thu Jun 01, 2006 12:32 am Post subject: |
|
|
Cassette isn't an option under "paper feed," only "Auto Feeder" is an option. Perhaps I compiled cnijfilter incorrectly? Or am I looking in the wrong place? (The "Settings" button next to "Test" on KDE's add printer wizard.)
The other options under settings are Paper Size (set to A4), Media Type (set to Plain Paper), Output Resolution (600 dpi) and Color Model (RGB). The only two of these with non-default options are Media Type and Paper Size; I tried changing both of these, but it still didn't work--no error message and no test page. |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Thu Jun 01, 2006 1:06 am Post subject: |
|
|
The Canon iP1600 doesn't have a paper cassette - sorry. That's probably why it's disabled.
Unfortunately those drivers aren't officialy supported, although they are from Canon. Otherwise we could just ask Canon to improve the driver and to add some error messages if anything goes wrong. |
|
Back to top |
|
|
furlongm n00b
Joined: 12 Oct 2004 Posts: 23
|
Posted: Tue Jun 06, 2006 10:23 pm Post subject: |
|
|
You could also try the gimp-print (guten-print) drivers, the latest release (~ masked in portage) works fine for me with a Canon ip4100. |
|
Back to top |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Wed Jun 07, 2006 1:24 pm Post subject: |
|
|
Hi
First thank you for creating this ebuild. It emerges without problems ( cnijfilter in this case ).
I added the Printer ( MP 500 ) , but it does nothing. and there is also no errormessage or something.
If i can help with providing usefull information or something just ask,.. i want that printer to work
brot
edit: Quote: |
[Job 10] pstocanonij: /usr/bin/gs -r600 -g4958x7016 -q -dNOPROMPT -dSAFER -sDEVICE=ppmraw -sOutputFile=- -| /usr/local/bin/cifmp500 --imageres 600 --papersize a4 --media plain --paperload switch --bbox 9,14,585,834
D [07/Jun/2006:15:39:05 +0200] [Job 10] Error: invalid printer model name
|
this is in my error_log of cupsd
when just opening /usr/local/bin/cifmp500 i get the error "Error: invalid printer model name" too... |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Thu Jun 15, 2006 10:43 am Post subject: |
|
|
I had the same problem with my IP4200 and got it fixed by extracting the directory /usr/lib/bjlib from cnijfilter-ip4200-2.60-1.i386.rpm (canon homepage, rpm2targz ->tar -xzf)
Maybe this could bet built into the ebuilds? It appears to be missing in both bjfilter and cnijfilter.
I also patched the ppd file for the IP4200:
Code: | veitbook iP4200 # cat /usr/local/portage/net-print/cnijfilter/files/cnijfilter-2.60-ip4200-ppd.patch
--- cnijfilter-2.60/ppd/canonip4200.ppd 2006-05-25 02:09:19.694012816 +0200
+++ cnijfilter-2.60/ppd/canonip4200.ppd 2006-05-25 02:09:19.694012816 +0200
@@ -59,6 +59,14 @@
*ParamCustomPageSize Orientation: 5 int 1 1
*CustomPageSize True: "pop pop pop <</PageSize [5 -2 roll] /ImagingBBox null>>setpagedevice"
+*OpenUI *CNQuality/Quality: PickOne
+*DefaultCNQuality: 3
+*CNQuality 2/High: "2"
+*CNQuality 3/Normal: "3"
+*CNQuality 4/Standard: "4"
+*CNQuality 5/Economy: "5"
+*CloseUI: *CNQuality
+
*OpenUI *PageSize/Paper Size: PickOne
*DefaultPageSize: A4
*PageSize Letter/Letter: "<</CNPageSizeName(letter)/PageSize[612 792]/ImagingBBox null>>setpagedevice"
@@ -141,6 +149,8 @@
*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
+*Resolution 1200/1200 dpi: "<</HWResolution[1200 1200]>>setpagedevice"
+*Resolution 2400/2400 dpi: "<</HWResolution[2400 2400]>>setpagedevice"
*CloseUI: *Resolution
*OpenUI *ColorModel/Color Model: PickOne |
which means you have to add the following to /usr/local/portage/net-print/cnijfilter/cnijfilter-2.60.ebuild:
Code: | src_unpack() {
rpm_src_unpack || die
mv ${PN}-common-${PV} ${P} || die # Correcting directory-structure
+ if use "ip4200" || ${_autochoose}; then
+ epatch ${FILESDIR}/cnijfilter-2.60-ip4200-ppd.patch || die
+ fi
} |
_________________ make me a sandwich. - what? make it yourself. - sudo make me a sandwich. - okay. |
|
Back to top |
|
|
marcme n00b
Joined: 15 Nov 2005 Posts: 9 Location: Germany
|
Posted: Tue Jun 20, 2006 10:28 am Post subject: |
|
|
Hi,
same problem with IP4200 here. I emerged cnijfilters with useflag cnijtools and ip4200. During installation everything works fine and I 'm also able to configure the printer with cups webinterface. Unfortunately nothing happens if a test page was sent to the printer. I checked the logs at /var/log/cups but I noticed nothing strange.
With the three additional files (/usr/lib/bjlib/) from the rpm it works fine.
Regards
Marcus |
|
Back to top |
|
|
ColinK Tux's lil' helper
Joined: 30 Dec 2005 Posts: 142
|
Posted: Wed Jun 21, 2006 1:51 pm Post subject: |
|
|
I created two possible bugfixes for this issue with /usr/lib/bjlib. I asked brot to test both.
Bug Summary
The issue: libraries are expected to be in /usr/lib/bjlib but copied to /urs/lib/cnijlib
Quote: | ... --enable-libpath=${_libdir}/bjlib
...
cp ${_prid}/database/* ${D}${_libdir}/cnijlib
|
First approach:
Quote: | ... --enable-libpath=${_libdir}/cnijlib
...
cp ${_prid}/database/* ${D}${_libdir}/cnijlib
|
Second approach:
Quote: | ... --enable-libpath=${_libdir}/bjlib
...
cp ${_prid}/database/* ${D}${_libdir}/bjlib
|
As soon as he reports whether the bug is fixed, I'll upload Version one or two to bugs.gentoo.org. The ppd-patch of keinstein will be included as well. Thanks alot.
Colin |
|
Back to top |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Thu Jun 22, 2006 2:36 pm Post subject: |
|
|
first approach seems to work here, but i had to copy one file.
Code: | brotkastn brot # cp /usr/lib/cups/filter/pstocanonij /usr/libexec/cups/filter/ -v |
maybe this is only needed with the newest unstable cups. But now as the printer here works in linux, pigmentblack ink is empty
Anyways, thanks to Colink for the driver and the support. |
|
Back to top |
|
|
|