From 0aceff98845ee4ebf7f0c54ef39813713dea5e9d Mon Sep 17 00:00:00 2001 From: Legend Date: Fri, 7 Jul 2023 09:10:07 +0800 Subject: [PATCH] bug fix --- Third-party-design/Emulator/CMakeLists.txt | 3 +++ Third-party-design/Emulator/README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Third-party-design/Emulator/CMakeLists.txt b/Third-party-design/Emulator/CMakeLists.txt index af2f6ea..d467c5a 100644 --- a/Third-party-design/Emulator/CMakeLists.txt +++ b/Third-party-design/Emulator/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.24) project(WouoUI) +set(CMAKE_C_COMPILER "cc") +set(CMAKE_CXX_COMPILER "c++") +set(CMAKE_NO_SYSTEM_FROM_IMPORTED YES) find_package(SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIRS}) diff --git a/Third-party-design/Emulator/README.md b/Third-party-design/Emulator/README.md index 1a1ad69..e777a5f 100644 --- a/Third-party-design/Emulator/README.md +++ b/Third-party-design/Emulator/README.md @@ -9,10 +9,10 @@ EEPROM,ADC,HID无实际功能。 # Windows编译 1. 装好 [msys2](https://www.msys2.org/) 环境 -2. (可选)使用 msys2-mingw64 执行`sed -i "s#mirror.msys2.org/#mirrors.tuna.tsinghua.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*`切换国内源 +2. (可选)使用 msys2-mingw64 执行`sed -i "s#mirror.msys2.org/#mirrors.ustc.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*`切换国内源 3. 使用 msys2-mingw64 执行`pacman -S mingw-w64-x86_64-SDL2`,安装SDL2 4. 使用 msys2-mingw64 执行`pacman -S mingw-w64-x86_64-toolchain cmake make ninja git`,安装编译器等 5. `git clone --recurse-submodules https://github.com/RQNG/WouoUI.git` -6. `cd Third-party-design/Emulator && cmake -B build"` +6. `cd WouoUI/Third-party-design/Emulator && cmake -G Ninja -B build` 7. `cd build && ninja` 8. `./WouoUI.exe`