Re: clg in windows xp

Leandro RĂ­os <[email protected]> Tue, 18 Mar 2008 14:14:28 -0300
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>

Chisheng Huang escribi=F3:
> Hi Leandro,
>
> I'm the culprit responsible for polluting the clg source code with
> a bunch of WIN32's:)  Sorry about replying this late; I was attending
> a meeting for a few days.  I have't run clg on a Micros*t machine for
> more than half a year.  I didn't even remember how to run it a few
> minutes ago until I dug out a message I sent to Espen.  Here is part
> of that message that might be of some help:
>
>   In order to use GTK+ and clg on MS Windows machines, one has to download
>     1. The various runtimes available at
>        http://www.gimp.org/~tml/gimp/win32/downloads.html
>     2. mingw-utils-0.3.tar.gz from http://www.mingw.org/.
>        The function pexports.exe in this tar archive is needed in =

>        GLIB:%FIND-TYPES-IN-LIBRARY because nm from either cygwin or mingw =

>        gives out junk.  I'm not sure mingw-utils-0.3.tar.gz can be instal=
led
>        without installing MinGW first; so, one may have to download and i=
nstall
>        MinGW, too.
>
>   Finally, some notes about the win32 version of SBCL.   I tried many ways
>   to run clg with win32 SBCL and only found 1 way that won't throw me into
>   the LDB monitor:(
>     A. Create a .sbclrc like the following:
>          (load "d:/....../slime/swank-loader")
>          (swank:create-server)
>     B. Fire up Emacs and do M-x slime-connnect.
>     C. Once the connection is established, evaluate the followings:
>
>        (setf (logical-pathname-translations "clg")
>              '(("**;*.*.*" "d:\\......\\clg\\**\\")))
>
>        (loop for pathname in '("clg:atk;" "clg:cairo;" "clg:tools;"
>                                "clg:gdk;" "clg:gffi;" "clg:glade-xml;"
>                                "clg:glib;" "clg:gtk;" "clg:pango;"
>                                "clg:rsvg;")
>              do (push (translate-logical-pathname pathname)
>                       asdf:*central-registry*))
>
>        (asdf:oos 'asdf:load-op :gtk)
>        (load "d:\\......\\clg\\examples\\testgtk")
>
>   So far, I haven't managed to run clg directly in the black win32 SBCL
>   window.  No matter what I tried, I got into the LDB monitor quickly.
>
> You have to use an explicit main loop and it's kind of brutal to run =

> sbcl/clg on Micros*t machines.  I'll try the latest clg and the latest
> SBCL for Win32 this week.  =

>
> Best wishes,
>
> -cph
>
>   =

Hi Chisheng,

Thanks for your answer. I've been able to compile clg, and to run =

test-gtk, but an explicit main loop must be started, which renders =

slime's repl unusable.

I tried to hook main-iterate-all to the periodic polling function on the =

swank server, but I found that all of the non-blocking stream reads in =

fact, block. The best I was able to do in this route was to have a main =

loop iteration for every return pressed in the repl. That rendered clg =

unusable.

So, it seems that until we have proper socket (non blocking reads) or =

threading support in sbcl win32, (or serve-event, or timers) we'll have =

to live with the explicit main loop.

Thanks,

Leandro






-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/