OpenNI Platform Abstraction Layer - Unsupported Platform

916 views
Skip to first unread message

Robert

unread,
Sep 5, 2012, 8:59:39 AM9/5/12
to openn...@googlegroups.com
I need to port my OpenNI application from Windows to Linux and I get the following compiler messages (GCC with -std=c++0x):

/usr/include/ni/XnPlatform.h:74:3: error: #error OpenNI Platform Abstraction Layer - Unsupported Platform!
/usr/include/ni/XnOS.h:52:3: error: #error OpenNI OS Abstraction Layer - Unsupported Platform!

I'm running Debian in a Oracle VM VirtualBox.

Why do I get these messages?

Robert

unread,
Sep 5, 2012, 9:13:46 AM9/5/12
to openn...@googlegroups.com
I think I found the solution. It looks like the macros used to check the platform in XnPlatform.h are not correct (replace linux by __linux__ and i386 by __i386__).

Someone already created a fix for this:
https://github.com/OpenNI/OpenNI/pull/74
Reply all
Reply to author
Forward
0 new messages