« Newsworthy news | Main | SNNS Lives! »

Running Lens on Cygwin

When I attempted to run the neural network package "Light Effiicient Network Simulator" (Lens) on Cygwin, everything appeared to go smoothly except that I had no console interface. Apparently on Cygwin, Lens should default to using a separate console window, but it never appeared.

After working through the source code I eventually stumbled across a solution. I simply added the following line to Src/control.tcl after line 132:

wm deiconify .

This becomes the last line in proc tkConsoleInit so the nearby section of code looks like this:

    .console mark set promptEnd end
    .console mark gravity promptEnd left

    wm deiconify .
}

# tkConsoleSource --
#
# Prompts the user for a file to source in the main interpreter.

I'm certainly no Tcl/Tk programmer, so this was barely more than a wild guess. But after recompiling, Lens now pops up a working Console window that interacts with the main program as you would expect.

For reference, the code base I used was lens-win.tar.gz with lens.src.tar.gz applied over the top.

TrackBack

TrackBack URL for this entry:
http://heath.hrsoftworks.net/cgi-bin/mt-tracker.cgi/117

Post a comment