Native win32 port of libX11 using MinGW - help pls

Anders Norgaard anders.norgaard at
Thu Mar 13 13:48:21 PDT 2008

On Thu, 13 Mar 2008 00:02:14 +0530, Jeetu Golani wrote:

> Hi everyone,
> I've been trying to port libX11 to win32 since I'd like to have xclients
> running natively under windows. I'd prefer not using Cygwin and to have
> this native.

Do you know


> As test case to see how tall an order this is - if a huge rewrite would
> be required - I wrote a test XClient and manually started to get Xlib to
> statically compile/link against this i,e compiling each source file and
> physically linking the object files together and then seeing what else
> is required till it all compiles.
> The result - the code works however since I didn't have the correct
> definitions and I'm not using a Makefile (did not include XCB settings
> etc)....I had to hack into the Xlib a little and comment out problematic
> I know the Xlib source has thigns necessary to work under
> Windows if I could only make it correctly with the correct defines,etc.
> Checking online I realized that someone (Alexander Gottwald) has
> mentioned, way back in 2004, that he's added support for win32(mingw) in
> libX11....however I can no longer find the build steps required.
> I've tried cross compiling under linux passing the
> --host=i586-mingw32msvc configure param......with absolutely devastating
>'s obvious it's not as simple as that.
> Talking on the xorg IRC brought up an interesting point that if
> Alexander Gottwald had added support for MinGW back in 2004 it could be
> in the earlier imake mechanism and not in the current autoconf based
> mechanism.
> I'd sincerely appreciate any help explaining how I could get the code to
> compile native using MinGW....I know it's's probably
> already been willing to put in all the required effort but
> quite honestly i need guidance....pls help.
> Bye for now

More information about the xorg mailing list