From 413c0db7c03c8dbf2b232387fdd1e899e73ed3d7 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 25 Feb 2025 04:12:17 +0100 Subject: [PATCH] ci: fix MSYS2 build --- .github/workflows/build.yml | 2 +- CMakeLists.txt | 1 + README.md | 2 +- cmake/Deploy.cmake | 10 +++++----- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d712403d..68390f11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: - uses: eine/setup-msys2@v2 with: update: true - install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-pcre mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb mingw-w64-x86_64-unbound git mingw-w64-x86_64-qt5 mingw-w64-x86_64-libgcrypt + install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-pcre mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb mingw-w64-x86_64-unbound git mingw-w64-x86_64-qt5 mingw-w64-x86_64-libgcrypt mingw-w64-x86_64-angleproject - name: build run: DEV_MODE=ON make release-win64 -j2 - name: deploy diff --git a/CMakeLists.txt b/CMakeLists.txt index df41459f..d38fb377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) get_directory_property(ARCH_WIDTH DIRECTORY "monero" DEFINITION ARCH_WIDTH) +get_directory_property(Boost_VERSION_STRING DIRECTORY "monero" DEFINITION Boost_VERSION_STRING) if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DQT_NO_DEBUG) diff --git a/README.md b/README.md index 16fa8a97..32759045 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ The Monero GUI on Windows is 64 bits only; 32-bit Windows GUI builds are not off 3. Install MSYS2 packages for Monero dependencies; the needed 64-bit packages have `x86_64` in their names ``` - pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb mingw-w64-x86_64-libgcrypt mingw-w64-x86_64-unbound mingw-w64-x86_64-pcre + pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb mingw-w64-x86_64-libgcrypt mingw-w64-x86_64-unbound mingw-w64-x86_64-pcre mingw-w64-x86_64-angleproject ``` You find more details about those dependencies in the [Monero documentation](https://github.com/monero-project/monero). Note that that there is no more need to compile Boost from source; like everything else, you can install it now with a MSYS2 package. diff --git a/cmake/Deploy.cmake b/cmake/Deploy.cmake index b972b3e5..b4d607a2 100644 --- a/cmake/Deploy.cmake +++ b/cmake/Deploy.cmake @@ -96,11 +96,11 @@ if(APPLE OR (WIN32 AND NOT STATIC)) libssl-3-x64.dll libcrypto-3-x64.dll #icu - libicudt74.dll - libicuin74.dll - libicuio74.dll - libicutu74.dll - libicuuc74.dll + libicudt76.dll + libicuin76.dll + libicuio76.dll + libicutu76.dll + libicuuc76.dll ) # Boost Regex is header-only since 1.77