1 Feb 2006 09:43
Win32 build
Olivier Samyn <olivier-ml1 <at> oleastre.be>
2006-02-01 08:43:33 GMT
2006-02-01 08:43:33 GMT
Hello,
Just for fun, I tried again to get chrokee compiled on win32, using
Mingw, Msys and the configure script (not the Makefile.Mingw)
I got it working with some changes (there are probably some remaining bugs).
I attach to this mail a diff file containing some changes.
Notice, some modifications are needed on Makefiles. I made those on
Makefile.in, but it will probably best to be done in Makefile.am(but I
do not have a working automake in this win32 beast)
Notice also, that those modifications are done to get cherokee running
on win32, and cannot be used on linux.
Changes are :
cherokee/Makefile.in
Add and "export all symbols" option to the linker flags. (plus regex
to only include symbols starting with "cherokee_")
Can probably be done with CHEROKEE_EXPORT, but it's more simple
using this.
Add some references to plugins/libraries, since a win32 executable
cannot be linked with unresolved symbols.
Need probably to add some WIN32 checks
cherokee/main.c
I do not know why but "HAVE_GETOPT_H" is not defined. So, I added a
little ifdef before including getopt.h
cherokee/module_read_config.c
Modified path contatenation to handle win32 pahs (using \ in place of /)
cherokee/read_config_grammar.y
cherokee/read_config_scanner.l
(Continue reading)
> mime_grammar.y: In function `yy_mime_parse':
> [..]
>
> I used rev. 183 from SVN. Any ideas?
mime_grammar.y doesn't exist any longer. I removed that grammar when
we switched to use standard mime definition files.
BTW, I've been compiling it with the automake thing, and I have to
say it has been working smoothly. I know we talked about this
before, but it'd be a good idea to try to use that on Windows too.
RSS Feed