Deprecated: Function create_function() is deprecated in /home/customer/www/ on line 811


Topic: Solaris build fail

While doing gmake on Solaris 10 SPARC, I get:
bash-4.3$ gmake
Will make a "release" build of Neverball 1.6.0.
gmake: sdl2-config: No such file or directory
gmake: sdl2-config: No such file or directory
cc -Wall -Wshadow -std=c99 -pedantic -O2  -I/usr/include/libpng12 -Ishare -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"./data\" -DCONFIG_LOCALE=\"./locale\" -DENABLE_NLS=1 -DNDEBUG -MM -MP -MF share/lang.d -MT "share/lang.o" share/lang.c
cc -Wall -Wshadow -std=c99 -pedantic -O2  -I/usr/include/libpng12 -Ishare -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"./data\" -DCONFIG_LOCALE=\"./locale\" -DENABLE_NLS=1 -DNDEBUG -o share/lang.o -c share/lang.c
In file included from share/lang.c:24:0:
share/config.h:18:17: fatal error: SDL.h: No such file or directory
#include <SDL.h>
compilation terminated.
gmake: *** [Makefile:395: share/lang.o] Error 1

???  I do have libsdl installed from opencsw.


Re: Solaris build fail

The first line of output has your problem.

"gmake: sdl2-config: No such file or directory"

Neverball uses SDL2. You need the devel package with headers and sdl2-config.


Re: Solaris build fail

OK, never mind.  I somehow missed the "2" in sdl2.  Opencsw has sdl, but not sdl2.  So I had to install that from source.  But it wanted xcb.  Opencsw has that too but it doesn't work.  It's missing xproto.h.  So it's starting to look like when I manage to build neverball will be the first half of its name :-(