Building crosstest ...

Paul Millar paulm at astro.gla.ac.uk
Tue Feb 4 03:08:02 CST 2003


Hi everyone,

Apologies for the rambling email, but here's a bit of a brain-dump.  I 
don't know how much of this people already know about ...

After banging my head against a wall for the past week or so, I've put
together a script that builds a cross-compiling mingw.  The cross-compiler
should be suitable for building .EXE conformance test executables and is
available from:
   http://www.astro.gla.ac.uk/users/paulm/Scripts/build-mingw-cross.sh
Have a look at the top of the script to see how to get things working.
(yes, I know /. has just done this, but their HOWTO is old, circa '99)

That should be enough to get mingw for cross-compiling under wine, but
there's still problems with the crosstest target for me.

Using the current CVS, crosstest depends on winebuild.  But the
cross-compilation doesn't actually use winebuild.  Worse, it fails whilst
trying to building winebuild (missing libraries), if you haven't already
built wine.  I guess winebuild is missing some dependencies.

A simple patch:
---
Index: dlls/Makefile.in
===================================================================
RCS file: /home/wine/wine/dlls/Makefile.in,v
retrieving revision 1.168
diff -u -r1.168 Makefile.in
--- dlls/Makefile.in	24 Jan 2003 01:08:15 -0000	1.168
+++ dlls/Makefile.in	4 Feb 2003 00:15:22 -0000
@@ -1181,7 +1181,6 @@
 x11drv/x11drv.spec.def: $(WINEBUILD)
 
 $(SUBDIRS): $(IMPORT_LIBS:%=%.$(IMPLIBEXT))
-$(SUBDIRS:%=%/__crosstest__): $(IMPORT_LIBS:%=%.a)
 
 # Map library name to the corresponding directory

--- 
fixes this, although I'm not 100% its correct.  It stops the .a 
libraries from being built, but are they needed for crosstest?

After this, it builds the advapi32 tests ok, but there's problems parsing
the files include/winsock{,2}.h when it tries to build the dsound tests...

Just thought people would be interested.

----
Paul Millar











More information about the wine-devel mailing list