Message-ID: <3EA93F07.3060504 at lix.polytechnique.fr> Date: Fri, 25 Apr 2003 15:58:31 +0200 From: Benjamin Monate MIME-Version: 1.0 To: Sven Luther Cc: lablgtk Subject: Re: lablgtk on windows ... References: <20030425114457.GA1558 at iliana> <3EA91DD1.8010709 at lix.polytechnique.fr> <20030425130710.GA2677 at iliana> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sven Luther wrote: >Ok, will try that, altough since i managed to build ocaml, it should be >ok, no ? > > If you manage to compile a Caml prog to native code yes, this is enough. > > >>1) Install Gtk 2: use the precompiled binaries available at >>http://www.gimp.org/~tml/gimp/win32/downloads.html >> Do NOT even try to compile it yourself from scratch. >> >>You need to install : >>-libiconv >>-libintl >>-gettext-dev >>-pkgconfig >>-zlib libpng libjpeg libtiff freetype runtime+devel >> >> > >All these are available as cygwin packages. > > Yes . But be careful with the version numbers. Especially with pkgconfig. >>Try to compile a small hello-gtk.c (see the tutorial page on >>http://www.gtk.org) before going further. >> >> > >Will try. > > > >>2) Compile OCaml 3.06 for mingw. This is needed as INRIA does not >>provide precompiled version. Follow the instructions in the README >> for mingw. Edit the configuration file and replace all occurences of >>-fnative-struct by "-mms-bitfields -mno-cygwin". Then make opt.opt. >> (you do not need Tk, do you ?). >> >> > >No, i don't need tk, since i have lablgtk, and bytecode only would be >enough for me. > >That said, make bootstrap doesn't reach fix point when building the >bytecode compiler, should i worry about this ? > > No. This has probably something to do with date information in binary headers. "make opt.opt" is enough. >>At this step "ocamlc hello.ml", "ocamlopt hello.ml", "ocaml" should >>work ok. >> >> > >Yes, this i managed to do. > > Cool. You are on the right path :-) >Yes, it is very helpfull, maybe this same mail could be added to the >lablgtk web site or something such ? > > Yes. As soon as you confirm that I forgot nothing, I will do this. >Now, the next step would be to have all that available for the mingw32 >crosscompiler, so windows exexutables could be generated from linux >without needing to switch to the dark side. :))) >But i think that ocaml is not yet ready for building a cross compiler. > > You are right. We need a little help from INRIA for this. Jacques :-) do you hear this ? Keep me informed of your progresses. Benjamin