Date: Fri, 25 Apr 2003 15:07:10 +0200 To: Benjamin Monate Cc: Sven Luther , lablgtk at kaba.or.jp Subject: Re: lablgtk on windows ... Message-ID: <20030425130710.GA2677 at iliana> References: <20030425114457.GA1558 at iliana> <3EA91DD1.8010709 at lix.polytechnique.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EA91DD1.8010709 at lix.polytechnique.fr> From: Sven Luther On Fri, Apr 25, 2003 at 01:36:49PM +0200, Benjamin Monate wrote: > This is not easy, but it is feasable. Ok, thanks, i will be switching to the windows side right now and try this out. > 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 Ok, will try that, altough since i managed to build ocaml, it should be ok, no ? > 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. > -glib-2.2.1 runtime+dvel > -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 ) Now that i know that these are cygwin+mingw packages, it should be ok, i was confused by what > 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 ? > At this step "ocamlc hello.ml", "ocamlopt hello.ml", "ocaml" should > work ok. Yes, this i managed to do. > 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. Ok. > Hope this will help you. I just did something like that two weeks ago, > so I hope I did not forget any step... Yes, it is very helpfull, maybe this same mail could be added to the lablgtk web site or something such ? 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. Friendly, Sven Luther