Building SDL2 from scratch - issues

Issues related to software problems.
Post Reply
volumetricsteve
Posts: 13
Joined: 2014/11/29 20:44:48

Building SDL2 from scratch - issues

Post by volumetricsteve » 2015/03/02 19:48:15

As there's no SDL2 package for CentOS 5 that I can find, I'm trying to build it.
Given the instructions here:
http://lazyfoo.net/tutorials/SDL/01_hel ... /index.php

./configure went ok
./make all errored out with the following:

Code: Select all

/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c: In function 'SDLTest_RandomUint64BoundaryValue':
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c:300: error: 'ULLONG_MAX' undeclared (first use in this function)
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c:300: error: (Each undeclared identifier is reported only once
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c:300: error: for each function it appears in.)
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c: In function 'SDLTest_RandomSint64BoundaryValue':
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c:436: error: 'LLONG_MAX' undeclared (first use in this function)
/SDL2/SDL2-2.0.3/src/test/SDL_test_fuzzer.c:437: error: 'LLONG_MIN' undeclared (first use in this function)
make: *** [build/SDL_test_fuzzer.o] Error 1
I've written a few system utilities in my day and tinkered with a lot of things on the software side, but I can't make heads or tails of this. Any ideas? (my system registers as i686/i386 I don't believe it's truly 64-bit)

bishopolis
Posts: 2
Joined: 2007/06/26 08:49:55

Re: Building SDL2 from scratch - issues

Post by bishopolis » 2016/04/28 00:51:26

http://www.scs.stanford.edu/histar/src/ ... e/limits.h :

Code: Select all

/* The <limits.h> files in some gcc versions don't define LLONG_MIN,
   LLONG_MAX, and ULLONG_MAX.  Instead only the values gcc defined for
   ages are available.  */
# ifdef __USE_ISOC99
#  ifndef LLONG_MIN
#   define LLONG_MIN	LONG_LONG_MIN
#  endif
#  ifndef LLONG_MAX
#   define LLONG_MAX	LONG_LONG_MAX
#  endif
#  ifndef ULLONG_MAX
#   define ULLONG_MAX	ULONG_LONG_MAX
#  endif
# endif
#endif

Post Reply