{"id":23065759,"url":"https://github.com/ullaskunder3/sdl2-setup-linux-system","last_synced_at":"2026-05-02T22:40:24.281Z","repository":{"id":153849417,"uuid":"630865761","full_name":"ullaskunder3/sdl2-setup-linux-system","owner":"ullaskunder3","description":"started learning SDL2 c++ for game development","archived":false,"fork":false,"pushed_at":"2023-04-21T11:08:40.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T22:25:22.158Z","etag":null,"topics":["automation","boilerplate","config","cpp","demo","fedora","linux","scratch","sdl2","task","vscode"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ullaskunder3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-21T10:29:31.000Z","updated_at":"2023-05-16T08:18:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"a327e82d-72aa-4808-99c6-9f9fc70ddd7a","html_url":"https://github.com/ullaskunder3/sdl2-setup-linux-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fsdl2-setup-linux-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fsdl2-setup-linux-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fsdl2-setup-linux-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fsdl2-setup-linux-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ullaskunder3","download_url":"https://codeload.github.com/ullaskunder3/sdl2-setup-linux-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970338,"owners_count":20862508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","boilerplate","config","cpp","demo","fedora","linux","scratch","sdl2","task","vscode"],"created_at":"2024-12-16T05:09:56.489Z","updated_at":"2025-10-17T12:43:17.776Z","avatar_url":"https://github.com/ullaskunder3.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sdl2-setup-linux-system\n\n## Installation\n\nTo install SDL2 in Fedora, you can use the following command in your terminal:\n\n```bash\nsudo dnf install SDL2-devel\n\n```\n\n## Automate the step of running the output file\n\n![runtask](https://user-images.githubusercontent.com/66258652/233619662-18faddd7-dc3e-4142-bf01-5534c2f2ec05.png)\n![command](https://user-images.githubusercontent.com/66258652/233619933-dc1c7788-ca11-4aa1-bb2b-ae5b7c2ca364.png)\n![Screenshot from 2023-04-21 16-25-34](https://user-images.githubusercontent.com/66258652/233619968-9344274d-90c8-4293-8baf-5c5ca9e8def7.png)\n\n### This tasks.json file defines two tasks: Build C++ program with SDL2 and Run C++ program with SDL2\n\n`Build C++ program with SDL2` is a `cppbuild` task which uses the `g++ compiler` to build the C++ program. It takes the following arguments:\n\n- `-g` specifies to include debugging information in the binary\n- `-o` specifies the output file path, which is build/${fileBasenameNoExtension}.out. ${fileBasenameNoExtension} is the name of the current file being built (without its extension).\n- `${file}` specifies the path of the current file being built.\n- `sdl2-config --cflags --libs` includes the compiler flags and linker flags needed for the SDL2 library.\n- `\"cwd\": \"${fileDirname}\"` sets the current working directory to the directory of the current file being built.\n\nThe group option specifies that this task is a build task and is the default task for this project.\n\nThe `Run C++ program with SDL2` task is a `shell` task which runs the binary built by the `Build C++ program with SDL2` task. It takes the following arguments:\n\n- `${workspaceFolder}/build/${fileBasenameNoExtension}.out` specifies the path of the binary file to run.\n- The `group` option specifies that this task is a test task and is the default task for this group.\n- The `dependsOn` option specifies that this task depends on the `Build C++` program with SDL2 task, meaning that the build task will always be executed before the run task.\n\nSo when you run the `Run C++ program with SDL2` task, it will first build the C++ program using the `Build C++ program with SDL2` task, and then run the built binary using the `shell` task.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fsdl2-setup-linux-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fullaskunder3%2Fsdl2-setup-linux-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fsdl2-setup-linux-system/lists"}