Closed gruelingpine185 closed 5 months ago
May I make a PR to update the SDL_Version
to SDL_version
and hopefully fix the build issues?
Your SDL3 is not up-to-date: update from SDL main branch, delete all caches and retry, please.
Am I doing this right? My folder structure looks like this:
splash player $✘!+? ➜ tree -L 2
.
├── Makefile
├── bin
│ ├── game.o
│ ├── main.o
│ ├── splash
│ └── window.o
├── compile_commands.json
├── inc
│ ├── game.h
│ ├── paddle.h
│ ├── rect.h
│ ├── utils.h
│ └── window.h
├── res
│ └── paddle.png
├── src
│ ├── game.cpp
│ ├── main.cpp
│ ├── paddle.cpp
│ ├── rect.cpp
│ └── window.cpp
└── vendor
├── compile_commands.json
├── sdl3
└── sdl_image
I do a git pull
which updated the SDL repo and I (from root) did git rm --cached vendor/sdl*
which should capture both vendor/sdl3/
and vendor/sdl_image/
. I rebuilt them both and I still get the "unknown type name 'SDL_Version'" error as above.
Sorry for the late response, I had to be somewhere.
When you're using git submodules, you need to make sure those are updated as well.
git submodule update --recursive
Then, you need to cd
into each dependency and checkout the latest commit on the main
branch.
SDL3_image fails to compile and errors with a "unknown type name 'SDL_Version'; did you mean 'SDL_version'?". I didn't do much digging, but I glanced at the most recent commit in this repo and it said something about updating for recent SDL3 changes. I'm guessing
SDL_Version
->SDL_version
was part of those changes? Here is the output for trying to build it.