[sane-devel] SANE source compilation problems

Alejandro Imass ait at p2ee.org
Sun Apr 25 20:45:01 UTC 2010

It should compile fine in Ubuntu/Debian

Make sure you have these pkgs before you configure:


Alejandro Imass

On Sun, Apr 25, 2010 at 4:25 PM, Ilmārs Poikāns <ilmars at delibero.lv> wrote:
> Hi,
> I downloaded source from git repositories (sane-backends and sane-frontends)
> and tired to compile them.
> I have Ubuntu 9.10, needed dev library packages were there.
> sane-backends configure, make, make install was fine.
> sane-frontends configure failed.
> I traced problem down to /user/local/bin/sane-config having line:
> LIBS=" -ldl -lv4l1   -lm -ltiff -ljpeg  -lgphoto2 -lgphoto2_port -lexif -lm
> -lusb       -lusb  @REGMGR_LIBS@"
> When I deleted @REGMGR_LIBS@ from that line, then sane-frontends configure
> run successfully. I didn't care about graphical frontends, so configure
> disabled GUI. Previously gcc tried to find that file and failed to compile
> some tests.
> So, my first question - Is it normal to have something like @REGMGR_LIBS@
> unreplaced with some text after sane-backends make install?
> Then I got to second problem while making sane-frontends - compiling
> scanadf.c failed, make reported error:
> scanadf.c:995: error: ‘SANE_STATUS_WARMING_UP’ undeclared (first use in this
> function)
> Source for SANE_STATUS_WARNING_UP undeclared problem was in
> /usr/local/include/sane/sane.h (installed by make install in sane-backends)
> on line 74. Missing define is deactivated with #if 0 line above. When I
> changed "#if 0" to "#if 1" and enabled following two #define declarations,
> sane-frontends make was successful finally.
> Is it supposed to be so, that user needs to manually change something in
> installed files to make sane successfully? Or I found a feature or bug?
> Best regards,
> Ilmars Poikans
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to sane-devel-request at lists.alioth.debian.org

More information about the sane-devel mailing list