Native win32 port of libX11 using MinGW - help pls

Jeetu Golani jeetu.golani at gmail.com
Wed Mar 12 20:35:45 PDT 2008


I'd sent this mail earlier but I don't know if it made it to the list
- am new to this list and i haven't received a copy of the mail i sent
earlier - maybe moderated? if it's gone thru I apologize for this
duplicate mail


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.

 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 sections....so 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 results....it'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 possible....it's probably
 already been done......am 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