caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: hallvard.ystad@helpinhand.com, caml-list@inria.fr
Subject: Re: [Caml-list] building OCaml under MinGW
Date: Thu, 24 Oct 2002 12:33:01 +0900	[thread overview]
Message-ID: <20021024123301Z.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <20021013115502.O13771@pauillac.inria.fr>

From: Xavier Leroy <xavier.leroy@inria.fr>
> > Interesting. I uninstalled my mingw installation and installed
> > cygwin (containing mingw) instead.  This time, my installation went
> > much further before messing up. But in the end, I still got errors,
> > and the installation failed. Here's where it fails:
> > cltkImg.c: In function `camltk_setimgdata_native':
> > cltkImg.c:102: too few arguments to function `Tk_PhotoPutBlock'
> 
> Are you sure you have the recommended version of Tcl/TK?  (8.3)

Indeed, this error is caused by Tcl/Tk 8.4.

Here is an easy patch (useful also for users of recent Linux
distributions)

Jacques Garrigue

Index: otherlibs/labltk/support/cltkImg.c
===================================================================
RCS file: /net/pauillac/caml/repository/csl/otherlibs/labltk/support/cltkImg.c,v
retrieving revision 1.3
diff -c -r1.3 cltkImg.c
*** cltkImg.c	2002/07/23 14:11:59	1.3
--- cltkImg.c	2002/10/24 03:19:38
***************
*** 99,105 ****
    pib.offset[0] = 0;
    pib.offset[1] = 1;
    pib.offset[2] = 2;
!   Tk_PhotoPutBlock(ph,&pib,Int_val(x),Int_val(y),Int_val(w),Int_val(h)); 
  }
  
  CAMLprim void camltk_setimgdata_bytecode(argv,argn)
--- 99,109 ----
    pib.offset[0] = 0;
    pib.offset[1] = 1;
    pib.offset[2] = 2;
!   Tk_PhotoPutBlock(ph,&pib,Int_val(x),Int_val(y),Int_val(w),Int_val(h)
! #if (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION >= 4 || TK_MAJOR_VERSION > 8)
!                    , TK_PHOTO_COMPOSITE_SET
! #endif
!     ); 
  }
  
  CAMLprim void camltk_setimgdata_bytecode(argv,argn)
Index: otherlibs/labltk/tkanim/tkAnimGIF.c
===================================================================
RCS file: /net/pauillac/caml/repository/csl/otherlibs/labltk/tkanim/tkAnimGIF.c,v
retrieving revision 1.4
diff -c -r1.4 tkAnimGIF.c
*** tkAnimGIF.c	2002/07/23 14:12:00	1.4
--- tkAnimGIF.c	2002/10/24 03:19:38
***************
*** 335,342 ****
                  goto error;
              }
          }
!         Tk_PhotoPutBlock(photoHandle, &block, 0, 0, 
!                          imageWidth, imageHeight);
  #ifdef TKANIM_DEBUG
      fprintf(stderr, " Retrieving result\n");
  #endif
--- 335,345 ----
                  goto error;
              }
          }
!         Tk_PhotoPutBlock(photoHandle, &block, 0, 0, imageWidth, imageHeight
! #if (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION >= 4 || TK_MAJOR_VERSION > 8)
!                    , TK_PHOTO_COMPOSITE_SET
! #endif
!           );
  #ifdef TKANIM_DEBUG
      fprintf(stderr, " Retrieving result\n");
  #endif
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2002-10-24  3:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11 10:19 dmitry grebeniuk
2002-10-11 11:10 ` Kontra, Gergely
     [not found] ` <Pine.LNX.4.21.0210111308550.21652-100000@mlabdial.hit.bme. hu>
2002-10-11 11:43   ` Hallvard Ystad
2002-10-11 11:46     ` Xavier Leroy
2002-10-11 12:09       ` [Caml-list] List configs (was: building OCaml under MinGW) Hallvard Ystad
2002-10-11 13:56         ` Remi VANICAT
2002-10-11 16:31       ` [Caml-list] building OCaml under MinGW Kontra, Gergely
2002-10-11 13:00 ` Christophe Raffalli
2002-10-12 12:05   ` Hallvard Ystad
2002-10-13  9:55     ` Xavier Leroy
2002-10-14 17:57       ` Hallvard Ystad
2002-10-24  3:33       ` Jacques Garrigue [this message]
     [not found] <Your message of "Fri, 11 Oct 2002 14:09:34 +0200." <5.1.1.6.2.20021011140155.01ac29c8@helpinhand.com>
     [not found] ` <200210111213.g9BCDm929496@sarg.ryerson.ca>
2002-10-11 12:26   ` [Caml-list] List configs (was: building OCaml under MinGW) Hallvard Ystad
2002-10-11 20:36     ` William Lovas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021024123301Z.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=hallvard.ystad@helpinhand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).