The only use for thread local storage right now is for XnProfiling (a performance profiling framework). You can safely ignore this by editing Include/Linux-x86/XnPlatformLinux-x86.h.
Just replace line 139 from this:
#define XN_THREAD_STATIC __thread
(This will cause XnProfiling to lose some functionality, but is irrelevant to normal behavior).
Hope this can get you a bit further.
From: [hidden email] [mailto:[hidden email]] On Behalf Of Dougx
Sent: Thursday, December 09, 2010 03:33
Subject: [OpenNI-dev] osx?
Had a little bit of a play to see if I could get an osx compile to
happen ofor OpenNI, but no luck.
I modified XnOS.h to recognize osx as linux, and it started to
compile, but eventually bummed out at:
g++ -MD -MP -MT "./Release/XnProfiling.d Release/XnProfiling.o" -c -
fPIC -fvisibility=hidden -O2 -DNDEBUG -msse3 -I../../../../Include -
I../../../../Source -I../../../../Source/External/TinyXml -DXN_EXPORTS
-o Release/XnProfiling.o ../../../../Source/OpenNI/XnProfiling.cpp
../../../../Source/OpenNI/XnProfiling.cpp:71: error: thread-local
storage not supported for this target
So, basically this is a no go right? Because the code doesn't use
posix threads and osx doesn't support thread local storage?
Didn't even manage to get as far as Source/Linux-x86, which is where I
was expecting to hit trouble...