Yep, it works. You can have Midgard2 core component on Windows. The following is short howto on painful path for poor us affected by a Dark Side.
The first and most important thing is that Midgard is in a way a Gnome software. I mean it relies heavily on Gnome components and its natural environment is Unix/POSIX. Hopefully, there is a path thru a dangerous jungle that leads straight to a Dark Side aka Win32.
Pre-requisities:
MinGW - POSIX port to Win32
MSYS - POSIX shell
Midgard dependencies - lots of them: glib, libgda, libxml2, iconv, crypt etc. Configure script will tell ya all.
Building environment
Easy, but not automated. Start with installing MinGW with MSYS by following instructions from the page. Fetch as many as you can find, standard libraries ports for MinGW and them get Midgard dependencies. Unfortunately not all have pkg-config config files, so you will have to create them to satisfy configure script. It will tell you what is missing.While unpacking dependencies put them into c:\MinGW\ structure to resemble standard FHS - it will save a lot of pain.
For now, you'd better forget about DBus. First, it is not so native as in Unix world, second you will have to build dbus-glib package on your own. To make Winland running you don't require DBus at all.
./configure && make && make install
Yes, that spell works here too, however until #1030 is fixed you need wrap lines #184 and #284 of src/midgard_connection.c with the following
#ifndef HAVE_LIBGDA_4
#endif
I suggest something like ./configure --with-libgda4 --without-dbus-support --prefix=c:/midgard2 command to prepare. This will disable DBus, enable libgda4 and put all stuff into c:\midgard2 based FHS structure.
TODO: Make Piotras install dependecies in $prefix path :) It is Windows, so you need all depending DLLs in bin folder under $prefix.
OK. Let's recap: environment built, dependecies installed, core compiled and installed. Next step: try it.
Configuring and running
I have tested Winland with SQLite so far. To make it run you need to create a config directory under C:\Documents and Settings\your_user eg. C:\Documents and Settings\solt\.midgard-2.0\conf.d. Using your favourite notepad.exe (joke) create midgard unified configuration file. You can use $prefix\etc\* files for reference. For initials tests use SQLite as DB provider.
With your configuration done, go to $prefix\bin and run midgard-schema.exe. If you are running XP you *may* encounter an application hang. This is probably caused by threads implementation and fact that sometimes Midgard tries to gda_init() more than once. This have to be addressed by our most valuable engineer, but till then it is safe to set env variable LIBGDA_NO_THREADS to any value (I prefer 'yes'). This will make GDA not using threads. I haven't faced that issue on Vista nor Win2003.
So... If you read this it means you have build and installed Winland on your computer and successfully initialized SQLite database. Now it is up to you what you gonna do about that :D Have fun!