1) At the top of the following page is a list of packages that are required for compiling Cygwin/X. I recommend putting setup.exe in "Full" view and just scanning the lists next two each other... it should only take a few seconds to pick all of the packages... if it takes longer you are trying too hard.
http://x.cygwin.com/docs/cg/prog-build-native.html
2) Next, you need to grab the source packages via setup.exe for the following (click the blank box in the "src" column for each of these packages, it should turn to either a cross or an na (yes, that is dumb, but that it what it does)).:
XFree86-base XFree86-bin XFree86-fenc XFree86-fnts XFree86-fscl XFree86-man XFree86-prog XFree86-xserv
3) Cut and paste the following little ditty into a Cygwin bash shell. It should finish in around than two hours, maybe more if you are slower than an Athlon 1.2 GHz/512 MB RAM/7200 RPM HD. After about 5 to 15 minutes you should see a file called /usr/src/build.log get created and it will grow to about 3.4 MB before it is done. Then /usr/src/install.log will get created and will grow to about 1.3 MB before it is done. Then you will see lots of output in the console and the final result should be less than 30 minutes away and should look like a tar command ending (because it is).
cd /usr/src && \ cp xc/CYGWIN-PATCHES/XFree86-4.3.0.sh . && \ ./XFree86-4.3.0.sh mkdirs && \ ./XFree86-4.3.0.sh conf && \ ./XFree86-4.3.0.sh build > build.log 2>&1 && \ ./XFree86-4.3.0.sh install > install.log 2>&1 && \ ./XFree86-4.3.0.sh strip && \ ./XFree86-4.3.0.sh pkg && \ ./XFree86-4.3.0.sh spkg
4) If you want to perform a clean rebuild, just run the following command first before repeating step #3. Beware that removing thousands of files on my machine takes between 5 and 25 minutes (it varies for some reason) and could take up to an hour if the Windows machine is particularly slow. Of course, Linux with ResierFS completes this operation immediately.
cd /usr/src && \ ./XFree86-4.3.0.sh quickclean
Harold
