[cups] Problem in variable substitution when compiling CUPS for ARM.

Joaquim Duran jduran.gm at gmail.com
Wed Nov 4 09:15:35 PST 2015


Hello,

I've cross compiled CUPS for ARM. Once installed in the embedded
device, I've configured a postscript printer, EPSON EL-6200, (As the
printer is a postscript printer, I've provided a PPD file but I've not
installed additional drivers). When I print a .ps file, cups reports
to me that postscript file format is not supported.

In the logs file, I've seen that cups could not locate commandtops
file. It couldn't locale the file because the path is invalid.

Error from cupsd:

I [02/Jan/2000:04:23:02 +0000] Loaded MIME database from
"/usr/local/share/cups/mime" and "/usr/local/etc/cups": 40 types, 1
filters...
D [02/Jan/2000:04:23:02 +0000] Loading printer EPL-6200...
D [02/Jan/2000:04:23:02 +0000] load_ppd: Loading
/usr/local/var/cache/cups/EPL-6200.data...
E [02/Jan/2000:04:23:02 +0000] EPL-6200: File
"/usr/local/etc/cups/${exec_prefix}/lib/cups/filter/commandtops" not
available: No such file or directory
D [02/Jan/2000:04:23:02 +0000] cupsdMarkDirty(P----)
D [02/Jan/2000:04:23:02 +0000] cupsdSetBusyState: newbusy="Dirty
files", busy="Not busy"

Script used to configure CUPS in the compilation:

export ARCH=arm
export PATH=$PATH:/opt/CodeSourcery/arm-2011.09/bin/

SYSROOT=/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs
EXEC_DIR=/usr
ETC_DIR=/usr/var/lib

export PKG_CONFIG_DIR=
export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/lib/pkgconfig:${SYSROOT}/usr/share/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=${SYSROOT}

export CROSS_COMPILE=1
export ARCH=arm
export PATH=$PATH:/opt/CodeSourcery/arm-2011.09/bin/

./configure \
    --disable-dbus \
    --disable-libusb \
    --disable-gssapi \
    --disable-acl \
    --disable-avahi \
    --disable-dnssd \
    --disable-launchd \
    --disable-systemd \
    --disable-unit-tests \
    --disable-page-logging \
    --enable-browsing \
    --with-cupsd-file-perm=0755 \
    --with-config-file-perm0=755 \
    --with-log-file-perm=0755 \
    --prefix=/usr/local \
    --exec_prefix=/usr/local \
    --sysconfdir=/usr/local/etc \
    --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi

Real path of the commandtops file: /usr/local/lib/cups/filter/commandtops

Could the error be the reason that cupds can't print?


Thanks and Best Regards,
Joaquim Duran



More information about the cups mailing list