Building xsane with sane-backends from source
This is tested with sane-project/backends@3be9ac99 and 039a7dbf
My env Debian 10, both sane-backends and xsane configured with default options
I've found that resulting backend-file /usr/local/lib/pkgconfig/sane-backends.pc
which looks like this
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
ldflags=
libs= -ldl -lm -ltiff -ljpeg -lusb-1.0
Name: SANE Backends
Description: Backends for SANE, the universal scanner interface
Version: 1.0.29-573-g3be9ac99a-dirty
Requires:
Libs: -L${libdir} -lsane
Libs.private: ${ldflags} ${libs}
Cflags: -I${includedir}
Does not contain any ldflags, i'm not sure if there should be any
However configuring xsane, using pkg-config (standard autoreconf -if
and ./configure --prefix=/usr/local
), following snippet can be found in configure script (starting at line 6889)
if test "x$SANE_LDFLAGS" = x""; then :
else
HAVE_SANE=yes
fi
Which will obviously fail, simply flipping the test or if/else flow, will fix the issue, and allow me to compile and run xsane successfully against mentioned version of backends. If I could provide you with more debug info, to resolve the issue, let me know.