Closed MedLabs closed 8 months ago
You need to make sure the version of SDL2 installed on your system matches the major and minor version branch from this repository. v install sdl
defaults to a v wrap of SDL2 2.0.8 which might not be compatible with the version installed on your system.
What is the SDL2 version installed on your system?
sdl2-2.30.1-1
In that case you'll need to follow the install instructions below the line containing v install sdl
.
It is basically:
git clone https://github.com/vlang/sdl.git ~/.vmodules/sdl
v ~/.vmodules/sdl/setup.vsh
... or, if that fails:
git clone https://github.com/vlang/sdl.git ~/.vmodules/sdl
cd ~/.vmodules/sdl
git checkout 2.30.0
Make sure to remove ~/.vmodules/sdl
beforehand since that is were v install sdl
also installs to
there is no branch for 2.31.0 ?
You said you have 2.30.1, so... why?
At any rate, no, there is no branch for 2.31, yet. Each new branch has to be manually created, taking into account the differences in the new version of sdl, etc. It doesn't happen automatically.
The latest release of SDL2 is 2.30.1 which is compatible with the matching major and minor branch of this repository. Please understand that SDL2 patch releases does not have API changes and thus 2.30.1 works fine with the 2.30.0 branch in this repository.
Also latest release is version 2.30.1 and NOT 2.31.0.
Use the 2.30.0
branch of this repository.
V version: v 0.4.4 aeadc0a
OS: Arcolinux 24.04.02 on KDE Plasma 6.0.1
What did you do?
v new try_sdl
then copied the basic window main.v thenv install sdl
andv run .
What did you expect to see? a basic window
What did you see instead?