Need help in updating game on Manjaro Linux

I play the latest experimentals and when I try to update the game with this script:

#!/bin/bash
repo=(“/home/user/Cataclysm-DDA”)
cd “${repo}”
git pull
make clean
make -j12 CLANG=1 CCACHE=1 NATIVE=linux64 RELEASE=1 TILES=1 SOUND=1 LUA=1 USE_XDG_DIR=1
./cataclysm-tiles

I get this error:

In file included from src/animation.cpp:29:
In file included from src/cata_tiles.h:25:
src/sdl_wrappers.h:13:13: fatal error: ‘SDL.h’ file not found

include <SDL.h>

        ^~~~~~~

1 error generated.
make: *** [Makefile:995: obj/tiles/animation.o] Error 1
make: *** Waiting for unfinished jobs…

These are the sdl related apps installed:

lib32-sdl_ttf [Installed] 2.0.11-8 multilib
A library that allows you to use TrueType fonts in your SDL applications (32-bit)
lib32-sdl_mixer [Installed] 1.2.12-5 multilib
A simple multi-channel audio mixer
lib32-sdl_image [Installed] 1.2.12-8 multilib
A simple library to load images of various formats as SDL surfaces (32-bit)
lib32-sdl2_ttf [Installed] 2.20.2-1 multilib
Library that allows you to use TrueType fonts in your SDL applications (Version 2) (32-bit)
lib32-sdl2_mixer [Installed] 2.6.3-1 multilib
A simple multi-channel audio mixer
lib32-sdl2_image [Installed] 2.6.3-1 multilib
A simple library to load images of various formats as SDL surfaces
lib32-sdl2 [Installed] 2.26.5-1 multilib
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard
lib32-sdl12-compat [Installed] 1.2.60-1 multilib
SDL 1.2 runtime compatibility library using SDL 2.0
sdl_ttf [Installed] 2.0.11-6 community
A library that allows you to use TrueType fonts in your SDL applications
sdl_mixer [Installed] 1.2.12-12 community
A simple multi-channel audio mixer
sdl_image [Installed] 1.2.12-8 community
A simple library to load images of various formats as SDL surfaces
sdl2_ttf [Installed] 2.20.2-1 extra
A library that allows you to use TrueType fonts in your SDL applications (Version 2)
sdl2_mixer [Installed] 2.6.3-1 extra
A simple multi-channel audio mixer (Version 2)
sdl2_image [Installed] 2.6.3-1 extra
A simple library to load images of various formats as SDL surfaces (Version 2)
sdl2 [Installed] 2.26.5-1 extra
A library for portable low-level access to a video framebuffer, audio output, mouse, and
keyboard (Version 2)
sdl12-compat [Installed] 1.2.60-1 community
SDL 1.2 runtime compatibility library using SDL 2.0
sdl-openglhq-nokbgrab

How do I fix this?

SDL.h should be in /usr/include/SDL2/SDL.h installed by sdl2 package (check that).
Check that your “gcc -v -E -” lists /usr/include. Other than that, no idea.

I can see the SDL.h file where you told me to look.
I ran “gcc -v -E -” in the terminal and /usr/include does show up.

Solution

You were missing pkgconf? pkgconf is a component of a base-devel package, you should have had it installed before compiling anything at all.

Most distros seem to package essential build tools as either a single package (Debian and derivatives have build-essential) or a package group (Arch has base-devel). You should use the above if available. Otherwise you’ll at least need make and figure out the missing dependencies as you go (if any).

Yep, base-devel was not installed. I just installed it.
I’d like to think that a long time ago when I first started playing CDDA on Linux I did install base-devel, I don’t really remember ever removing it.