Installation (Windows Clang): Difference between revisions

From Project Skyfire
Jump to navigation Jump to search
Line 47: Line 47:
<li>CMake-Tools</li>
<li>CMake-Tools</li>


Next step is to set your generator and MAKE PROGRAM in Visual Studio Code, Open User Settings JSON file and set your generator and MAKE PROGRAM to Ninja.
Next step is to set your generator and MAKE PROGRAM in Visual Studio Code, Open User Settings JSON file and set your generator and MAKE PROGRAM and compiler to Clang and Ninja.


<pre>
<pre>
     "cmake.generator": "Ninja",
     "cmake.generator": "Ninja",
     "cmake.configureArgs": [  "-DCMAKE_MAKE_PROGRAM=C:/Ninja/ninja.exe"   ],
     "cmake.configureArgs": [  "-DCMAKE_MAKE_PROGRAM=C:/Ninja/ninja.exe
                                -DCMAKE_C_COMPILER=C:/Program Files/LLVM/bin/clang.exe
                                -DCMAKE_CXX_COMPILER=C:/Program Files/LLVM/bin/clang++.exe
                                -DCMAKE_RC_COMPILER=C:/Program Files/LLVM/bin/clang.exe"
                            ],
</pre>
</pre>

Revision as of 03:22, 5 August 2024


INTRODUCTION

Before you get scared by this long guide, we assure you the procedure is quite simple. Most of the following steps are to be performed only the first time you install SkyFireEMU and only the SkyFireEMU updating procedures will need to be run from time to time.

After the first few times everyone gets used to the procedure and never needs to look at this guide ever again.


Software Required

  1. Git
    You can also use TortoiseGit that is more compatible with Windows (8).
    TortoiseGIT

  2. Install Visual Studio Code [1].

  3. Install Clang for Windows [2].

  4. Install Ninja Build System [3].

  5. MySQL Server
    • You can use MySQL Community Server 8.0.X or third party packages such as WAMP or XAMPP
    • It's recommended that your MySQL server and the MySQL header source versions match.
    • Current SkyFire core MySQL header version: 8.0.X
    • Download MySQL Installer. Be sure to install the development libraries else your core will not compile.
    • Download the 32bit version if you have a 32bit compiler or the 64bit version if you have a 64bit compiler.
    • If you are just planning on updating the MySQL header source and plan on using another server or package like WAMP or XAMPP, all you need to install is Client C API library (shared) under Development Components when doing a Custom Setup.

  6. .NET Framework 3.5 (You should already have this via your Windows updates.)

  7. SQL Client: HeidiSQL MySQL GUI Tools
    • DO NOT USE NAVICAT: Due to NaviCat not being able to handle // style comments (standard SQL), we advice all users to stay VERY clear of the product - you have been warned.


Microsoft Visual Studio Code

Start by installing Visual Studio Code Extensions:

  • C/C++
  • CMake-Tools
  • Next step is to set your generator and MAKE PROGRAM in Visual Studio Code, Open User Settings JSON file and set your generator and MAKE PROGRAM and compiler to Clang and Ninja.

        "cmake.generator": "Ninja",
        "cmake.configureArgs":  [  "-DCMAKE_MAKE_PROGRAM=C:/Ninja/ninja.exe
                                    -DCMAKE_C_COMPILER=C:/Program Files/LLVM/bin/clang.exe
                                    -DCMAKE_CXX_COMPILER=C:/Program Files/LLVM/bin/clang++.exe
                                    -DCMAKE_RC_COMPILER=C:/Program Files/LLVM/bin/clang.exe"
                                ],