srunobantana
Active Member
- Joined
- Oct 24, 2021
- Messages
- 55
- Reaction score
- 34
Tutorial: Installing and Compiling TFS on WSL (Windows Subsystem for Linux)
Step 1: Install WSL on Windows
- Open CMD in Windows as an administrator (Search for "Command Prompt" in the Start menu, right-click it, and choose "Run as administrator").
- Install WSL by running the following command:
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.Bash:wsl --install
Step 2: Set Up the Environment in Ubuntu (WSL)
- Open Ubuntu on WSL. You can open Ubuntu directly from the Start menu in Windows.
- Update your system to make sure everything is up to date:
Bash:sudo apt-get update - Install the necessary dependencies to compile TFS:
Bash:sudo apt-get install libboost-all-dev - 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 - Install the boost date-time library:
Bash:sudo apt install libboost-date-time-dev
Step 3: Download and Prepare TFS Code
- 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:
Replace /path/to/tfs with the actual location of the TFS source code within your WSL.Bash:cd /path/to/tfs - Create a build directory and navigate into it:
Bash:mkdir build && cd build
Step 4: Compile TFS
- Configure the project with CMake:
Bash:cmake .. - Build the project:
Apologies for the translation, I do not speak English, I am Brazilian.Bash:make