Package Details: cnijfilter-mg4200 3.80-6

Git Clone URL: (read-only, click to copy)
Package Base: cnijfilter-mg4200
Description: Canon IJ Printer Driver (for mg4200 series)
Upstream URL:
Licenses: custom
Submitter: KenjiTakahashi
Maintainer: WilliamImm
Last Packager: WilliamImm
Votes: 7
Popularity: 0.25
First Submitted: 2014-04-08 17:54 (UTC)
Last Updated: 2020-08-28 16:44 (UTC)

Latest Comments

pguillot commented on 2022-03-12 17:00 (UTC) (edited on 2022-03-12 17:01 (UTC) by pguillot)

It's work for me (in 2022). You can compil it and install it. Thank a lot @WilliamImm !

Martype commented on 2021-01-16 14:21 (UTC) (edited on 2021-01-16 14:24 (UTC) by Martype)

The build process fails for me. I am running Manjaro Nibia 20.2.1. I used the builtin software manager to install the package. These are the last lines of the build log:

In Datei, eingebunden von /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 von /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 von /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 von /usr/include/gtk-2.0/gtk/gtk.h:126,
                 von scanmain.c:32:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: Warnung: »GTimeVal« ist veraltet: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~
In Datei, eingebunden von /usr/include/glib-2.0/glib/galloca.h:32,
                 von /usr/include/glib-2.0/glib.h:30,
                 von /usr/include/glib-2.0/gobject/gbinding.h:28,
                 von /usr/include/glib-2.0/glib-object.h:22,
                 von /usr/include/glib-2.0/gio/gioenums.h:28,
                 von /usr/include/glib-2.0/gio/giotypes.h:28,
                 von /usr/include/glib-2.0/gio/gio.h:26,
                 von /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 von /usr/include/gtk-2.0/gdk/gdk.h:32,
                 von /usr/include/gtk-2.0/gtk/gtk.h:32,
                 von scanmain.c:32:
/usr/include/glib-2.0/glib/gtypes.h:547:8: Anmerkung: hier deklariert
  547 | struct _GTimeVal
      |        ^~~~~~~~~
mv -f .deps/scangearmp-scanmain.Tpo .deps/scangearmp-scanmain.Po
make[1]: Verzeichnis „/var/tmp/pamac-build-martin/scangearmp-mg4200/src/scangearmp-source-2.00-1/scangearmp/src“ wird verlassen
make: *** [Makefile:407: all-recursive] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

WilliamImm commented on 2020-08-28 16:34 (UTC)

Header turned out to be completely pointless, so this was a very quick fix :D

w4rum commented on 2020-08-28 16:14 (UTC)


Thank you for looking into this!

WilliamImm commented on 2020-08-28 16:04 (UTC)

Will investigate, kinda wish Canon got the memo that using this interface was not a good idea...

w4rum commented on 2020-08-28 15:30 (UTC)


Can confirm. <sys/sysctl.h> was deprecated and has been removed from glibc.

paperbenni commented on 2020-08-27 07:53 (UTC)

36 | #include <sys/sysctl.h>

It can't find this header, failing to build

TornaxO7 commented on 2020-05-06 14:41 (UTC)

Thank you for this package!!!! I can use finally my printer!!!!

WilliamImm commented on 2020-02-28 01:38 (UTC)

There, it's updated. Let us know if there's any nonworking behavior - hopefully this is all that's needed to get it to work.

WilliamImm commented on 2020-02-14 02:14 (UTC)

Thanks, TheGoliath

To give you an idea of how extensive the changes are for compiling w/ current CUPS, here's a link to the WIP patch.

Note that the installation will still not compile with this patch, as bjcups.c from cngpij will also need to be modified with similar changes.

WilliamImm commented on 2020-02-13 15:54 (UTC)

So the issues here happen to be a perfect storm: CUPS removed the private IPP header completely from installation, instead enforcing access through the getter & setter methods that are defined for it.

This does mean changing a lot of otherwise decprecated code to use those methods instead - I'm working on a patch all the same.

mokkurkalve commented on 2020-02-11 12:57 (UTC)

Build fails thus:

bjcupsmon_msgidset.c: In function ‘chk_inklow_part1’:
bjcupsmon_msgidset.c:352:62: warning: iteration 12 invokes undefined behavior [-Waggressive-loop-optimizations]
  352 |  for(i=0; i<sizeof(warning); i++) warning[i] = p_tbl->warning[i];
      |                                                ~~~~~~~~~~~~~~^~~
bjcupsmon_msgidset.c:352:2: note: within this loop
  352 |  for(i=0; i<sizeof(warning); i++) warning[i] = p_tbl->warning[i];
      |  ^~~
mv -f .deps/bjcupsmon_msgidset.Tpo .deps/bjcupsmon_msgidset.Po
make[2]: Leaving directory '/build/cnijfilter-mg4200/src/cnijfilter-source-3.80-1/cngpijmon/src'
make[1]:  [Makefile:312: all] Error 2
make[1]: Leaving directory '/build/cnijfilter-mg4200/src/cnijfilter-source-3.80-1/cngpijmon/src'
make:  [Makefile:358: all-recursive] Error 1
==> ERROR: A failure occurred in build().
==> ERROR: Build failed, check /home/eivind/work/build/chroot/eivind/build

Roken commented on 2020-02-11 11:10 (UTC) (edited on 2020-02-11 11:11 (UTC) by Roken)

Fails to build now, which is odd since the only change I can see is a switch from md5 sums to sha256sums.

Errors are:

bjcupsmon_cups.c:219:11: error: dereferencing pointer to incomplete type ‘ipp_t’ {aka ‘struct _ipp_s’} 219 | pRequest->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;

bjcupsmon_cups.c:234:44: error: dereferencing pointer to incomplete type ‘ipp_attribute_t’ {aka ‘struct _ipp_attribute_s’} 234 | printerState = (ipp_state_t)pAttribute->values[0].integer;