From fee645c61ec8005071987009b0c266cb0374d4aa Mon Sep 17 00:00:00 2001 From: pizzzza19 Date: Sun, 7 Jun 2026 10:14:32 +0900 Subject: [PATCH 1/5] [readme.md] cmake on vs2026 typo fix cmake command Additional explain for GUI build --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2508fafd37..1d74f94292 100644 --- a/README.md +++ b/README.md @@ -151,17 +151,21 @@ To build for Windows you will need to have CMake installed on your system. ``` ``` # Not specifying -G will automatically generate 32-bit projects. - cmake .. -G "Visual Studio 18 2026 Win64" -DCMAKE_PREFIX_PATH="C:\Qt\6.10.2\msvc2022_64" + cmake .. -G "Visual Studio 18 2026" -DCMAKE_PREFIX_PATH="C:\Qt\6.xx.x\msvc2022_64" ``` -For Visual Studio 2026 solution, just double click on `Play.slnx` in "build" folder and follow GUI instructions. - You can now build the project by opening the generated Visual Studio Solution or continue through cmdline: ```cmd cmake --build . --config Release ``` Note: `--config` can be `Release`, `Debug`, or `RelWithDebInfo`. +### For Visual Studio 2026 solution ### +* Make sure you have installed msvc2022 plugin in `C:\QT\6.xx\msvc2022_64` and remember your Qt6 version. +* Open `CMakePresets.json` and overwrite your Qt6 version in "CMAKE_PREFIX_PATH" (line 48). +* After VS2026 configured and loaded cmake, `Play.slnx` automatically generated. +* Select `Play.exe` and follow GUI instructions. + ### Building for macOS & iOS ### If you don't have CMake installed, you can install it using [Homebrew](https://brew.sh) with the following command: ```bash From 925ef6193806094fadbe7218040e845de9de5735 Mon Sep 17 00:00:00 2001 From: pizzzza19 Date: Sun, 7 Jun 2026 10:23:39 +0900 Subject: [PATCH 2/5] [CMakePresets.json] cmake preset fix for Qt6 with vs2026 This preset already optimzed to Qt6 with vs2026 so no need error correction when using Qt6. vs2022 users, please update to vs2026. --- CMakePresets.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index ee19c84970..f759a216fc 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -3,8 +3,8 @@ "configurePresets": [ { "name": "VS", - "displayName": "Visual Studio 17 2022", - "generator": "Visual Studio 17 2022", + "displayName": "Visual Studio 18 2026", + "generator": "Visual Studio 18 2026", "binaryDir": "${sourceDir}/build_cmake/build/${presetName}", "hidden": true }, @@ -42,6 +42,10 @@ "BUILD_PSFPLAYER": { "type": "BOOL", "value": "ON" + }, + "CMAKE_PREFIX_PATH": { + "type": "PATH", + "value": "C:/Qt/6.11.1/msvc2022_64" } }, "hidden": true From aef8224d0509612c470adc99f85aa366eea1d953 Mon Sep 17 00:00:00 2001 From: pizzzza19 Date: Sun, 7 Jun 2026 14:25:14 +0900 Subject: [PATCH 3/5] [CMakeLists.txt] MacOS 26 Update for MacOS 26 with Xcode 26.5 You won't have error with this fix --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4c2cf6fcf..1fb85738a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) # macOS deployment target needs to be set before 'project' to work if(APPLE AND NOT TARGET_IOS) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") + set(CMAKE_OSX_DEPLOYMENT_TARGET "13.0" CACHE STRING "Minimum OS X deployment version") endif() project(Play) From b24b3553563379f1788954b4cf85a00c5bcafdf1 Mon Sep 17 00:00:00 2001 From: pizzzza19 Date: Sun, 7 Jun 2026 14:30:35 +0900 Subject: [PATCH 4/5] [CmakeLists.txt] Add QuartzCore for MacOS build added QuartzCore --- Source/ui_qt/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/ui_qt/CMakeLists.txt b/Source/ui_qt/CMakeLists.txt index ce76ed4d04..ab4a4f9ef8 100644 --- a/Source/ui_qt/CMakeLists.txt +++ b/Source/ui_qt/CMakeLists.txt @@ -381,3 +381,7 @@ if(TARGET_PLATFORM_WIN32) "$" ) endif() + +if(TARGET_PLATFORM_MACOS) + target_link_libraries(Play "-framework QuartzCore" "-framework Metal") +endif() From bd141af64ff85f1718ff9c59ae28f01c4bc08bd8 Mon Sep 17 00:00:00 2001 From: pizzzza19 Date: Sun, 7 Jun 2026 14:58:02 +0900 Subject: [PATCH 5/5] [readme.md] add submodule update and macOS build Added instructions to update submodules before building to prevent compatibility issues. Also add macOS build instructions for the latest environment --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 1d74f94292..a95f43eab9 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,12 @@ First you'll need to clone this repo which contains the emulator source code, al git clone --recurse-submodules https://github.com/jpd002/Play-.git cd Play- ``` +Update all submodule before build to avoid any compatibility issues. + +``` +git submodule update --init --recursive +``` + ### Building for Windows ### The easiest way to build the project on Windows is to open Qt Creator and direct it to the CMake file in `/project/dir/Play-/CMakeLists.txt`. @@ -182,6 +188,10 @@ There are two ways to generate a build for macOS. Either by using Makefiles, or cmake .. -G Xcode -DCMAKE_PREFIX_PATH=~/Qt/5.1.0/clang_64/ cmake --build . --config Release # OR + cd build_cmake/build/macos-xcode + cmake --preset macos-xcode -DCMAKE_PREFIX_PATH=~/Qt/6.11.1/macos/ + cmake --build . --config Release + # OR cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/Qt/5.1.0/clang_64/ cmake --build . ```