Quickstart: Linux
Get started with the PlayFab Services SDK for Linux. Follow these steps to include the libraries in your project and try out the sample code for basic PlayFab functionality. This quickstart helps you make your first PlayFab API call using Linux. Before continuing, make sure you have completed the steps in Quickstart: Game Manager, which ensure you have a PlayFab account and are familiar with the PlayFab Game Manager.Requirements
- A PlayFab developer account.
- Ubuntu 22.04 or higher, or Windows Subsystem for Linux with Ubuntu 22.04 distro or higher. See How to install Linux on Windows with WSL. Other Linux distros should work but haven’t been verified.
Project setup
Download the PlayFab Linux SDK to your project from the PlayFab SDK Release Page.Integrate PlayFab C SDK into your own project
Add binaries to your game
You’ll need to integrate into your project the shared object files (.so). You can build the binaries yourself or you can download them from the releases page. These next steps are written with the assumption that you have created a new project.Adding the .so files
These files are integrated into your project using CMake.- Unzip the PlayFab SDK for Linux release and place its contents in your desired directory.
- Using target_include_directories or another equivalent function, add this list of headers from the PlayFab SDK release:
- Using target_link_libraries or another equivalent function, link the locations of the .so files to your project.
