doc/c++/COMPILING-DEVCONTAINER.md
Contents
<!-- END doctoc generated TOC please keep comment here to allow auto update -->This guide contains instructions for compiling Cataclysm-DDA in Visual Studio Code using a Devcontainer
The devcontainer was introduced in #65748. These instructions were written using Visual Studio Code version 1.80.1 on Debian 11
comment out that part (select it and press ctrl+/ in vscode) so it looks like this:
Next, scroll down to find this section:
comment that part out (select it and press ctrl+/ in vscode) so it looks like this:
7.1 Linux only: You may see this message:
In that case, add the user to the docker group using the terminal:
After that, log out of your account and log back in so the permissions are updated. If that doesn't work, reboot your computer.
The build result should be located in the folder where you cloned your fork to (e.g. /Documents/git/Cataclysm-DDA)
If you want to run cataclysm-tiles locally, open a terminal on your linux machine and install these packages: apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libfreetype6-dev build-essential astyle ccache
You can then test your build on your linux machine by opening a terminal in the /Documents/git/Cataclysm-DDA folder and using this command:
./cataclysm-tiles
Follow all of the steps written earlier in this guide
Open the Dockerfile in the VSCode file browser and scroll down to find this section:
Uncomment that part (select it and press ctrl+/ in vscode) so it looks like this:
Next, press the play button to build the game. After it is build, you should see the cataclysm-tiles.exe file in the folder where you cloned your fork to (e.g. /workspaces/Cataclysm-DDA)