tag:blogger.com,1999:blog-5568788882760066320.post-76827788080893263672007-03-10T20:15:00.000+01:002007-07-28T20:07:01.090+02:00clbuild on cygwin<b>Step 1: SBCL</b><br/> <br/> Install <a href="http://sbcl.sourceforge.net/platform-table.html">SBCL</a> using its Windows .msi installer.<br/> <br/> <b>Step 2: Cygwin and darcs</b><br/> <br/> Since clbuild is a shell script, you need to install cygwin, even though SBCL itself does not depend on it.<br/> <br/> Get it from <a href="http://www.cygwin.com/setup.exe">cygwin.org</a>. Make sure to select all packages that clbuild uses to download software. You will need at least <b>cvs</b>, <b>subversion</b>, and <b>wget</b>. In addition, you might want to install <b>emacs</b> (for slime) and <b>X</b> (for CLIM with the CLX backend).<br/> <br/> [EDIT: Don't use emacs from cygwin, install the native Windows port of Emacs instead.--2007-06-24]<br/> <br/> Not included with cygwin is <b>darcs</b>, but it has a cygwin port, so download it manually from <a href="http://wiki.darcs.net/DarcsWiki/CategoryBinaries#head-c7910dd98302946c671cf63cb62712589b392074">darcs.net</a> and add it to your $PATH.<br/> <br/> <b>Step 3: clbuild</b><br/> <br/> Cygwin support is new in my clbuild tree, so until another clbuild hacker merges those changes, fetch it from:<br/> <br/> <pre style="background-color: #cccccc">$ darcs get http://www.lichteblau.com/blubba/clbuild </pre><br/> <br/> <b>Step 4: Bleeding edge</b><br/> <br/> ASDF as included with SBCL 1.0.3 does not work with clbuild, so you need to replace it with a version including my patch for Windows shortcut support.<br/> <br/> Download <a href="http://www.lichteblau.com/blubba/shortcut/asdf.lisp">asdf.lisp</a> and <a href="http://www.lichteblau.com/blubba/shortcut/asdf.fasl">asdf.fasl</a> and copy them into the <tt>asdf/</tt> subdirectory of your SBCL installation, replacing the original versions. (<a href="http://www.lichteblau.com/blubba/shortcut/asdf.diff">diff</a>)<br/> <br/> [EDIT: the asdf.fasl linked there isn't up-to-date anymore, but asdf.lisp and asdf.diff are still there, including some fixes. Drop them into your source tree and recompile SBCL. --2007-06-24]<br/> <br/> <b>Run clbuild</b><br/> <br/> That's it. Now just run clbuild:<br/> <br/> <pre style="background-color: #cccccc">$ cd clbuild clbuild$ chmod +x clbuild clbuild$ ./clbuild build </pre> <br/> To run CLIM applications using the CLX backend, start an X server first and set $DISPLAY accordingly. (It appears to be necessary to specify an IP address in $DISPLAY so that CLX does not attempt a unix domain socket connection.)<br/> <br/> <pre style="background-color: #cccccc">clbuild$ X& clbuild$ export DISPLAY=127.0.0.1:0 clbuild$ ./clbuild listener </pre><br/> <br/> <b>Optional: Gtkairo</b><br/> <br/> To try CLIM's gtkairo backend instead, download GTK+ from <a href="http://downloads.sourceforge.net/gimp-win/gtk%2B-2.10.6-1-setup.zip">gimp-win.sf.net</a>. (For some reason, the installer is wrapped in a zip file.)<br/> <br/> Add the <tt>bin</tt> directory of that GTK+ installation to your PATH and configure clbuild to use gtkairo:<br/> <br/> <pre style="background-color: #cccccc">clbuild$ export PATH="/cygdrive/c/Programme/gtk-2.10/bin:$PATH" clbuild$ export CLIM_BACKEND=gtkairo clbuild$ ./clbuild listener </pre><br/> <br/> <a href="http://www.lichteblau.com/blubba/shortcut/listener-windows.png">ObScreenshot</a> of the listener.<br/> <br/> (Expect to find some gtkairo/Windows repainting bugs though.)David Lichteblauhttp://www.blogger.com/profile/05088343424853670990noreply@blogger.com