Package Details: cnijfilter2 6.80-1

Git Clone URL: https://aur.archlinux.org/cnijfilter2.git (read-only, click to copy)
Package Base: cnijfilter2
Description: Canon IJ Printer Driver for Linux
Upstream URL: https://www.canon.com.au/home-printers
Keywords: Canon Driver Printer
Licenses: GPL, custom:canon
Conflicts: cnijfilter, cnijfilter-mg3600
Provides: cnijlgmon3, tocanonij, tocnpwg
Submitter: iAndrewT
Maintainer: unit73e
Last Packager: unit73e
Votes: 48
Popularity: 1.15
First Submitted: 2016-12-22 12:46 (UTC)
Last Updated: 2024-12-16 18:49 (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:

https://wiki.archlinux.org/title/SANE/Scanner-specific_problems#Scanning_over_the_network_with_Canon_PIXMA_or_imageCLASS_all-in-one_printer/scanners

There are other methods but this is the easiest one.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

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:

PKGBUILD

    pushd lgmon3
    ./autogen.sh --prefix=/usr \
             --enable-libpath=/usr/lib/bjlib2 \
             --enable-progpath=/usr/bin \
             --datadir=/usr/share \
             LDFLAGS="-L../../com/libs_bin_$CARCH"
    patch src/keytext.c ../../../keytext.c.path
    make #CFLAGS="${CFLAGS} -fcommon"
    popd

keytext.c.path

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

+#include<stdlib.h>
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
 #endif

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.

Thanks

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 https://aur.archlinux.org/cnijfilter2.git $ 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 ...
configure.in:26: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.in:26: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.in:26: the top level
configure.in:41: warning: AC_OUTPUT should be used without arguments.
configure.in:41: You should run autoupdate.
configure.in:2: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:4: error: possibly undefined macro: AM_CONFIG_HEADER
configure.in:19: 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().
    Przerywam...

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: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

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

@tobias-hd glad you fixed it, but install base-devel as detailed here: https://wiki.archlinux.org/title/Arch_User_Repository

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.

peterklarc commented on 2023-08-25 15:50 (UTC) (edited on 2023-08-26 13:36 (UTC) by peterklarc)

It's working great. Thanks

ruffy commented on 2023-08-08 11:33 (UTC)

please add 'libusb' to the makedepends.