Re: Compiling on OS/2

From: Franz Bakan (fbakan@gmx.net)
Date: Sat Jun 02 2001 - 06:32:36 PDT

  • Next message: Henning Meier-Geinitz: "Re: Patches for improved batch scanning in scanimage"

    Hi,
    thanks Henning for applying the patches for OS/2-support.
    Only left one bug in qcam.c. The struct has to be defined once more.
    Here is the output from diff -c how could solve the problem.
    --begin--
    *** i:qcam.c Sat Jun 2 00:58:46 2001
    --- qcam.c Sat Jun 2 02:01:56 2001
    ***************
    *** 332,337 ****
    --- 332,348 ----
      qc_unlock (QC_Device *q)
      {
      #ifdef F_SETLK
    +
    + #ifndef HAVE_STRUCT_FLOCK
    + struct flock
    + {
    + off_t l_start;
    + off_t l_len;
    + pid_t l_pid;
    + short l_type;
    + short l_whence;
    + };
    + #endif /* !HAVE_STRUCT_FLOCK */
        struct flock sfl;
      #endif
    -- end --

    Here is a complete description how I managed to compile the latest
    CVS-Version:

    1. remove 'snapscan' and 'umax_pp' from PRELOADABLE_BACKENDS =
       in backend/makefile.in

    1a. modify qcam.c see above

    2. os2unix -all

    3. change 'sh LIBTOOL' to 'LIBTOOL'
      in
      sane-backends\tools\Makefile.in
      sane-backends\sanei\Makefile.in
      sane-backends\lib\Makefile.in
      sane-backends\japi\Makefile.in
      sane-backends\frontend\Makefile.in
      sane-backends\backend\Makefile.in

    4. sh configure --without-warnings --disable-libtool-lock --disable-dynamic

    5. add
       '#define HAVE_VSYSLOG'
       to
       sane-backends/include/sane/config.h

    6. change
       'LIBS ='
       to
       'LIBS = /XFree86/lib/shm.a /emx/lib/syslog.a /emx/lib/socket.a'
       in
       sane-backends/frontend/makefile

    7. change
       'LIBS = -lsocket -lm'
       to
       'LIBS = -lsocket -lm /emx/lib/syslog.a /emx/lib/socket.a'
       in
       sane-backends/tools/makefile
       and remove
       'umax_pp'
       from
       'DESTINATIONS = sane-find-scanner sane-config umax_pp'

    8. make

    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 : Sat Jun 02 2001 - 06:33:02 PDT