Skip to content

Commit 5721887

Browse files
committed
Document how to install SFML's Linux dependencies
1 parent 19e8b5c commit 5721887

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ The template starts out very basic, but might receive additional features over t
1313
1. Follow the above instructions about how to use GitHub's project template feature to create your own project.
1414
1. Open [CMakeLists.txt](CMakeLists.txt). Rename the project and the executable to whatever name you want. The project and executable names don't have to match.
1515
1. If you want to add or remove any .cpp files, change the source files listed in the [`add_executable`](CMakeLists.txt#L10) call in CMakeLists.txt to match the source files your project requires. If you plan on keeping the default main.cpp file then no changes are required.
16+
1. If you use Linux, install SFML's dependencies using your system package manager. On Ubuntu and other Debian-based distributions you can use the following commands:
17+
```
18+
sudo apt update
19+
sudo apt install \
20+
libxrandr-dev \
21+
libxcursor-dev \
22+
libudev-dev \
23+
libfreetype-dev \
24+
libopenal-dev \
25+
libflac-dev \
26+
libvorbis-dev \
27+
libgl1-mesa-dev \
28+
libegl1-mesa-dev
29+
```
1630
1. Configure and build your project. Most popular IDEs support CMake projects with very little effort on your part.
1731
- [VS Code](https://code.visualstudio.com) via the [CMake extension](https://code.visualstudio.com/docs/cpp/cmake-linux)
1832
- [Visual Studio](https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170)

0 commit comments

Comments
 (0)