[sane-devel] Another cross-post for sane-gphoto2

jim.george at blueyonder.co.uk jim.george at blueyonder.co.uk
Sat Jan 12 11:36:34 GMT 2002


On Fri, 11 Jan 2002, Peter Fales wrote:

> On Fri, Jan 11, 2002 at 06:17:50PM +0100, Henning Meier-Geinitz wrote:
>
> > > 	Then it complained about libjpeg libraries missing, this was because some
> > > of them were in /usr/lib so I linked these into /usr/local/lib.
> >
> > The SANE jpeg test doen't look in any special directory. It just tries
> > to include the header and links against a function. If it doesn't find
> > libjpeg in /usr/local/lib, maybe /usr/local/lib is not mentioned in
> > /etc/ld.so.conf?
>
> I think that the gphoto2 stuff works the same way.  I suspect that the
> reason it works for Henning and me is that we have /usr/local/lib/lib
> in /etc/ld.so.conf, so that's one of the standard places it looks for
> libraries.
>

If you mean /usr/local/lib...that's in /etc/ld.conf.  I don't have a sub-directory
/usr/local/lib/lib.

> > > 	Next was the includes for gphoto2...the '-I' directive was
> > > '-I$with_gphoto2/include/gphoto2' but $with_gphoto2 was empty.  So I hardcoded -I to
> > > be '-I/usr/local/include/gphoto2' to get over this.
> >
> > Maybe in the source code "gphoto2/gphoto2.h" and not only "gphoto2.h"
> > must be included?
>
> At line 2975 of configure (the version that Jim sent me), it tries to
> set $with_gphoto2 to /usr/local unless the user supplies a value.  This
> works for me whether I use --with-gphoto2,  --with-gphoto2=/usr/local or
> --with-gphoto2=foo.  (In the latter case, the test compile fails,
> gphoto2 is disabled.)  Perhaps you could put some hooks into the configure
> script to figure out why this is not working for you.
>
This now works by including --with-gphoto2 command line parameter.  I didn't use this at first because ./configure --help says that this is the default.

> > > 	Then it complained of a missing config.h file.  I copied one over from the
> > > gphoto2 source tree.
> > Don't know about that...
>
> I can't explain that either.  You shouldn't have to do that.  Can you send
> me the exact error output and  the config.log output (for this situation)?
>
> > > 	It then complained that PACKAGE and VERSION had been redefined
> > >	whereupon it failed the gphoto2.h test.
> >
> > Can you please post the interesting part of the log file?

please find the interesting part attached.

> >
> > Peter Fales <peter at fales.com> is the mainatiner of this backend.
> > Peter: Would it be reasonable to use gphoto2-config to determine the
> > LDFLAGS and CFLAGS like it's done for gtk-config in the sane-frontends
> > package?
>
> It certainly sounds like the write way to do things, but unfortunately
> it's way beyond my level of knowledge of autoconf, etc.  From a quick
> look, it appears that all the magic is is gtk.m4, and all configure.in
> needs to do is  AM_PATH_GTK(0.99.13, HAVE_GTK=yes, ).  I don't know
> where gtk.m4 comes from - it's quite complicated and there is no
> equivalent gphoto2.m4.  I assume that this would somehave have to come
> from the gphoto2 development team.
>
> Pete Fales
>
Help?! :)

-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.


int main() {
usb_open()
; return 0; }
configure:2784: checking for jpeg_start_decompress in -ljpeg
configure:2803: gcc -o conftest -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi  -D_GNU_SOURCE  conftest.c -ljpeg  -lm  1>&5
configure:2796: warning: function declaration isn't a prototype
configure:2798: warning: function declaration isn't a prototype
configure:2821: checking for jconfig.h
configure:2831: gcc -E  -D_GNU_SOURCE conftest.c >/dev/null 2>conftest.out
configure:2849: checking for jpeglib - version >= 61 (6a)
configure:2907: checking for gphoto2
configure:2988: checking for gphoto2.h
configure:2998: gcc -E  -D_GNU_SOURCE -I/usr/local/include/gphoto2 conftest.c >/dev/null 2>conftest.out
In file included from /usr/local/include/gphoto2/gphoto2-port.h:24,
                 from /usr/local/include/gphoto2/gphoto2.h:40,
                 from configure:2994:
/usr/local/include/gphoto2/config.h:180: warning: `PACKAGE' redefined
confdefs.h:2: warning: this is the location of the previous definition
/usr/local/include/gphoto2/config.h:183: warning: `VERSION' redefined
confdefs.h:3: warning: this is the location of the previous definition
configure: failed program was:
#line 2993 "configure"
#include "confdefs.h"
#include <gphoto2.h>


More information about the sane-devel mailing list