On Apr 19, 2008, at 8:24 PM, Johannes Schindelin wrote:
On Sat, 19 Apr 2008, Steffen Prohaska wrote:
On Apr 13, 2008, at 8:28 PM, Johannes Schindelin wrote:
msys_p2w() is a major annoyance for me since quite some time, so I'd
rather fix that.
What is needed to do this? I haven't yet built MSYS myself. Could
you
send pointers to the instructions needed to do so?
AFAICT it should be very similar to the rxvt recipe I checked in a
while
ago. Only that you have to get msys via git (manual cvs2git mirror on
repo.or.cz) or via cvs.
But it may be more involved than that.
Oh, and you have to check out the work/msys branch. And make sure to
restart msysGit (otherwise you will be in a MinGW environment, not
an MSys
environment).
I hit an error that I do not understand. I did
cd src
mkdir rt
cd rt
cvs checkout msys/rt as explained on msys' Sourceforge page
cd msys/rt
mkdir build
cd build
../src/configure
make
I needed to add an extern decl to make the compiler happpy:
-- 8< --
diff --git a/src/winsup/cygwin/tty.cc b/src/winsup/cygwin/tty.cc
index aa97b72..10e99b6 100644
--- a/src/winsup/cygwin/tty.cc
+++ b/src/winsup/cygwin/tty.cc
@@ -199,6 +199,8 @@ tty_list::init (void)
}
}
+extern "C" HWND GetConsoleWindow();
+
/* Search for tty class for our console. Allocate new tty if our
process is
the only cygwin process in the current console.
Return tty number or -1 if error.
-- >8 --
But now "mingw32-g++" is needed. I guess this is a special version of
g++
needed for compiling mingw? Anyway, its installation seems to be
broken:
mingw32-g++ -g -O2 -I/usr/include/mingw -I/src/rt/msys/rt/src/winsup/
cygwin/include -I/src/rt/msys/rt/src/winsup/w32api/include -o
strace.exe ../../../../src/winsup/utils/strace.cc mingw_getopt.o -B/
usr/lib/mingw
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such
file or directory
It is the first time I work with the msys branch, so maybe someone can
help me.
Can I expect that mingw32-g++ works on the msys branch or is something
else needed?
Steffen