Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during install #15

Open
vividsnow opened this issue Jul 22, 2011 · 4 comments
Open

Error during install #15

vividsnow opened this issue Jul 22, 2011 · 4 comments

Comments

@vividsnow
Copy link

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
Copy link

tonyfg commented Jul 22, 2011

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

@vividsnow
Copy link
Author

It seems that I already have it.

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

@Neurogami
Copy link

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
Copy link

See #19

Apparently the fix was never added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants