openbor: Fails to build on Manjaro x64

Please complete the following template to help us investigate your issue. Developer time is very limited - incomplete issue reports may be ignored and deleted.

Note: Legacy builds are not supported. Any fixes will be applied to the latest engine builds.

Description

Fails to build on Manjaro x64 and can’t find SDL2 even tho it is installed

./build.sh 4 amd64                 ✔ 
-------------------------------------------------------
OpenBOR v3.0 Build 7142 (commit hash 7f6f175) - http://www.ChronoCrash.com

All rights reserved.
See LICENSE and README within OpenBOR root for details.

Copyright (c) 2004 - 2018 OpenBOR Team
-------------------------------------------------------
-------------------------------------------------------
   Linux amd64 SDK (x86_64-pc-linux-gnu) Environment Loaded!
-------------------------------------------------------

Removing All LINUX Files...
Done!

Compiling LINUX Port: openbor.c...
Compiling LINUX Port: openborscript.c...
Compiling LINUX Port: sdl/control.c...
Compiling LINUX Port: sdl/sblaster.c...
/bin/sh: line 1: pkg-config: command not found
/bin/sh: line 1: pkg-config: command not found
/bin/sh: line 1: pkg-config: command not found
/bin/sh: line 1: pkg-config: command not found
In file included from openbor.h:23,
                 from openbor.c:14:
sdl/video.h:15:10: fatal error: SDL.h: No such file or directory
   15 | #include "SDL.h"
      |          ^~~~~~~
compilation terminated.
In file included from sdl/sblaster.c:13:
sdl/sdlport.h:12:10: fatal error: SDL.h: No such file or directory
   12 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:713: sdl/sblaster.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:713: openbor.o] Error 1
In file included from source/globals.h:41,
                 from source/scriptlib/depends.h:13,
                 from source/scriptlib/Interpreter.h:11,
                 from source/openborscript/config.h:12,
                 from openborscript.c:30:
sdl/sdlport.h:12:10: fatal error: SDL.h: No such file or directory
   12 | #include <SDL.h>
      |          ^~~~~~~
In file included from source/globals.h:41,
                 from sdl/control.c:14:
sdl/sdlport.h:12:10: fatal error: SDL.h: No such file or directory
   12 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
compilation terminated.
make: *** [Makefile:713: sdl/control.o] Error 1
make: *** [Makefile:713: openborscript.o] Error 1

Removing All LINUX Files...
Done!

Expected behavior

Builds and finds dependancies

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 23 (1 by maintainers)

Most upvoted comments

So looking at this log the issues are with recent changes to the engine. Again ignore the “SDL2_framerate.h” as I recently tested and that was not showing up so maybe it is already fixed. The other errors I did see so looking at this log can you figure out why it is complaining ? or how we can fix it ?

Edit: its not displaying properly in my quote see the log posted last by corey bruce.

on Manjaro the package names are:

  • sdl2
  • sdl2_gfx
  • libpng
  • libvorbis
  • libvpx

Debian and Ubuntu have the most retarded package names