From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10130 invoked by alias); 1 Nov 2011 20:40:06 -0000 Received: (qmail 10115 invoked by uid 22791); 1 Nov 2011 20:40:04 -0000 X-SWARE-Spam-Status: No, hits=3.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,TW_BX,TW_IB,TW_KB,TW_XC,TW_XK X-Spam-Check-By: sourceware.org Received: from mail-gy0-f171.google.com (HELO mail-gy0-f171.google.com) (209.85.160.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Nov 2011 20:39:50 +0000 Received: by gyf3 with SMTP id 3so1133133gyf.2 for ; Tue, 01 Nov 2011 13:39:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.243.9 with SMTP id q9mr335100anh.52.1320179989228; Tue, 01 Nov 2011 13:39:49 -0700 (PDT) Received: by 10.100.141.19 with HTTP; Tue, 1 Nov 2011 13:39:49 -0700 (PDT) Date: Tue, 01 Nov 2011 20:40:00 -0000 Message-ID: Subject: Built XWin on mingw - with patches From: Ryan Pavlik To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2011-11/txt/msg00003.txt.bz2 All, Not sure if this is the right forum for this, but it seemed more specific and probably more appropriate than the overall xorg lists. I wanted to build a native windows X server (essentially an open-source Xming). I had to patch a number of the packages along the way, but did eventually arrive at a build that worked. =A0I looked at and used a few of the Xming patches, but only generally went to those when the naive approach didn't work. I'm looking for some feedback on the patches so that they can get into the main line of the projects. I built using mingw-cross-env, with my fork here that includes the dependency packages:=A0https://bitbucket.org/rpavlik/mingw-cross-env/ This builds everything except the xorg-server module (ignore the fact there's an xorg-server makefile there - the patches aren't up to date for that module.) Patches for these dependencies are as follows, in that mingw-cross-env repo (These should all have commit messages from being exported from git format-patch): libX11-1-add-xwinsock-include,=A0libX11-2-windows-threads, libX11-3-MinGW-lacks-caddr_t libXaw-1-need-winsock libXfont-1-dummy-readlink libxcb-1-fix-include-order-with-Xdmcp,=A0libxcb-2-wsastartup=A0- this last one fixes running libX11 apps built for Windows, including the integrated multi-window WM. xkbcomp-1-Use-X11-Xwindows.h,=A0xkbcomp-2-Look-in-windows-base-dir-too=A0- this last one supports the "RELOCATE_PROJECTROOT" option in the XWin server - should still work fine in the normal case though. Then, the xorg-server is here: https://github.com/rpavlik/Xserver/commits/patched-1.11-branch I've tried to make the commits independent, atomic changes. (For some of the patches from XMing, this does mean that I split some patches, and combined some from multiple files, since those patches are offered per-file, not per-topic.) With this, I can run in -rootless or default mode (metacity over ssh forwarding as well as local, patched Fluxbox work great for window managers), as well as -multiwindow, on a Windows 7 machine. This should run fine when installed to its prefix, as well, so I have hopefully not negatively affected a Cygwin build with any of my changes. I've put up some information on the wiki of my github repo, including full build instructions: https://github.com/rpavlik/Xserver/wiki I would appreciate any feedback either through this list, or through comments on the github commits, whichever is easier. A number of the xorg-server patches are not XWin specific, and most are not even XWin on MinGW-specific (that is, they may apply to Cygwin/X as well), so I'd like to see as much as you're comfortable with merged. Thanks for your time! Ryan -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpavlik@iastate.edu http://academic.cleardefinition.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/