windows_核心安装
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
windows_核心安装 [2023/09/23 22:48] – [Required software] admin | windows_核心安装 [2023/09/23 23:04] (当前版本) – [Compiling the Source] admin | ||
---|---|---|---|
行 8: | 行 8: | ||
在继续之前,请参阅[[安装要求]] | 在继续之前,请参阅[[安装要求]] | ||
- | ===== Pulling & Compiling the source | + | ===== 拉取和编译源代码 |
---- | ---- | ||
- | ==== Pulling the code ==== | + | ==== 提取代码 |
- | + | ||
- | Create the directory where the source files will be located. In this guide, we will use C: | + | |
- | + | ||
- | Open up Github Desktop | + | |
- | + | ||
- | Click File -> Clone repository... in the top left | + | |
- | + | ||
- | Click URL | + | |
- | + | ||
- | Fill in the data as follow: | + | |
+ | - 创建源文件所在的目录。在本指南中,我们将使用 C: | ||
+ | - 打开 Github Desktop\\ \\ | ||
+ | - 在左上角依次点击 File -> Clone repository... \\ \\ | ||
+ | - 点击 URL\\ \\ | ||
+ | - 按如下方式填写数据: | ||
+ | < | ||
Repository URL or GitHub username and repository: https:// | Repository URL or GitHub username and repository: https:// | ||
Local path: C: | Local path: C: | ||
- | Click Clone. | + | </ |
+ | 点击 | ||
- | ==== Configuring and generating | + | {{: |
+ | ==== 使用 CMake 配置和生成 | ||
- | Before you begin, create a new directory called | + | 在开始之前,请创建一个名为 |
- | Open CMake | + | - 打开 |
+ | - 点击 Browse Source... → 选择源代码所在的文件夹 (C: | ||
+ | - 点击 Browse Build... → 选择构建目录 (C: | ||
+ | - 点击 Configure.\\ \\ | ||
+ | - In the dropdown menu, choose the version of the compiler you downloaded in the Requirements section. Be sure to choose the Win64 version if you work on a 64-bit compilation.\\ \\ | ||
+ | - Make sure that Use default native compilers is checked.\\ \\ | ||
+ | - Click Finish.\\ \\ | ||
+ | - Make sure TOOLS_BUILD is set to all. This will compile the extractors needed later in the setup.\\ \\ | ||
+ | - Click Configure again. As long as you have error(s) typed in red in the log window you will need to check your parameters and re-run it.\\ \\ | ||
+ | - Click Generate. This will install the selected build files into your C:\Build folder. | ||
- | Click Browse Source... → Select the source directory (C: | + | **Some error fixes** |
- | Click Browse Build... → Select the build directory (C:\Build) | ||
- | |||
- | Click Configure. | ||
- | |||
- | In the dropdown menu, choose the version of the compiler you downloaded in the Requirements section. Be sure to choose the Win64 version if you work on a 64-bit compilation. | ||
- | |||
- | Make sure that Use default native compilers is checked. | ||
- | |||
- | Click Finish. | ||
- | |||
- | Make sure TOOLS_BUILD is set to all. This will compile the extractors needed later in the setup. | ||
- | |||
- | Click Configure again. As long as you have error(s) typed in red in the log window you will need to check your parameters and re-run it. | ||
- | |||
- | Click Generate. This will install the selected build files into your C:\Build folder. | ||
- | |||
- | Some error fixes | ||
If you were to encounter errors in CMake see Common Errors. | If you were to encounter errors in CMake see Common Errors. | ||
行 75: | 行 65: | ||
When the build is complete you will find a message in the output that looks similar to this: | When the build is complete you will find a message in the output that looks similar to this: | ||
+ | < | ||
========== Build: 22 succeeded, 0 failed, 0 up-to-date, 1 skipped ========== | ========== Build: 22 succeeded, 0 failed, 0 up-to-date, 1 skipped ========== | ||
+ | </ | ||
You will find your freshly compiled binaries in the C: | You will find your freshly compiled binaries in the C: | ||
You will need the following files in order for the core to function properly: | You will need the following files in order for the core to function properly: | ||
+ | < | ||
\configs\ | \configs\ | ||
authserver.exe | authserver.exe | ||
行 98: | 行 90: | ||
libcrypto-3.dll / libcrypto-3-x64.dll | libcrypto-3.dll / libcrypto-3-x64.dll | ||
libssl-3.dll / libssl-3-x64.dll | libssl-3.dll / libssl-3-x64.dll | ||
+ | </ | ||
In the configs folder you should find: | In the configs folder you should find: | ||
+ | < | ||
authserver.conf.dist | authserver.conf.dist | ||
worldserver.conf.dist | worldserver.conf.dist | ||
+ | </ | ||
There are two/three DLL files that need to be manually added to this folder, and you need to copy them from the following installation/ | There are two/three DLL files that need to be manually added to this folder, and you need to copy them from the following installation/ | ||
windows_核心安装.1695480511.txt.gz · 最后更改: 2023/09/23 22:48 由 admin