You are not logged in.
Good Morning,
I am trying to get my networked mx880 working with my Arch Linux desktop (Linux 5.4.15-arch1-1 #1 SMP PREEMPT Sun, 26 Jan 2020 09:48:50 +0000 x86_64 GNU/Linux).
I have cups installed and I have configured my system so it can 'see' the printer; however, I am getting this error message from within the printer settings
Idle - File "/usr/lib/cups/filter/pstocanonij" not available: No such file or directory
I have confirmed that no such file exists on my system.
Due to this I am trying to install the AUR package called cnijfilter-common-x86_64 3.40-2 (https://aur.archlinux.org/packages/cnij … on-x86_64/).
This always fails with an error though (Using the command makepkg -sic within the git clone'd directory)
The error I am receiving is-
make[2]: *** [Makefile:410: bjcups.o] Error 1
make[2]: Leaving directory '/home/nasica/Downloads/cnijfilter-mx880/src/cnijfilter-source-3.50-1/cngpij/cngpij'
make[1]: *** [Makefile:396: all-recursive] Error 1
make[1]: Leaving directory '/home/nasica/Downloads/cnijfilter-mx880/src/cnijfilter-source-3.50-1/cngpij'
make: *** [Makefile:328: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Full makepkg output available at the following pastebin
https://pastebin.com/FiZ6JwsZ
Would anyone, please, be able to offer me some advice on how to proceed?
Thanks
Last edited by Nasica (2020-02-22 22:19:14)
Offline
The following is based on https://aur.archlinux.org/packages/cnijfilter-common/ adjusted to be a native 64 bit build.
It has been build tested only
# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
# Contributor: Stefan Hackl <stef.hackl [at the] gmail [dot] com>
# Contributor: Eric Le Bras <eric.lebras [at the] gmail [dot] com>
# Contributor: Jeroen Op 't Eynde <jeroen [at the] xprsyrslf [dot] be>
# Contributor: Maxqia <contrib [at the] maxqia [dot] com
pkgname=('cnijfilter-common')
_pkgname=cnijfilter
pkgver=4.10
pkgrel=2
_pkgreview=1
pkgdesc="Canon IJ Printer Driver (Common Package)"
url="http://www.canon-europe.com/support/pixma_software/"
arch=('x86_64')
license=('custom')
conflicts=('lib32-cnijfilter320')
depends=('libcups' 'popt' 'libusb' 'libxml2')
# File size: 7683230 bytes
source=("cnijfilter-source-4.10-1.tar.gz::http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwNTg1ODAx&cmp=ACB&lang=EN"
'cnijfilter-3.80-1-cups-1.6.patch'
'cnijfilter-3.80-6-cups-1.6.patch'
'cnijfilter-4.00-4-ppd.patch'
'cnijfilter-4.00-5-abi_x86_32.patch'
'buildfiles.patch')
sha512sums=('58198e92e360c71c95423bfa8278f449eb645245af1b96770323cb6f4b2b7186e5ab326d58377c20627c750d3d8c253addf637f9d18e085b1c89a81d6239ab51'
'928ad05393f187015cc4934ef0273e5e84d292f1eac67f0ea48c4837c1587d222d47b7a38e6931f232b1f65ef40002586eed945ce465ead839a8b5422c9f00f4'
'fbe43e6d07e69d3b8e7c816dbae94679c3941e38c31f291da690dd65aa6f2db54eb7f53f1c3fe0444e443b366aaa18dc7a90799a994b37c809686ef1cd945906'
'f81314b80fd4025b47e7fd783b0ba891b9966e8f0d8caabc01a2ee6ac95a6b6f13655e9172ac56dcd5f1fbaa48751e9ba1b35450c066440167151589292fdc6c'
'936a693fcb2f44bec87bf56ec809796ec9f4854c7c374141fc73e5e55bf0625a725bc3bace8bc1604114d04865720ad0a10ef67d493231225f1bd236fd576226'
'f3c04c3189852b09f463f96023f86563e22a1e7453ac04e9411c295a767a91dee0149268923448f38acb465aebc53fa0c9af32ff358a3c507a8caa7355867d17')
prepare() {
cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}/"
patch -p1 -i ../cnijfilter-3.80-1-cups-1.6.patch
patch -p1 -i ../cnijfilter-3.80-6-cups-1.6.patch
patch -p0 -i ../cnijfilter-4.00-4-ppd.patch
patch -p0 -i ../cnijfilter-4.00-5-abi_x86_32.patch
# patch -p1 -i ${srcdir}/cups.patch
patch -p1 -i ${srcdir}/buildfiles.patch
# patch -p1 -i ${srcdir}/mychanges.patch
}
build() {
local _dir
cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}/"
for _dir in libs bscc2sts cnijnpr cngpij cngpijmnt pstocanonij backend backendnet cmdtocanonij cnijbe lgmon2; do
pushd $_dir
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
popd
done
make
}
package() {
cd "${srcdir}/${_pkgname}-source-${pkgver}-${_pkgreview}/"
make DESTDIR=$pkgdir install
# install -d ${pkgdir}/usr/lib32/bjlib
# install -m 644 com/ini/cnnet.ini ${pkgdir}/usr/lib/bjlib
install -s -m 755 com/libs_bin64/lib*.so.* ${pkgdir}/usr/lib
install -D LICENSE-cnijfilter-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${pkgver}EN.txt
install -d ${pkgdir}/etc/udev/rules.d
install -m 644 etc/*.rules ${pkgdir}/etc/udev/rules.d
}
cnijfilter-3.80-1-cups-1.6.patch, cnijfilter-3.80-6-cups-1.6.patch, cnijfilter-4.00-4-ppd.patch are from https://data.gpo.zugaina.org/redcore-de … ter/files/
cnijfilter-4.00-5-abi_x86_32.patch
The one from the above site would probably work as well, I was trying to remove the need for buildfiles.patch, see below but did not achieve it.
--- backendnet/configure.in 2014-08-11 08:38:46.034984462 +0200
+++ backendnet/configure.in 2014-08-11 08:35:42.902985813 +0200
@@ -19,7 +19,11 @@
AC_DEFINE_UNQUOTED(BJLIB_PATH, "$enable_libpath")
AC_SUBST(BJLIB_PATH)
-ARC=`getconf LONG_BIT`
+case "$ABI" in
+ x86) ARC=64;;
+ x86_64) ARC=64;;
+ *) ARC=`getconf LONG_BIT`;;
+esac
AC_SUBST(ARC)
# Checks for programs.
--- cnijfilter/configure.in 2014-08-11 08:39:44.426984031 +0200
+++ cnijfilter/configure.in 2014-08-11 08:35:19.788985984 +0200
@@ -43,7 +43,11 @@
esac
AC_SUBST(CNCL_LIB_ID)
-ARC=`getconf LONG_BIT`
+case "$ABI" in
+ x86) ARC=64;;
+ x86_64) ARC=64;;
+ *) ARC=`getconf LONG_BIT`;;
+esac
AC_SUBST(ARC)
AC_PROG_CC
--- cnijnpr/configure.in 2014-08-11 08:41:12.712983380 +0200
+++ cnijnpr/configure.in 2014-08-11 08:40:44.354983589 +0200
@@ -37,7 +37,11 @@
CFLAGS="-O2"
-ARC=`getconf LONG_BIT`
+case "$ABI" in
+ x86) ARC=64;;
+ x86_64) ARC=64;;
+ *) ARC=`getconf LONG_BIT`;;
+esac
AC_SUBST(ARC)
AC_OUTPUT(Makefile
buildfiles.patch
diff -ruN cnijfilter-source-4.10-1.orig/lgmon2/src/Makefile.am cnijfilter-source-4.10-1/lgmon2/src/Makefile.am
--- cnijfilter-source-4.10-1.orig/lgmon2/src/Makefile.am 2013-12-24 07:39:15.000000000 +0330
+++ cnijfilter-source-4.10-1/lgmon2/src/Makefile.am 2016-05-09 20:25:06.259953863 +0430
@@ -9,3 +9,4 @@
CFLAGS = -O2 -Wall -I/usr/include/libusb-1.0 -I./common @XML2_CFLAGS@
cnijlgmon2_LDADD = -ldl -lusb-1.0 -lcnnet -lxml2
+cnijlgmon2_LDFLAGS = -L../../com/libs_bin64
Last edited by loqs (2020-02-22 18:15:13)
Offline
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thank you very much, Loqs
The package was successfully made
Offline