Problems when executing my app using NESTK as an external Library

68 views
Skip to first unread message

Olmo León Cadahía

unread,
Sep 27, 2011, 8:02:47 AM9/27/11
to rgb...@googlegroups.com
Hello again to all, 

I'm running into this problem for the last couple of days, and cannot find where the problem is.

I'll explain, and thanks in advance for the help :)

1) When I use my app embedded into the nestk library I have no problems. Anyway, I don't want to be compilng etc. all the time the whoie library, so I'm trying to use the nestk libraries as external.

2) So far I could make the compilation succeed, so the dependencies seemed to be allright.

3) But when executing I get an error, that I was not getting before when embedded. Here is the trace:

[DBG] "Initializing OpenNI driver" 
Module filename: /tmp/qt_temp.XM3626
DBG: Loading module: ../lib/libnimMockNodes.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libnimCodecs.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libnimRecorder.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libXnDevicesSensorV2.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libXnDeviceFile.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libXnVFeatures.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
DBG: Loading module: ../lib/libXnVHandGenerator.so
DBG: Working directory: /home/olmin/NetBeansProjects/ControlBehaviours/dist/Debug/GNU-Linux-x86
Usually here I was getting this line, that now doesn't: [DBG] "Found device: vendor PrimeSense name SensorKinect" 
[DBG] "[Kinect bfca7794] connecting" 
[DBG] "[ERROR] Cannot enumerate devices. failed: Can't create any node of the requested type!
terminate called after throwing an instance of 'ntk::exception'
  what():  void ntk::OpenniDriver::checkXnError(const XnStatus&, const char*) const: Error in OpenniGrabber.

Any ideas?? Thank you very much..this is driving me crazy :-)

Nicolas Burrus

unread,
Sep 28, 2011, 3:51:52 AM9/28/11
to rgb...@googlegroups.com
Hi,

This might be because you lack the config/ directory in your bin
directory. When building in nestk, it does this automatically by
copying it into build/bin. Openni goodies...

Cheers,
Nicolas

Olmo León Cadahía

unread,
Sep 28, 2011, 7:06:17 AM9/28/11
to rgb...@googlegroups.com
Hello, 
Thanks Nicolas again for your fast reply.

I have moved the config directory as you suggested, but keep having the same error. Could you think about a method to be sure that is reading in that config folder?  :-S

Thanks again, and sorry to be bothering so much

Cheers

2011/9/28 Nicolas Burrus <nicolas...@gmail.com>

Nicolas Burrus

unread,
Sep 28, 2011, 7:07:24 AM9/28/11
to rgb...@googlegroups.com
Do you have a Log directory after launching it ? There should be a log
file you can check there. Otherwise, try with the --debug 2 option.

Nicolas Burrus

unread,
Sep 28, 2011, 7:08:04 AM9/28/11
to rgb...@googlegroups.com
Oh, you are using nestk directly. So just set the ntk::ntk_debug_level
variable to 2 at the beginning of your program.

Olmo León Cadahía

unread,
Sep 28, 2011, 7:11:18 AM9/28/11
to rgb...@googlegroups.com
Yes, I have the Log folder, and is writing there the log files. I'm gonna check there..thanks agains...I'll let you know if I find something :)


2011/9/28 Nicolas Burrus <nicolas...@gmail.com>

Olmo León Cadahía

unread,
Sep 28, 2011, 7:13:37 AM9/28/11
to rgb...@googlegroups.com
Is this normal??.. log file:

"392 WARNING   ModuleLoader XnModuleLoader.cpp 330 Failed to load '../lib/libnimMockNodes.so' - missing dependencies?"

2011/9/28 Olmo León Cadahía <super...@gmail.com>

Olmo León Cadahía

unread,
Sep 28, 2011, 7:28:05 AM9/28/11
to rgb...@googlegroups.com
Well, now that I had the clue. I moved the lib folder of the nestk/build/bin..to my bin folder...and works!

But, any idea how to do it cleaner, in the way it looks for the libraries in my usr/local/lib and not as a local reference...as it does with the nestk library and all the rest ??   :-)

Thanks very much once again.

Nicolas Burrus

unread,
Sep 29, 2011, 12:02:26 PM9/29/11
to rgb...@googlegroups.com
Well, OpenNI is very difficult to embed. If you don't mind having a
global install of OpenNI/Nite, then just install the Linux packages on
your machine, and then compile nestk with NESTK_USE_EMBEDDED_OPENNI
set to false. And it should be fine.

Cheers,
Nicolas

Reply all
Reply to author
Forward
0 new messages