new old winetests

Ferenc Wagner wferi at afavant.elte.hu
Fri Nov 28 07:08:32 CST 2003


Alexandre Julliard <julliard at winehq.org> writes:

> Ferenc Wagner <wferi at afavant.elte.hu> writes:
>
>> Has a problem, indeed:
>> ../../include/wine/port.h:87: dlfcn.h: No such file or directory
>
> That's because if you want to cross-compile you need to
> cross-configure too. The crosstest stuff is a hack that works
> because the tests don't use Wine-specific features, but it cannot
> be generalized to the rest of the tree.
>
> The right way to do it is to create two separate build trees, one in
> which you compile normally and one in which you cross-compile.
> Something like this (assuming your Wine source is in wine-src):
>
> mkdir wine-elf; cd wine-elf
> ../wine-src/configure
> make depend; make
> cd ..
> mkdir wine-pe; cd wine-pe
> ../wine-src/configure --host=i586-mingw32msvc --with-wine-tools=../wine-elf
> make depend; make
>
> (a few dlls won't build with mingw, you can just skip them).

Is not

#ifdef _WIN32
#  include <io.h>
#  include <process.h>
#else
#  include "config.h"
#  include "wine/port.h"
#  define mkdir(d) mkdir (d, 0777)
#endif

an acceptable workaround?  This should be compilable even
with MSVC after all, and Dimi has already invented all the
magic needed for a successful make winetests_cross.exe.

Feri.



More information about the wine-devel mailing list