From def79dd7bd84a6b258a7cab0ad1cd2d0948720a0 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 24 Oct 2024 17:10:47 +0200 Subject: [PATCH] readme: fix win64 cross-compile requirements --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 653a1a389..31f257a4e 100644 --- a/README.md +++ b/README.md @@ -560,9 +560,12 @@ You can also cross-compile static binaries on Linux for Windows and macOS with t * ```make depends target=x86_64-linux-gnu``` for 64-bit linux binaries. * ```make depends target=x86_64-w64-mingw32``` for 64-bit windows binaries. - * Requires: `python3 g++-mingw-w64-x86-64 wine1.6 bc` - * You also need to run: -```update-alternatives --set x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++-posix && update-alternatives --set x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc-posix``` + * Requires: `g++-mingw-w64-x86-64` + * You also need to run: + ```shell + update-alternatives --set x86_64-w64-mingw32-g++ $(which x86_64-w64-mingw32-g++-posix) && \ + update-alternatives --set x86_64-w64-mingw32-gcc $(which x86_64-w64-mingw32-gcc-posix) + ``` * ```make depends target=x86_64-apple-darwin``` for macOS binaries. * Requires: `cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev` * ```make depends target=i686-linux-gnu``` for 32-bit linux binaries.