bug fix
This commit is contained in:
parent
02cad4ef93
commit
0aceff9884
@ -1,6 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.24)
|
cmake_minimum_required(VERSION 3.24)
|
||||||
project(WouoUI)
|
project(WouoUI)
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER "cc")
|
||||||
|
set(CMAKE_CXX_COMPILER "c++")
|
||||||
|
set(CMAKE_NO_SYSTEM_FROM_IMPORTED YES)
|
||||||
|
|
||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 REQUIRED)
|
||||||
include_directories(${SDL2_INCLUDE_DIRS})
|
include_directories(${SDL2_INCLUDE_DIRS})
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
EEPROM,ADC,HID无实际功能。
|
EEPROM,ADC,HID无实际功能。
|
||||||
# Windows编译
|
# Windows编译
|
||||||
1. 装好 [msys2](https://www.msys2.org/) 环境
|
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
|
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`,安装编译器等
|
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`
|
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`
|
7. `cd build && ninja`
|
||||||
8. `./WouoUI.exe`
|
8. `./WouoUI.exe`
|
||||||
|
Loading…
Reference in New Issue
Block a user