The SDL2 vapi files were added quite recently to the main vala repository (committed one month ago), so depending where you’re installing vala from, you might not have a recent enough version. It was previously in the vapi-extras, so you’ll probably need to install this distro package to have it.
1 Like