Running the Win32 ports of SciTECO using Wine - rhaberkorn/sciteco GitHub Wiki
SciTECO Windows builds will also work in Wine. This is useful when cross-compiling, developing and debugging the Windows port under Linux.
- The GTK+ port is completely untested on Windows (including Wine).
- The PDCurses/win32a port should work without additional precautions. You will however need to have
gspawn-win32-helper.exe
in the same directory assciteco.exe
instead ofgspawn-win32-helper-console.exe
, even thoughsciteco.exe
is still linked as a console application for PDCurses/win32a. - ncurses for MinGW somewhat works. Setting
LINES
andCOLS
as described below is not necessary for that port. However, you may encounter problems with the window size if Wine allocates a too large screen buffer for the program - SciTECO does currently not react to screen buffer changes on ncurses/MinGW and PDCurses/win32.
To run the PDCurses win32 port (plain console mode application), you must launch the application using wineconsole
and specify the LINES
and COLS
environment variables (may be a bug in Wine or PDCurses):
$ LINES=25 COLS=80 wineconsole sciteco.exe
This will create an X11 window emulating the Windows console. Specifying wineconsole --backend=curses
enables a console emulation using Curses. In either case, SciTECO will not react to window size changes and stay at 25 lines and 80 columns.
Cross-debugging under Wine
It is possible to cross-debug the Windows port under Linux using the cross-gdb and native win32 gdbserver.exe
that comes with your MinGW64 toolchain.
To do that, simply run the gdbserver.exe
under Wine like this:
$ LINES=25 COLS=80 wineconsole /usr/share/win32/gdbserver :8000 sciteco.exe
This also works with stripped binaries. In another console load the sciteco.exe
(with debugging symbols!) into the cross debugger (usually i686-w64-mingw32-gdb
) and connect to the server via target remote :8000
.