[OpenNI-dev] osx?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[OpenNI-dev] osx?

Dougx
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.

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

Reply | Threaded
Open this post in threaded view
|

RE: [OpenNI-dev] osx?

Eddie Cohen
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.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Dougx
Sent: Thursday, December 09, 2010 03:33
To: OpenNI
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...

~
Doug.

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

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