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.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.
whats the trick on AMD64 systems?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
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.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.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.
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?!?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).
Code: Select all
** (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
...Code: Select all
** (gnome-printer-view:4342): WARNING **: connect = 'usb:/dev/usb/lp0'
** (gnome-printer-view:4342): WARNING **: IPP request failed with status 1280A screenshot of gnome-cups manager with the problem: ip4000-pstocanonbj.pngFilter "pstocanonbj" for printer "ip4000" not available: No such file or directory
Code: Select all
# equery files bjfilterIf 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.Added a new useflag "takushipatch" because of a few people having some trouble
with pstocanonbj.
It will replace the original "pstocanonbj.c" with
http://mambo.kuhp.kyoto-u.ac.jp/~takush ... ocanonbj.c
during unpacking of sources.
I recommend not to use this new flag unless CUPS complains about pstocanonbj.
Code: Select all
# 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...
this is in my error_log of cupsd[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
Code: Select all
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: PickOneCode: Select all
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
}First approach:... --enable-libpath=${_libdir}/bjlib
...
cp ${_prid}/database/* ${D}${_libdir}/cnijlib
Second approach:... --enable-libpath=${_libdir}/cnijlib
...
cp ${_prid}/database/* ${D}${_libdir}/cnijlib
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.... --enable-libpath=${_libdir}/bjlib
...
cp ${_prid}/database/* ${D}${_libdir}/bjlib
Code: Select all
brotkastn brot # cp /usr/lib/cups/filter/pstocanonij /usr/libexec/cups/filter/ -v