Sensebloom / OSCeleton

OSCeleton is a proxy that sends skeleton information collected from the kinect sensor via OSC, making it easier to use input from the device in any language / framework that supports the OSC protocol.
GNU General Public License v3.0
311 stars 72 forks source link

Error during install #15

Open vividsnow opened 13 years ago

vividsnow commented 13 years ago

Hello

After following instructions at https://github.com/avin2/SensorKinect i got everything ok ( working samples ) but when making OSCeleton:

g++ src/OSCeleton.cpp src/viewer.cpp -O3 -Wno-write-strings -Iliblo-0.26-modified -I/usr/X11/include -I/usr/include/ni -lOpenNI -lstdc++ -L/usr/X11/lib -lGL -lGLU -lglut liblo-0.26-modified/src/.libs/*.o -o osceleton
In file included from src/OSCeleton.cpp:24:0:
/usr/include/ni/XnCppWrapper.h: In function ‘void terminate(int)’:
/usr/include/ni/XnCppWrapper.h:5646:27: warning: call to ‘xnShutdown’ declared with attribute warning: This function is deprecated: Use xnContextRelease() instead
/usr/include/ni/XnCppWrapper.h: In function ‘int main(int, char**)’:
/usr/include/ni/XnCppWrapper.h:5553:61: warning: call to ‘xnContextOpenFileRecording’ declared with attribute warning: This function is deprecated: Please use xnContextOpenFileRecordingEx() instead
In function ‘XnStatus xn::SkeletonCapability::_ZN2xn18SkeletonCapability28RegisterCalibrationCallbacksEPFvRS0_jPvEPFvS1_jjS2_ES2_RS2_.clone.21(XnInternalNodeData**, void (*)(xn::SkeletonCapability&, XnUserID, void*), void (*)(xn::SkeletonCapability&, XnUserID, XnBool, void*), void*, void*&)’,
    inlined from ‘int main(int, char**)’ at src/OSCeleton.cpp:693:143:
/usr/include/ni/XnCppWrapper.h:4298:165: warning: call to ‘xnRegisterCalibrationCallbacks’ declared with attribute warning: This function is deprecated: Please use RegisterToCalibrationStart/Complete
In function ‘XnStatus xn::PoseDetectionCapability::_ZN2xn23PoseDetectionCapability23RegisterToPoseCallbacksEPFvRS0_PKcjPvES6_S4_RS4_.clone.23(XnInternalNodeData**, void (*)(xn::PoseDetectionCapability&, const XnChar*, XnUserID, void*), void (*)(xn::PoseDetectionCapability&, const XnChar*, XnUserID, void*), void*, void*&)’,
    inlined from ‘int main(int, char**)’ at src/OSCeleton.cpp:694:117:
/usr/include/ni/XnCppWrapper.h:4597:161: warning: call to ‘xnRegisterToPoseCallbacks’ declared with attribute warning: This function is deprecated: Please use PoseDetected and/or OutOfPose callbacks
g++ osc_tools/osc2file.c -O3 -Wno-write-strings -Iliblo-0.26-modified liblo-0.26-modified/src/.libs/*.o -o osc2file
liblo-0.26-modified/src/.libs/liblo_la-server_thread.o: In function `lo_server_thread_start':
/home/egor/dev/tmp/OSCeleton/liblo-0.26-modified/src/server_thread.c:111: undefined reference to `pthread_create'
liblo-0.26-modified/src/.libs/liblo_la-server_thread.o: In function `lo_server_thread_stop':
/home/egor/dev/tmp/OSCeleton/liblo-0.26-modified/src/server_thread.c:132: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make: *** [osc2file] Error 1
tonyfg commented 13 years ago

You need to install glibc-dev on your machine so you can compile.

vividsnow commented 13 years ago

It seems that I already have it.

Here is full log after make: https://gist.github.com/ba1d6cce1cbf7acea07d

Neurogami commented 12 years ago

I have the same problem. Ubuntu 10.10. I have libc6-dev installed (there is no package simply named glibc-dev ). I can build liblo-0.26-modified by itself, but running make on the whole project gives me that "undefined reference to `pthread_join'" error.

Neurogami commented 12 years ago

See https://github.com/Sensebloom/OSCeleton/issues/19

Apparently the fix was never added.