* Re: ocamlsdl natively for Windows?
@ 2005-08-02 12:38 Tobias Elze
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Elze @ 2005-08-02 12:38 UTC (permalink / raw)
To: caml-list
I succeeded in compiling them with MingW. Special thanks to Sami Mäkelä
for his invaluable help and suggestions!
In order to spare others hours of annoying work I provide a mini Howto here:
How to compile ocamlsdl for MingW
=================================
1) Download the following archives:
a) ocamlsdl (http://ocamlsdl.sourceforge.net/download.html). (e.g.
ocamlsdl-0.7.2.zip)
b) SDL for MingW (precompiled:
http://www.libsdl.org/release/SDL-devel-1.2.8-mingw32.tar.gz)
c) SDL image (source:
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.4.zip,
the precompiled version for VC6 works for MingW as well:
http://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.4-VC6.zip)
d) SDL ttf (source:
http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.7.zip,
precompiled:
http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-devel-2.0.7-VC6.zip)
e) SDL mixer
(http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.6.zip.
precompiled:
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.6-VC6.zip)
(If you need GL support, you may want to download lablgl as well. It has
to be installed before compiling ocamlsdl!)
2) Install SDL
a) SDL main package
If you downloaded the compiled version for MingW (see above) then unpack
it to your Cygwin home directory.
- go to cygwin/usr/include/Sdl, edit the file "SDL_main.h", and remove
the line "#define main ...".
- look for a file named "i386-mingw32msvc-sdl-config" in your /bin
directory and rename it to "sdl-config".
- edit this file,
- change the prefix to "/usr",
- remove all references to SDL_main and SDLmain
- add "-mno-cygwin" to "--cflags)"
- remove all "-lmingw32" flags
b) SDL image, SDL ttf, SDL mixer
- If you use the precompiled packages, just unarchive. I put the *.h
files into the directory where SDL.h was located and the libraries into
the directory where the SDL libraries were.
3) Install ocamlsdl
- just ./configure, make, make install -- that's all!
(However, there is no visible standard output of the generated binaries
-- I don't know if it's a bug or a feature;) ...)
^ permalink raw reply [flat|nested] 2+ messages in thread
* ocamlsdl natively for Windows?
@ 2005-07-26 9:52 Tobias Elze
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Elze @ 2005-07-26 9:52 UTC (permalink / raw)
To: caml-list
Hello,
I want to make a MS Windows port of a linux application using the OCaml
SDL library. However, I was not successfull in compiling the ocamlsdl
library natively for Windows, neither for MinGW nor for MSVC. I am not
very experienced with this so I gave up after several hours after
running into too many errors I did not understand.
Does anyone have a working native Windows port of ocamlsdl? The one
Andrei Formiga has made some time ago (
http://sourceforge.net/mailarchive/forum.php?thread_id=4961510&forum_id=2871
) is unfortunately lost.
Thanks a lot,
Tobias.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-02 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-02 12:38 ocamlsdl natively for Windows? Tobias Elze
-- strict thread matches above, loose matches on Subject: below --
2005-07-26 9:52 Tobias Elze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox