ofxOpenNI icon indicating copy to clipboard operation
ofxOpenNI copied to clipboard

Deprecated methods are updated for OF090

Open ccerhan opened this issue 9 years ago • 21 comments

All deprecated methods are updated for OF090 version. No more Xcode warning in ofxOpenNI files.

ccerhan avatar Jan 07 '16 22:01 ccerhan

Hi,

Where can I find your ofxOpenNI updated files? I'm trying to reuse ofxOpenNI for an old project in ubuntu and is giving some errors relating to olf openframeworks function calls.... Hope you can help me with this. Thanks in advance. Best regards Paulo Trigueiros

ghost avatar Feb 04 '16 17:02 ghost

Hello,

You can take a look at my fork.

Regards

ccerhan avatar Feb 04 '16 17:02 ccerhan

Hi,

Thanks I will try to compile the code.... Best regards,

Paulo

2016-02-04 17:35 GMT+00:00 Can Erhan [email protected]:

Hello,

You can take a look at my fork https://github.com/ccerhan/ofxOpenNI.

Regards

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-179959316 .

Paulo Trigueiros

ghost avatar Feb 04 '16 23:02 ghost

I suggest you to read the readme file of my fork in order to compile it in Xcode. Because, you must add library path into your project settings.

If you need help, please contact me again.

Regards

ccerhan avatar Feb 05 '16 07:02 ccerhan

I'm using QtCreator, but I'm getting some strange errors with the Xlib file. I would like to be able to use QtCreator since it is cross platform (Linux and Mac). I use both.... Thanks,

2016-02-05 7:34 GMT+00:00 Can Erhan [email protected]:

I suggest you to read the readme file of my fork in order to compile it in Xcode. Because, you must add library path into your project settings.

If you need help, please contact me again.

Regards

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-180236491 .

Hi there,

I was trying to compile the code with XCode, but I'm getting errors concerning XnOpeNI.h. Can't find the file. I add the path ../../../addons/ofxOpenNI/include/openni to the Search Paths.... What am I missing? BR

Paulo

Paulo Trigueiros

ghost avatar Feb 05 '16 10:02 ghost

Try to add the lib folder path (explained with Xcode) into qmake file in a format like

LIBS += -L/lib/folder/path \
              -lXn... \
              -lXn... 

For more information about LIBS, check this out.

I hope this solves your problem.

ccerhan avatar Feb 05 '16 11:02 ccerhan

I was trying to compile the code with XCode, but I'm getting errors concerning XnOpeNI.h. Can't find the file. I add the path ../../../addons/ofxOpenNI/include/openni to the Search Paths.... What am I missing? BR Paulo

ghost avatar Feb 11 '16 17:02 ghost

I did not use Qt for openframeworks, but I think you should import the ofxOpenNI addon with the following instructions. Then add to library paths to LIBS.

ccerhan avatar Feb 11 '16 18:02 ccerhan

Thanks, I’m trying everything I remember…. even in Xcode I can’t put the old code to work :-( Any ideas? What search paths to include, etc???? Do you have any example project with all the definitions in Xcode? Thanks,

On 11 Feb 2016, at 18:51, Can Erhan [email protected] wrote:

I did not use Qt for openframeworks, but I think you should import the ofxOpenNI addon with the following instructions http://openframeworks.cc/setup/qtcreator/. Then add to library paths to LIBS.

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-183008339.

ghost avatar Feb 11 '16 19:02 ghost

OpenNITest.zip Copy the project file which can be dowloaded the link above into apps/myApps in openframeworks dir.

You should copy config and the font file from the example project in the ofxOpenNI addon folder. Also you should copy the lib folder as you see in the images below.

project_dir project_data_dir

ccerhan avatar Feb 11 '16 21:02 ccerhan

Hi,

It worked :-) One question. When you start a new project, how do include into the addons->ofxOpenNI folder (group) the include and the lib? Do you just drag them there as explained online? Because as I can see from your project building settings you don’t include anywhere the path to these two folders, correct? Thanks for everything. Best regards,

Paulo

On 11 Feb 2016, at 21:20, Can Erhan [email protected] wrote:

OpenNITest.zip https://github.com/gameoverhack/ofxOpenNI/files/127125/OpenNITest.zip Copy the project file which can be dowloaded the link above into apps/myApps in openframeworks dir.

You should copy config and the font file from the example project in the ofxOpenNI addon folder. Also you should copy the lib folder as you see in the images below.

https://cloud.githubusercontent.com/assets/2284880/12990899/5643eecc-d115-11e5-8439-828b6ffb86d6.png https://cloud.githubusercontent.com/assets/2284880/12990902/5aa4b956-d115-11e5-8d5c-0dccdcabb712.png — Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-183063917.

ghost avatar Feb 12 '16 09:02 ghost

Sorry again…

When I create a new project and drag the “include” and “lib” folders to the addons->ofxOpenNI group then I can’t include <XnOpenNI.h> for example. It does find the file. What I’m I missing here? B Rgrds

Paulo

On 11 Feb 2016, at 21:20, Can Erhan [email protected] wrote:

OpenNITest.zip https://github.com/gameoverhack/ofxOpenNI/files/127125/OpenNITest.zip Copy the project file which can be dowloaded the link above into apps/myApps in openframeworks dir.

You should copy config and the font file from the example project in the ofxOpenNI addon folder. Also you should copy the lib folder as you see in the images below.

https://cloud.githubusercontent.com/assets/2284880/12990899/5643eecc-d115-11e5-8439-828b6ffb86d6.png https://cloud.githubusercontent.com/assets/2284880/12990902/5aa4b956-d115-11e5-8d5c-0dccdcabb712.png — Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-183063917.

ghost avatar Feb 12 '16 09:02 ghost

Here is the screenshot…

On 11 Feb 2016, at 21:20, Can Erhan [email protected] wrote:

OpenNITest.zip https://github.com/gameoverhack/ofxOpenNI/files/127125/OpenNITest.zip Copy the project file which can be dowloaded the link above into apps/myApps in openframeworks dir.

You should copy config and the font file from the example project in the ofxOpenNI addon folder. Also you should copy the lib folder as you see in the images below.

https://cloud.githubusercontent.com/assets/2284880/12990899/5643eecc-d115-11e5-8439-828b6ffb86d6.png https://cloud.githubusercontent.com/assets/2284880/12990902/5aa4b956-d115-11e5-8d5c-0dccdcabb712.png — Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-183063917.

ghost avatar Feb 12 '16 10:02 ghost

Sorry, have you received my last emails? Can you help me with include folders in the project? What is the correct way to include them in Xcode? Best regards, Paulo

On 11 Feb 2016, at 21:20, Can Erhan [email protected] wrote:

OpenNITest.zip https://github.com/gameoverhack/ofxOpenNI/files/127125/OpenNITest.zip Copy the project file which can be dowloaded the link above into apps/myApps in openframeworks dir.

You should copy config and the font file from the example project in the ofxOpenNI addon folder. Also you should copy the lib folder as you see in the images below.

https://cloud.githubusercontent.com/assets/2284880/12990899/5643eecc-d115-11e5-8439-828b6ffb86d6.png https://cloud.githubusercontent.com/assets/2284880/12990902/5aa4b956-d115-11e5-8d5c-0dccdcabb712.png — Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-183063917.

ghost avatar Feb 15 '16 11:02 ghost

Hello Paulo,

Take a look at this video.

Can.

ccerhan avatar Feb 15 '16 12:02 ccerhan

Thanks,

Paulo

On 15 Feb 2016, at 12:54, Can Erhan <[email protected] mailto:[email protected]> wrote:

Hello Paulo,

Take a look at this video https://www.youtube.com/watch?v=VyWLp2ZFdRQ.

Can.

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-184194862.

ghost avatar Feb 15 '16 15:02 ghost

Now I get this..

ld: library not found for -lXnDDK clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can see in the project that the libraries are included, even though I get the error message :-( br Paulo

On 15 Feb 2016, at 12:54, Can Erhan [email protected] wrote:

Hello Paulo,

Take a look at this video https://www.youtube.com/watch?v=VyWLp2ZFdRQ.

Can.

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-184194862.

ghost avatar Feb 15 '16 16:02 ghost

Good !

Now you should do this which is also my solution.

ccerhan avatar Feb 15 '16 17:02 ccerhan

Thank you Very Much. Yes, it’s working. Best regards,

Paulo

On 15 Feb 2016, at 17:38, Can Erhan [email protected] wrote:

Good !

Now you should do this http://stackoverflow.com/questions/33681299/apple-mach-o-linker-id-error-for-openframeworks/34559001#34559001 which is also my solution.

— Reply to this email directly or view it on GitHub https://github.com/gameoverhack/ofxOpenNI/pull/56#issuecomment-184320189.

ghost avatar Feb 15 '16 19:02 ghost

Great ! :)

ccerhan avatar Feb 15 '16 19:02 ccerhan

Hi guys,

I have some errors in my console with ccerhan project file (with kinect v1). Is there any solution to this?

[warning] ofxOpenNIDevice[0]: Using a NASTY hack to silence SIGNAL errors on exit - read the comments at line ~1712 of ofxOpenNI.cpp [notice ] ofxOpenNIDevice[0]: Init context... [verbose] ofxOpenNIDevice[0]: Context initilizedstatus:OK [notice ] ofxOpenNIDevice[0]: openni driver version: 1.5.4.0 [notice ] ofxOpenNIDevice[0]: Adding licence... [verbose] ofxOpenNIDevice[0]: Adding licence: PrimeSense 0KOIk2JeIBYClPWVnMoRKn5cdY4=status:OK [notice ] ofxOpenNIDevice[0]: Init device... [verbose] ofxOpenNIDevice[0]: Enumerate devicesstatus:OK [notice ] ofxOpenNIDevice[0]: Found1devices connected [verbose] ofxOpenNIDevice[0]: Creating production tree for device 0status:Failed to open the USB device! [warning] ofxOpenNIDevice[0]: REAL Device could not be initialized - you can still use an ONI [notice ] ofxOpenNIDevice[0]: Adding generator typeXN_NODE_TYPE_DEPTH [verbose] ofxOpenNIDevice[0]: Creating XN_NODE_TYPE_DEPTH generatorstatus:Failed to open the USB device! [ error ] ofxOpenNIDevice[0]: setGeneratorResolution() called on invalid generator! [verbose] ofxOpenNIDevice[0]: Depth generator is not on [notice ] ofxOpenNIDevice[0]: Adding generator typeXN_NODE_TYPE_HANDS [verbose] ofxOpenNIDevice[0]: Creating XN_NODE_TYPE_HANDS generatorstatus:Failed to open the USB device! [verbose] ofxOpenNIDevice[0]: Starting XN_NODE_TYPE_HANDS generatorstatus:Failed to open the USB device! [verbose] ofxOpenNIDevice[0]: Creating XN_NODE_TYPE_GESTURE generator for focus gestures (needed with hands)status:Failed to open the USB device! [verbose] ofxOpenNIDevice[0]: Starting XN_NODE_TYPE_HANDS generatorstatus:Failed to open the USB device! [ error ] ofxOpenNIDevice[0]: Can't add all focus gestures as there isn't a gesture generator - use addHandsGenerator() first [notice ] ofxOpenNIDevice[0]: Starting ofxOpenNI with threading

dmtth avatar Feb 25 '16 13:02 dmtth