Message-ID: <3EA91DD1.8010709 at lix.polytechnique.fr> Date: Fri, 25 Apr 2003 13:36:49 +0200 From: Benjamin Monate MIME-Version: 1.0 To: Sven Luther Cc: lablgtk at kaba.or.jp Subject: Re: lablgtk on windows ... References: <20030425114457.GA1558 at iliana> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit This is not easy, but it is feasable. Here is a small howto about Gtk 2 on Win32: 0) Install cygwin base devel. tools with gcc-mingw. First check your installation by trying to compile a hello world C program with gcc -mno-cygwin -mms-bitfields main.c 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 -glib-2.2.1 runtime+dvel -pkgconfig -zlib libpng libjpeg libtiff freetype runtime+devel -gtk+-2.2.1 runtime+dev -atk-1.03 runtime+dev -pango-1.2.1 runtime+dev Unzip all these in the base directory (something like X:\cygwin ) Try to compile a small hello-gtk.c (see the tutorial page on http://www.gtk.org) before going further. 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 ?). At this step "ocamlc hello.ml", "ocamlopt hello.ml", "ocaml" should work ok. Before compiling lablgtk2, you need to manualy compile tools/ocamlmklib.ml. Edit this file with sensible values for variables from bindir to ranlib then "make ocamlmklib" and install it to your bindir. 3) now proceed with lablgtk2: "make configure" and the "make all opt" should succeed. Install and test. Hope this will help you. I just did something like that two weeks ago, so I hope I did not forget any step... Friendly Benjamin Monate Sven Luther wrote: >Hello, ... > >I am urgently in need for help on how to run lablgtk on windows, i need >to build a lablgtk app that has to run on a windows computer. I passed >all morning trying to build glib on cygwin, and failed miserably, i hate >windows. ocaml built fine, why, o why, can't cygnus also provide >glib/gtk packages :(((( > >So, what is the correct way to building lablgtk on windows ? What >compiler, ocaml, gtk+ and such are used ? > >Any help would be welcome. > >Friendly, > >Sven Luther > >