Hi,
i’m tryin’ to use ofxOpenNI, but got this error:
error: multiple types in one declaration
This error occur because the libs have this:
FILE: OniEnums.h
/** Possible failure values */
typedef enum
{
STATUS_OK = 0,
STATUS_ERROR = 1,
STATUS_NOT_IMPLEMENTED = 2,
STATUS_NOT_SUPPORTED = 3,
STATUS_BAD_PARAMETER = 4,
STATUS_OUT_OF_FLOW = 5,
STATUS_NO_DEVICE = 6,
STATUS_TIME_OUT = 102,
} Status;
and this:
FILE: NiteEnums.h
/** Possible failure values */
typedef enum
{
STATUS_OK,
STATUS_ERROR,
STATUS_BAD_USER_ID,
STATUS_OUT_OF_FLOW
} Status;
on different files. Does anyone knows why it has 2 declarations of Status to happen this error? It is possible that I am doing something wrong before I build the project?
ps: I tried using the “master” branch, but it doesn’t work(error: “fatal error: ofxOpenNI.h not found”), then as the guid of ofxOpenNI says: the current branch is “experimental”. So i tried to used it, but no work either. I’m using Ubuntu 12.04 with codeblocks. Sorry about my english.
EDIT
So, i really don’t understand what happened on experimental branch, so i’m back to master branch. To work i do a couple of things like:
On XnStatus.h, it has 4 erros: so i remove the Status on parameters and it works.
On make file i put this: PROJECT_LDFLAGS += -lOpenNI
and
this: PROJECT_CFLAGS = -I/usr/include/ni
so it works!!