OK, I’ve been having some trouble for some time with this. The following
is exactly what I’ve typed:
hg clone http://hg.libsdl.org/SDL
cd SDL
mkdir BUILD
cd BUILD
cmake …
make (compiles without errors)
sudo make install (installs fine in /usr/local)
Next, I try to compile the test programs, as follows:
cd …/test
./configure
make
This results in multiple errors “/usr/bin/ld: cannot find -lSDL2_test”. It
seems that this library is needed, but it isn’t being built. Can someone
explain how to fix this issue?
Next, I try to compile the test programs, as follows:
cd …/test
./configure
make
This results in multiple errors “/usr/bin/ld: cannot find
-lSDL2_test”. It seems that this library is needed, but it isn’t being
built. Can someone explain how to fix this issue?
Some of the test programs fail with the latest hg update, in particular
teststreaming (which is exactly the functionality I need for my project).
Running through gdb seems to indicate problems with getting/setting an
error, and TLS. Maybe this is related to the latest TLS stuff??
The gdb log is as follows (both SDL and the test programs compiled with -
g):
(gdb) bt 20 #0 0x00007ffff7a989bc in SDL_SetError (fmt=<error reading variable: Cannot
access memory at address 0x7fffff7fefe8>)
at /home/stephen/src/SDL/src/SDL_error.c:54 #1 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de890) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #2 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #3 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #4 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de580) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #5 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #6 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #7 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de270) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #8 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #9 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #10 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17ddf60) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #11 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #12 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #13 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17ddc50) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #14 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #15 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #16 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17dd940) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75 #17 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62 #18 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f “Parameter ‘%s’ is
invalid”) at /home/stephen/src/SDL/src/SDL_error.c:62 #19 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17dd630) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
(More stack frames follow…)