• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 1.4.2] Installing and Compiling TFS on WSL (Windows Subsystem for Linux)

srunobantana

Member
Joined
Oct 24, 2021
Messages
42
Reaction score
19

Tutorial: Installing and Compiling TFS on WSL (Windows Subsystem for Linux)


Step 1: Install WSL on Windows


  1. Open CMD in Windows as an administrator (Search for "Command Prompt" in the Start menu, right-click it, and choose "Run as administrator").
  2. Install WSL by running the following command:

    Bash:
    wsl --install
    This will download and install Ubuntu on your Windows system. If you need further details on installing WSL, you can find tutorials on YouTube, but wsl --install should work well.

Step 2: Set Up the Environment in Ubuntu (WSL)


  1. Open Ubuntu on WSL. You can open Ubuntu directly from the Start menu in Windows.
  2. Update your system to make sure everything is up to date:

    Bash:
    sudo apt-get update
  3. Install the necessary dependencies to compile TFS:
    Bash:
    sudo apt-get install libboost-all-dev
  4. Install additional required packages:

    Bash:
    sudo apt install git cmake build-essential libluajit-5.1-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev libcrypto++-dev libfmt-dev
  5. Install the boost date-time library:

    Bash:
    sudo apt install libboost-date-time-dev

Step 3: Download and Prepare TFS Code


  1. Navigate to the TFS directory. This is the directory where you downloaded or moved the TFS source code inside the WSL. Use the following command to change to the correct directory:

    Bash:
    cd /path/to/tfs
    Replace /path/to/tfs with the actual location of the TFS source code within your WSL.
  2. Create a build directory and navigate into it:

    Bash:
    mkdir build && cd build

Step 4: Compile TFS


  1. Configure the project with CMake:

    Bash:
    cmake ..
  2. Build the project:

    Bash:
    make
    Apologies for the translation, I do not speak English, I am Brazilian.
 
Back
Top