Skip to content

FernandoLonghiDeAndrade/Raylib_VSCode_Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“š How to Build and Run a raylib Project

๐Ÿ› ๏ธ Building raylib

  1. Run the following command in the terminal (cmd) inside the src folder of raylib (usually located at C:\raylib\raylib\src):

    mingw32-make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=STATIC

    1.1. โš ๏ธ If you get an error (not just warnings), itโ€™s probably because you donโ€™t have the correct version of MinGW.

    • Download the correct one from this link.

    • After downloading and extracting:

      • Move the mingw64 folder to your root directory (usually C:\).
      • Add C:\mingw64\bin to your systemโ€™s PATH environment variable.
      • Restart your terminal (and VSCode) and try running the command again.

๐Ÿ”ง Project Configuration

  1. If the raylib src folder is not located at C:/raylib/raylib/src, adjust the path in the tasks.json file.

  2. To change the executable (.exe) name, update it in tasks.json and also in launch.json.


๐Ÿš€ Running in VSCode

  1. In the Run and Debug menu (left sidebar), select the appropriate task:

    • Run Raylib (C) โ€“ for C projects
    • Run Raylib (C++) โ€“ for C++ projects
  2. Then press F5 to build and run.

About

Template to use raylib in VSCode, both in C and C++, without Makefile!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages