Re: Compiling on OS/2

From: Franz Bakan (fbakan@gmx.net)
Date: Mon Jun 04 2001 - 10:20:24 PDT

  • Next message: Nick Lamb: "Re: xsane requests username and password after saned has exited"

    Hi,

    On Mon, 4 Jun 2001 18:00:17 +0200, Henning Meier-Geinitz wrote:

    >> To compile sane-backends/frontend/test
    >> I had to change the order of some #include commands in test.c:
    >> If I use the following order it builds:
    >> ...
    >> #include <ctype.h>
    >> #include <limits.h>
    >> #include <netdb.h>
    >> #include <stdio.h>
    >> #include <stdlib.h>
    >> #include <string.h>
    >> #include <unistd.h>
    >>
    >> #include <sys/socket.h>
    >> #include <sys/types.h>
    >>
    >> #include <netinet/in.h>
    >>
    >> #include <sane/sane.h>
    >> ...
    >
    >??? This *is* the order in current CVS.

    Sorry my fault. this is the sequence I have to use:
    ...
    #include <ctype.h>
    #include <limits.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>

    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netdb.h>

    #include <netinet/in.h>

    #include <sane/sane.h>
    ...

    >
    >> 'make install' partly works, but has some minor problems because
    >> it does not find the dlls because there are no dlls ...
    >
    >This may be because of --disable-dynamic instead of --disable-shared.

    Ok, I will try to use --disable-shared.

    >> I also succeeded to build a statical linked working Xscanimage :-)
    >
    >Fine.
    >
    >> I had to copy 'g:/XFree86/bin/gtk12-config' to 'g:/XFree86/bin/gtk-config'
    >
    >You can also set the environment variable GTK_CONFIG to
    >g:/XFree86/bin/gtk12-config, at least that works on FreeBSD.

    Thanks, should work here also. I will try

    >> I had to delete the 'struct timespec' definition from pthread.h
    >> because this def is allready in sys/time.h
    >
    >Am I right that this is not a SANE problem?

    Right.

    >> I have documented all this at
    >> http://home.tiscalinet.de/fbakan/sane105.htm
    >
    >Thanks. I think the best thing is to put a link into the platforms
    >list for 1.0.5 and maybe on the related page.

    OK

    Bye,

    Franz

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Mon Jun 04 2001 - 10:24:24 PDT