Skip to content

SDL2 not found error #98

Description

@M0HID

Hi, I’m not sure if this is an issue with my environment but when I follow the instructions to run the example, the debugging fails and throws an error.

Steps to recreate this:

  1. Run git clone https://github.com/microsoft/vcpkg
  2. Add the vcpkg folder to the windows environment variable PATH
  3. Run the command vcpkg install sdl2 in a new powershell window
  4. MSYS-MINGW and cmake are already installed and the test commands in the repo work (cmake --version, gcc --version, g++ --version). sdl2-config --version command fails.
  5. Clone the lvgl repo using git clone https://github.com/lvgl/lv_port_pc_vscode
  6. Open the simulator.code-workspace file (opens in the Cursor IDE)
  7. Install the 2 recommended extensions that pop up (cmake and c/c++ dev tools)
  8. A message asking to select a Kit shows up, I selected gcc (msys-mingw)
  9. Open the Run and Debug tab and press play
  10. The error pops up: Debugging failed with error code 1.

Any help would be appreciated, if I’m missing something that was mentioned in the instructions please do let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions