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
- 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:
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:
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:
Bash:make