XCode SDL2 build error
Moderator: Forum Moderators
XCode SDL2 build error
Hi folks,
Downloaded XCode 13.2.1 and Wesnoth source code 1.16.2 (master)
Intending to build 'The Battle For Wesnoth' target.
Added my signing credentials and tried to build, and got this error:
.../wesnoth/src/sdl/surface.hpp:19:10: 'SDL2/SDL.h' file not found
The libSDL2 libraries are definitely specified as link libraries.
Any thoughts on this?
Thanks,
Chris
Downloaded XCode 13.2.1 and Wesnoth source code 1.16.2 (master)
Intending to build 'The Battle For Wesnoth' target.
Added my signing credentials and tried to build, and got this error:
.../wesnoth/src/sdl/surface.hpp:19:10: 'SDL2/SDL.h' file not found
The libSDL2 libraries are definitely specified as link libraries.
Any thoughts on this?
Thanks,
Chris
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: XCode SDL2 build error
Are you using the Fix_Xcode_Dependencies script?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: XCode SDL2 build error
No, I was ignoring the packaging steps because it says "When compiling Wesnoth for an official release", and I'm just trying to build a .app file for local use.
But it looks like the section "Packaging - Packages preparation" probably applies to what I'm trying to do as well.
But it looks like the section "Packaging - Packages preparation" probably applies to what I'm trying to do as well.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: XCode SDL2 build error
The name is a bit misleading, but that's what will build/download the required libraries for Wesnoth. You can see how it's done on the command line for the CI jobs at https://github.com/wesnoth/wesnoth/blob ... s/macos.sh
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: XCode SDL2 build error
Thanks, that definitely did the trick.