Date: Fri, 25 Apr 2003 17:21:05 +0200 To: Benjamin Monate Cc: Sven Luther , lablgtk Subject: Re: lablgtk on windows ... Message-ID: <20030425152105.GA1275 at iliana> References: <20030425114457.GA1558 at iliana> <3EA91DD1.8010709 at lix.polytechnique.fr> <20030425130710.GA2677 at iliana> <3EA93F07.3060504 at lix.polytechnique.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EA93F07.3060504 at lix.polytechnique.fr> From: Sven Luther On Fri, Apr 25, 2003 at 03:58:31PM +0200, Benjamin Monate wrote: > 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. Mmm, will check ... I had a problem, the pkg-config -cflags of the gtk+ stuff is in a wrong directory (/target/build/...). Is this a bad installation of my part, the wrong pkg-config you spoke about, or is there something wrong with these packages ? I will try checking the pkg-config database by hand. > >>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. A, ok. I just built the bytecode compiler, which should be enough for me, i think. > > > >>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. Ok, i will keep you informed on 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 ? Not only, first we need cross compiled gtk+ packages. I will see with the mingw32 debian packagers what can be done, there is also a debian-mingw32 mailing list i think. > Keep me informed of your progresses. Ok, i will. Friendly, Sven Luther