Compare commits

...

6 Commits

Author SHA1 Message Date
Kevin Pfeifer 3d43189b54
Merge 2d5d60ae93 into 2179ca2a41 2024-09-18 14:23:03 -07:00
CasualPokePlayer 2179ca2a41
Set the correct save type for Puzzler World USA (#2156)
Fixes #1804
2024-09-18 20:58:55 +02:00
Kevin Pfeifer 2d5d60ae93 readd win-arm static instructions 2023-12-25 06:34:57 +01:00
Kevin Pfeifer b9b5ddf6e9 remove win-arm static instructions 2022-12-08 13:49:00 +00:00
Kevin Pfeifer b610722fac get current toolchain from gcc output 2022-12-03 02:47:27 +01:00
Kevin Pfeifer 67b78f0c25 add instructions for win on arm 2022-12-03 02:46:53 +01:00
3 changed files with 37 additions and 4 deletions

View File

@ -83,6 +83,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. 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 ### macOS
1. Install the [Homebrew Package Manager](https://brew.sh) 1. Install the [Homebrew Package Manager](https://brew.sh)
2. Install dependencies: `brew install git pkg-config cmake sdl2 qt@6 libarchive enet zstd` 2. Install dependencies: `brew install git pkg-config cmake sdl2 qt@6 libarchive enet zstd`

View File

@ -1830,7 +1830,7 @@ const ROMListEntry ROMList[] =
{0x45564E43, 0x10000000, 0x00000005}, {0x45564E43, 0x10000000, 0x00000005},
{0x45564F59, 0x00800000, 0x00000001}, {0x45564F59, 0x00800000, 0x00000001},
{0x45565041, 0x00800000, 0x00000002}, {0x45565041, 0x00800000, 0x00000002},
{0x45565042, 0x00800000, 0x00000004}, {0x45565042, 0x00800000, 0x00000002},
{0x45565043, 0x04000000, 0x00000002}, {0x45565043, 0x04000000, 0x00000002},
{0x45565056, 0x04000000, 0x00000002}, {0x45565056, 0x04000000, 0x00000002},
{0x45565059, 0x04000000, 0x00000001}, {0x45565059, 0x04000000, 0x00000001},
@ -6804,4 +6804,4 @@ const ROMListEntry ROMList[] =
const size_t ROMListEntryCount = sizeof(ROMList) / sizeof(ROMListEntry); const size_t ROMListEntryCount = sizeof(ROMList) / sizeof(ROMListEntry);
} }

View File

@ -6,8 +6,8 @@ if [[ ! -x melonDS.exe ]]; then
fi fi
mkdir -p dist mkdir -p dist
tool=$(gcc -v 2>&1 | head -1 | awk '{print $1}')
for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do for lib in $(ldd melonDS.exe | grep $tool | sed "s/.*=> //" | sed "s/(.*)//"); do
cp "${lib}" dist cp "${lib}" dist
done done