From 20a44db0759aca85d7b8c9b2c2656d1be872d807 Mon Sep 17 00:00:00 2001 From: hi20160616 <74967912+hi20160616@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:32:33 +0800 Subject: [PATCH] Update README.md section Ubuntu I'd try and pass test for cross-compile on ubuntu to windows i386 and x86_64, my case: https://github.com/hi20160616/robotclick/blob/main/.github/workflows/goreleaser.yml I dig and read many issues here, and collect the right way to cross-compile for windows binary. I think it will help someone like me to fix bugs while cross compile. like error `zlib.h cannot find out` usually because of we installed it via source, that not useful on **mingw-w64**. I also suggest this update to let newbee easy to use this grand code. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9d5ef10..1f41ddd 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ sudo apt install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x1 sudo apt install libxkbcommon-dev sudo apt install xsel xclip + +sudo apt-get install gcc-multilib +sudo apt-get install gcc-mingw-w64 +sudo apt install libz-mingw-w64-dev ``` #### Fedora: