osx?

9 views
Skip to first unread message

Dougx

unread,
Dec 8, 2010, 8:33:20 PM12/8/10
to OpenNI
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...

~
Doug.

Eddie Cohen

unread,
Dec 9, 2010, 3:17:03 AM12/9/10
to openn...@googlegroups.com
Doug,

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
To:
#define XN_THREAD_STATIC

(This will cause XnProfiling to lose some functionality, but is irrelevant to normal behavior).

Hope this can get you a bit further.

Eddie.

~
Doug.

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages