From 67b78f0c255083479b723fb3f7c4c1a552601b15 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sat, 3 Dec 2022 02:46:53 +0100 Subject: [PATCH 1/4] add instructions for win on arm --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index f7b0d30d..d84d8746 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,39 @@ If everything went well, melonDS and the libraries it needs should now be in the ``` If everything went well, melonDS should now be in the `build` folder. +### Windows on ARM +1. Install [MSYS2](https://www.msys2.org/) +2. Open the **MSYS2 MinGW 64-bit** terminal and set it up according to [this page](https://www.msys2.org/wiki/arm64/). (ARM64 Support) +3. Update the packages using `pacman -Syu` and reopen the terminal if it asks you to +4. Install git to clone the repository + ```bash + pacman -S git + ``` +5. Download the melonDS repository and prepare: + ```bash + git clone https://github.com/melonDS-emu/melonDS + cd melonDS + ``` +#### Dynamic builds (with DLLs) +5. Install dependencies: `pacman -S mingw-w64-clang-aarch64-{cmake,SDL2,toolchain,qt5-base,qt5-tools,qt5-svg,qt5-multimedia,libslirp,libarchive}` +6. Compile: + ```bash + cmake -B build + cmake --build build + cd build + ../tools/msys-dist.sh + ``` +If everything went well, melonDS and the libraries it needs should now be in the `dist` folder. + +#### Static builds (without DLLs, standalone executable) +5. Install dependencies: `pacman -S mingw-w64-clang-aarch64-{cmake,SDL2,toolchain,qt5-static,qt5-tools,libslirp,libarchive}` +6. Compile: + ```bash + cmake -B build -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=/clangarm64/qt5-static + cmake --build build + ``` +If everything went well, melonDS should now be in the `build` folder. + ### macOS 1. Install the [Homebrew Package Manager](https://brew.sh) 2. Install dependencies: `brew install git pkg-config cmake sdl2 qt@6 libslirp libarchive` From b610722fac7cc54a928e4103567f2679d56b4bc3 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sat, 3 Dec 2022 02:47:27 +0100 Subject: [PATCH 2/4] get current toolchain from gcc output --- tools/msys-dist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/msys-dist.sh b/tools/msys-dist.sh index d95a6d3e..31e55fb8 100755 --- a/tools/msys-dist.sh +++ b/tools/msys-dist.sh @@ -6,8 +6,8 @@ if [[ ! -x melonDS.exe ]]; then fi mkdir -p dist - -for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do +tool=$(gcc -v 2>&1 | head -1 | awk '{print $1}') +for lib in $(ldd melonDS.exe | grep $tool | sed "s/.*=> //" | sed "s/(.*)//"); do cp "${lib}" dist done From b9b5ddf6e96bd86f0c91bef0379b13a711211faf Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Thu, 8 Dec 2022 13:49:00 +0000 Subject: [PATCH 3/4] remove win-arm static instructions --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index d84d8746..1829b12d 100644 --- a/README.md +++ b/README.md @@ -108,15 +108,6 @@ If everything went well, melonDS should now be in the `build` folder. ``` If everything went well, melonDS and the libraries it needs should now be in the `dist` folder. -#### Static builds (without DLLs, standalone executable) -5. Install dependencies: `pacman -S mingw-w64-clang-aarch64-{cmake,SDL2,toolchain,qt5-static,qt5-tools,libslirp,libarchive}` -6. Compile: - ```bash - cmake -B build -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=/clangarm64/qt5-static - cmake --build build - ``` -If everything went well, melonDS should now be in the `build` folder. - ### macOS 1. Install the [Homebrew Package Manager](https://brew.sh) 2. Install dependencies: `brew install git pkg-config cmake sdl2 qt@6 libslirp libarchive` From 2d5d60ae9382c230945a51cff9f4295d66d61f7e Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Mon, 25 Dec 2023 06:34:57 +0100 Subject: [PATCH 4/4] readd win-arm static instructions --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1829b12d..d84d8746 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,15 @@ If everything went well, melonDS should now be in the `build` folder. ``` If everything went well, melonDS and the libraries it needs should now be in the `dist` folder. +#### Static builds (without DLLs, standalone executable) +5. Install dependencies: `pacman -S mingw-w64-clang-aarch64-{cmake,SDL2,toolchain,qt5-static,qt5-tools,libslirp,libarchive}` +6. Compile: + ```bash + cmake -B build -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=/clangarm64/qt5-static + cmake --build build + ``` +If everything went well, melonDS should now be in the `build` folder. + ### macOS 1. Install the [Homebrew Package Manager](https://brew.sh) 2. Install dependencies: `brew install git pkg-config cmake sdl2 qt@6 libslirp libarchive`