Hello all.
Is there any supported way to build programs supplied with Wine, e.g. `dxdiag` or `regedit`, for native Windows? There seems to be a `crosstest` target, but it appears to only build tests, not all the programs and libraries.
Regards, Ruslan
Ruslan Kabatsayev b7.10110111@gmail.com writes:
Hello all.
Is there any supported way to build programs supplied with Wine, e.g. `dxdiag` or `regedit`, for native Windows? There seems to be a `crosstest` target, but it appears to only build tests, not all the programs and libraries.
You can do a full cross-compilation build. Something like:
configure --host=i686-w64-mingw32 --with-wine-tools=<native-build-dir>
On Wed, Aug 10, 2016 at 4:39 PM, Alexandre Julliard julliard@winehq.org wrote:
Ruslan Kabatsayev b7.10110111@gmail.com writes:
Hello all.
Is there any supported way to build programs supplied with Wine, e.g. `dxdiag` or `regedit`, for native Windows? There seems to be a `crosstest` target, but it appears to only build tests, not all the programs and libraries.
You can do a full cross-compilation build. Something like:
configure --host=i686-w64-mingw32 --with-wine-tools=<native-build-dir>
Thanks, this allows to build almost everything successfully, but I have 5 compilation errors from make -k. What am I missing here? For linux (to get the tools) the compilation succeeded completely. Here's the filtered console output of Win32 build:
~/packages/wine/for-win32 $ make -j1 -k |& grep -B8 -A3 error: make[1]: Entering directory `/home/ruslan/packages/wine/for-win32/dlls/windowscodecs' i686-w64-mingw32-gcc -c -o icnsformat.o ../../../dlls/windowscodecs/icnsformat.c -I. -I../../../dlls/windowscodecs \ -I../../include -I../../../include -I/usr/include/x86_64-linux-gnu -D__WINESRC__ -D_REENTRANT \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \ -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -D_WIN32 In file included from ../../../include/wine/port.h:37:0, from ../../../dlls/windowscodecs/icnsformat.c:20: /usr/include/x86_64-linux-gnu/sys/types.h:25:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. make[1]: *** [icnsformat.o] Error 1 i686-w64-mingw32-gcc -c -o jpegformat.o ../../../dlls/windowscodecs/jpegformat.c -I. -I../../../dlls/windowscodecs \ -I../../include -I../../../include -I/usr/include/x86_64-linux-gnu -D__WINESRC__ -D_REENTRANT \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \ -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -D_WIN32 In file included from ../../../include/wine/port.h:37:0, from ../../../dlls/windowscodecs/jpegformat.c:20: /usr/include/x86_64-linux-gnu/sys/types.h:25:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. make[1]: *** [jpegformat.o] Error 1 i686-w64-mingw32-gcc -c -o pngformat.o ../../../dlls/windowscodecs/pngformat.c -I. -I../../../dlls/windowscodecs \ -I../../include -I../../../include -I/usr/include/x86_64-linux-gnu -D__WINESRC__ -D_REENTRANT \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \ -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -D_WIN32 In file included from ../../../include/wine/port.h:37:0, from ../../../dlls/windowscodecs/pngformat.c:20: /usr/include/x86_64-linux-gnu/sys/types.h:25:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. make[1]: *** [pngformat.o] Error 1 i686-w64-mingw32-gcc -c -o tgaformat.o ../../../dlls/windowscodecs/tgaformat.c -I. -I../../../dlls/windowscodecs \ -I../../include -I../../../include -I/usr/include/x86_64-linux-gnu -D__WINESRC__ -D_REENTRANT \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \ -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -D_WIN32 In file included from ../../../include/wine/port.h:37:0, from ../../../dlls/windowscodecs/tgaformat.c:20: /usr/include/x86_64-linux-gnu/sys/types.h:25:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. make[1]: *** [tgaformat.o] Error 1 i686-w64-mingw32-gcc -c -o tiffformat.o ../../../dlls/windowscodecs/tiffformat.c -I. -I../../../dlls/windowscodecs \ -I../../include -I../../../include -I/usr/include/x86_64-linux-gnu -D__WINESRC__ -D_REENTRANT \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \ -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \ -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -D_WIN32 In file included from ../../../include/wine/port.h:37:0, from ../../../dlls/windowscodecs/tiffformat.c:20: /usr/include/x86_64-linux-gnu/sys/types.h:25:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated.
-- Thanks, Ruslan
-- Alexandre Julliard julliard@winehq.org
Ruslan Kabatsayev b7.10110111@gmail.com writes:
On Wed, Aug 10, 2016 at 4:39 PM, Alexandre Julliard julliard@winehq.org wrote:
Ruslan Kabatsayev b7.10110111@gmail.com writes:
Hello all.
Is there any supported way to build programs supplied with Wine, e.g. `dxdiag` or `regedit`, for native Windows? There seems to be a `crosstest` target, but it appears to only build tests, not all the programs and libraries.
You can do a full cross-compilation build. Something like:
configure --host=i686-w64-mingw32 --with-wine-tools=<native-build-dir>
Thanks, this allows to build almost everything successfully, but I have 5 compilation errors from make -k. What am I missing here? For linux (to get the tools) the compilation succeeded completely. Here's the filtered console output of Win32 build:
You may need to pass something like PKG_CONFIG=false to configure, though this should be handled automatically in recent Wine.
On Wed, Aug 10, 2016 at 5:50 PM, Alexandre Julliard julliard@winehq.org wrote:
Ruslan Kabatsayev b7.10110111@gmail.com writes:
On Wed, Aug 10, 2016 at 4:39 PM, Alexandre Julliard julliard@winehq.org wrote:
Ruslan Kabatsayev b7.10110111@gmail.com writes:
Hello all.
Is there any supported way to build programs supplied with Wine, e.g. `dxdiag` or `regedit`, for native Windows? There seems to be a `crosstest` target, but it appears to only build tests, not all the programs and libraries.
You can do a full cross-compilation build. Something like:
configure --host=i686-w64-mingw32 --with-wine-tools=<native-build-dir>
Thanks, this allows to build almost everything successfully, but I have 5 compilation errors from make -k. What am I missing here? For linux (to get the tools) the compilation succeeded completely. Here's the filtered console output of Win32 build:
You may need to pass something like PKG_CONFIG=false to configure, though this should be handled automatically in recent Wine.
Thanks, this worked.
-- Alexandre Julliard julliard@winehq.org