当前位置: 首页 > 工具软件 > yuzu > 使用案例 >

yuzu编译 环境windows10,vs2019

东郭远航
2023-12-01

准备

设置github windows host
140.82.114.3 github.com
140.82.112.3 gist.github.com
185.199.109.153 assets-cdn.github.com
199.232.28.133 raw.githubusercontent.com
199.232.28.133 gist.githubusercontent.com
199.232.28.133 cloud.githubusercontent.com
199.232.28.133 camo.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com

因github访问异常,cmake无法正常下载github中的依赖。cmake下的依赖多是手动下载

一、下载yuzu源码和子模块依赖源码
git clone --recursive https://github.com/yuzu-emu/yuzu.git

二、下载扩展模块
git clone https://github.com/yuzu-emu/ext-windows-bin.git
更改cmake下载模块代码,不执行下载直接解压
yuzu\CMakeModules\DownloadExternals.cmkake
拷贝:
ffmpeg-4.4.7z
qt-5.15.2-msvc2019_64.7z
SDL2-2.0.18.7z
至M:\gitproject\yuzu\build\externals下

三、下载conan.cmake
修改yuzu\CMakeLists.txt 413行禁用下载conan.cmake
#file(DOWNLOAD “https://raw.githubusercontent.com/conan-io/cmake-conan/release/0.18/conan.cmake” “${CMAKE_BINARY_DIR}/conan.cmake”)
git clone https://github.com/conan-io/cmake-conan.git
拷贝文件至 yuzu\bin下

四、打开vs2019生成;
vs2022也可以编译成功。

 类似资料: