Package Details: cnijfilter2 6.60-2

Git Clone URL: (read-only, click to copy)
Package Base: cnijfilter2
Description: Canon IJ Printer Driver for Linux
Upstream URL:
Keywords: Canon Driver Printer
Licenses: GPL, custom:canon
Conflicts: cnijfilter, cnijfilter-mg3600
Provides: cnijlgmon3, tocanonij, tocnpwg
Submitter: iAndrewT
Maintainer: unit73e
Last Packager: unit73e
Votes: 43
Popularity: 0.25
First Submitted: 2016-12-22 12:46 (UTC)
Last Updated: 2024-07-23 19:47 (UTC)

Pinned Comments

unit73e commented on 2022-10-01 15:47 (UTC)

Just a kindly reminder (because I forgot) that to have the scanner working you probably should use avahi:

There are other methods but this is the easiest one.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

unit73e commented on 2024-07-23 19:47 (UTC)

Hello all. I added a patch to fix this problem automatically. Sorry for the delay and thanks to those who informed.

omm commented on 2024-06-22 08:21 (UTC) (edited on 2024-06-22 08:22 (UTC) by omm)

You need to add #include<stdlib.h> in keytext.c to get a correct compilation. Follow the instructions of other comments like @jruiz

Reno232 commented on 2024-06-19 15:54 (UTC)

I too am having the same problem as Oldgeek as posted on 6.10.2024, in that cnijfilter2 will not complete the build and ends up with an abort before finishing. I have not found a way to load the driver for my Canon G7020 in Manjaro 24 KDE without the cnijfilter2, so your help would be greatly appreciated.

Thanks in advance

walwe commented on 2024-06-13 14:06 (UTC) (edited on 2024-06-13 14:06 (UTC) by walwe)

I had to patch keytext.c and include stdlib.h in the lgmon3 build in order to compile:


    pushd lgmon3
    ./ --prefix=/usr \
             --enable-libpath=/usr/lib/bjlib2 \
             --enable-progpath=/usr/bin \
             --datadir=/usr/share \
    patch src/keytext.c ../../../keytext.c.path
    make #CFLAGS="${CFLAGS} -fcommon"


--- keytext.c   2024-06-13 15:54:45.890251907 +0200
+++       2024-06-13 15:54:38.396786361 +0200
@@ -22,6 +22,7 @@
  *    If you do not wish that, delete this exception.

 #  include <config.h>

Oldgeek commented on 2024-06-10 03:01 (UTC) (edited on 2024-06-10 03:03 (UTC) by Oldgeek)

I've been trying to install this on a fresh install of Manjaro using Pamac 10.6. Here is the last part of the output that I get what I get every time:

make[2]: Leaving directory '/var/tmp/pamac-build-greg/cnijfilter2/src/cnijfilter2-source-6.60-1/lgmon3/src' make[1]: *** [Makefile:416: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/pamac-build-greg/cnijfilter2/src/cnijfilter2-source-6.60-1/lgmon3' make: *** [Makefile:348: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

I was thinking of maybe forcing make to ignore all errors, but don't know if the printer would work. I've also tried using yay to try to install but that didn't work either.

Any help would be greatly appreciated.


jruiz commented on 2024-05-19 10:14 (UTC)

Found this error: error: implicit declaration of function ‘malloc’

had to download the repository and modify a file to over come it

$ git clone $ cd cnijfilter2 $ makepkg Error!

$ vim ./src/cnijfilter2-source-6.60-1/lgmon3/src/keytext.c ...

include <stdlib.h>


makepkg -e -i

Achilleus commented on 2024-03-08 10:58 (UTC)

Running autoconf ... warning: The macro 'AC_HEADER_STDC' is obsolete. You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... the top level warning: AC_OUTPUT should be used without arguments. You should run autoupdate. error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation. error: possibly undefined macro: AM_CONFIG_HEADER error: possibly undefined macro: AM_PROG_LIBTOOL
Running ./configure --prefix=/usr --enable-progpath=/usr/bin ...
./configure: line 2724: syntax error near unexpected token `cnijbe2,'
./configure: line 2724: `AM_INIT_AUTOMAKE(cnijbe2, 5.00-1)'
==> BŁĄD: Wystąpił błąd w build().

unit73e commented on 2023-12-22 17:03 (UTC)

@ruffy I could add it but not sure if 'libusb' is required because some modern printers don't even have USB. The package installs with a clean chroot so it's not a compilation requirement. The easy way to test is pkgctl build --repo extra. More information here:

unit73e commented on 2023-12-22 16:51 (UTC)

@tobias-hd glad you fixed it, but install base-devel as detailed here:

tobias-hd commented on 2023-09-01 14:25 (UTC) (edited on 2023-09-03 12:46 (UTC) by tobias-hd)

Hi, I get an error message during installation on Manjaro:

config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details

Unfortunately I could not find the "config.log" file yet. Any idea how I could fix this?

Update: Found the "config.log" - "make" was missing on my system, and seems not to be in the dependencies. After manual installation of "make", build & installation of cnijfilter2 was successful, and printing works.