OSCeleton With Quartz Composer

Trying out the very awesome OSCeleton http://github.com/Sensebloom/OSCeleton with Quartz Composer.

What is OSCeleton?
“As the title says, it’s just a small program takes Kinect skeleton data from the OpenNI framework and spits out the coordinates of the skeleton’s joints via OSC messages. These can can then be used on your language / framework of choice.”

It works straight out of the box with Animata and many other software, but the OSC formatting is not compatible with Quartz Composer. So I made a little Max/MSP patch that converts the messages to a format QC understands. I will try to write a tutorial about how to get the whole thing running pretty soon. But here is a quick rundown.

./osceleton-osx -p 8110 -mx 2 -my -2 -mz -1 -ox -1 -oy 0.75 -oz 1 -a 127.0.0.1

The options are to scale the values to something that makes sense in QC. You can play around with them. Check the OSCeleton readme for more information about the different options.

Let me know if the Max/MSP app or something else is not working properly.

Tags: , , , , , ,


26 Responses to “OSCeleton With Quartz Composer”

  1. philip says:

    Hello

    I have a problem with osceleton-osx, with snow leopard, I can’t use osceleton. I have compiled withe make and try the binary and after when I run the app, I have this message S”egmentation fault” ??
    How could I compile osceleton ?

    thx

    p

    • Lucas says:

      Hi, I am getting exactly the same results as Philip. Using Snow Leopard as well, 10.6.5. I installed everything, and at the very end I get a segfault. Not sure what the problem could be. Any help is truly appreciated.

    • Månsteri says:

      Can you run any of the OpenNI sample applications? Do they work? Did you follow the instructions on the readme files of both OpenNI and KinectSensor?

      I recommend re-installing everything from the start.

      • Lucas says:

        I am not able to run the openNI files either. I’m not even entirely sure I am doing that correctly.

        For instance, to run NiViewer I should simple need to navigate to
        OpenNI/Platform/Linux-x86/Bin/Release

        and enter “./NiViewer”, correct?

        When I do this I get an error stating “Open failed: OpenNI library can’t find any module!”

        I cannot find any solution to this error. I have reinstalled everything from scratch, following the README files exactly, with the same results. I am honestly very new to all of this, but I am trying really hard to get everything running. Thanks again for your advice.

  2. philip says:

    Hi

    In my case, the first avenis’s test is right. no problem. But with second and third, I have nothing,
    Before to reinstall everything, I copy the result of my terminal with test :
    “new-host:Release philippeboisnard$ ./Sample-NiUserTracker
    Warning: USB events thread – failed to set priority. This might cause loss of data…
    Find user generator failed: Can’t create any node of the requested type!”
    Pehaps, the problem is here, with Open-Ni installation or Nite ?

    thanks for answer

    philip

  3. philip says:

    Re

    When I reinstall NIte, I have many errors :
    ___________________

    new-host:Nite-1.3.0.18 philippeboisnard$ sh install.sh
    cp: /usr/lib/libXnVNite.dylib: Permission denied
    cp: /usr/lib/libXnVCNite.dylib: Permission denied
    cp: /usr/lib/XnVNite.net.dll: Permission denied
    mkdir: /usr/include/nite: Permission denied
    usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
    cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file … target_directory
    cp: /usr/lib/libXnVFeatures.dylib: Permission denied
    mkdir: /usr/etc/primesense/XnVFeatures: Permission denied
    usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
    cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file … target_directory
    Failed: Error!
    cp: /usr/lib/libXnVHandGenerator.dylib: Permission denied
    mkdir: /usr/etc/primesense/XnVHandGenerator: Permission denied
    cp: /usr/etc/primesense/XnVHandGenerator: Permission denied
    Failed: Error!
    Please enter your PrimeSense license key: 0KOIk2JeIBYClPWVnMoRKn5cdY4=
    Failed: Failed to write to the file!
    make -C Samples/PointServer CFG=Release -f PointServer.mak ; make -C Samples/SingleControl CFG=Release -f SingleControl.mak ; make -C Samples/PointViewer CFG=Release -f PointViewer.mak ; make -C Samples/Boxes CFG=Release -f Boxes.mak ; make -C Samples/TrackPad CFG=Release -f TrackPad.mak ; make -C Samples/CircleControl CFG=Release -f CircleControl.mak ; make -C Samples/SceneAnalysis CFG=Release -f SceneAnalysis.mak ; make -C Samples/Players CFG=Release -f Players.mak ;
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I/usr/include/nite -I/usr/include/ni -DXN_SSE -o Release/main.o ../PointServer/main.cpp
    ../PointServer/main.cpp:22:31: error: XnVSessionManager.h: No such file or directory
    ../PointServer/main.cpp:23:29: error: XnVPointControl.h: No such file or directory
    ../PointServer/main.cpp:24:39: error: XnVMultiProcessFlowServer.h: No such file or directory
    ../PointServer/main.cpp:25:33: error: XnVHandPointContext.h: No such file or directory
    ../PointServer/main.cpp:44: error: ‘xn’ has not been declared
    ../PointServer/main.cpp:44: error: expected constructor, destructor, or type conversion before ‘g_Context’
    ../PointServer/main.cpp:45: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointServer/main.cpp: In function ‘void CleanupExit()’:
    ../PointServer/main.cpp:50: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointServer/main.cpp:51: error: type ‘’ argument given to ‘delete’, expected pointer
    ../PointServer/main.cpp:55: error: ‘g_Context’ was not declared in this scope
    ../PointServer/main.cpp: In function ‘int main(int, char**)’:
    ../PointServer/main.cpp:74: error: ‘g_Context’ was not declared in this scope
    ../PointServer/main.cpp:82: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointServer/main.cpp:82: error: expected type-specifier before ‘XnVSessionManager’
    ../PointServer/main.cpp:82: error: expected `;’ before ‘XnVSessionManager’
    ../PointServer/main.cpp:99: error: ‘XnVMultiProcessFlowServer’ does not name a type
    ../PointServer/main.cpp:100: error: ‘writer’ was not declared in this scope
    ../PointServer/main.cpp:22:31: error: XnVSessionManager.h: No such file or directory
    ../PointServer/main.cpp:23:29: error: XnVPointControl.h: No such file or directory
    ../PointServer/main.cpp:24:39: error: XnVMultiProcessFlowServer.h: No such file or directory
    ../PointServer/main.cpp:25:33: error: XnVHandPointContext.h: No such file or directory
    ../PointServer/main.cpp:44: error: ‘xn’ has not been declared
    ../PointServer/main.cpp:44: error: expected constructor, destructor, or type conversion before ‘g_Context’
    ../PointServer/main.cpp:45: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointServer/main.cpp: In function ‘void CleanupExit()’:
    ../PointServer/main.cpp:50: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointServer/main.cpp:51: error: type ‘’ argument given to ‘delete’, expected pointer
    ../PointServer/main.cpp:55: error: ‘g_Context’ was not declared in this scope
    ../PointServer/main.cpp: In function ‘int main(int, char**)’:
    ../PointServer/main.cpp:74: error: ‘g_Context’ was not declared in this scope
    ../PointServer/main.cpp:82: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointServer/main.cpp:82: error: expected type-specifier before ‘XnVSessionManager’
    ../PointServer/main.cpp:82: error: expected `;’ before ‘XnVSessionManager’
    ../PointServer/main.cpp:99: error: ‘XnVMultiProcessFlowServer’ does not name a type
    ../PointServer/main.cpp:100: error: ‘writer’ was not declared in this scope
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccqkvRPq.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I/usr/include/nite -I/usr/include/ni -DXN_SSE -o Release/main.o ../SingleControl/main.cpp
    ../SingleControl/main.cpp:28:31: error: XnVSessionManager.h: No such file or directory
    ../SingleControl/main.cpp:29:39: error: XnVMultiProcessFlowClient.h: No such file or directory
    ../SingleControl/main.cpp:30:29: error: XnVWaveDetector.h: No such file or directory
    ../SingleControl/main.cpp:65: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../SingleControl/main.cpp:65: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../SingleControl/main.cpp: In function ‘void OnPointUpdate(int)’:
    ../SingleControl/main.cpp:67: error: ‘pContext’ was not declared in this scope
    ../SingleControl/main.cpp: In function ‘int main(int, char**)’:
    ../SingleControl/main.cpp:77: error: ‘xn’ has not been declared
    ../SingleControl/main.cpp:77: error: expected `;’ before ‘context’
    ../SingleControl/main.cpp:78: error: ‘XnVSessionGenerator’ was not declared in this scope
    ../SingleControl/main.cpp:78: error: ‘pSessionGenerator’ was not declared in this scope
    ../SingleControl/main.cpp:84: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:89: error: expected type-specifier before ‘XnVMultiProcessFlowClient’
    ../SingleControl/main.cpp:89: error: expected `;’ before ‘XnVMultiProcessFlowClient’
    ../SingleControl/main.cpp:91: error: ‘XnVMultiProcessFlowClient’ was not declared in this scope
    ../SingleControl/main.cpp:91: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:91: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:95: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:103: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:111: error: expected type-specifier before ‘XnVSessionManager’
    ../SingleControl/main.cpp:111: error: expected `;’ before ‘XnVSessionManager’
    ../SingleControl/main.cpp:112: error: ‘XnVSessionManager’ was not declared in this scope
    ../SingleControl/main.cpp:112: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:112: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:116: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:131: error: ‘XnVWaveDetector’ was not declared in this scope
    ../SingleControl/main.cpp:131: error: expected `;’ before ‘wc’
    ../SingleControl/main.cpp:132: error: ‘wc’ was not declared in this scope
    ../SingleControl/main.cpp:144: error: ‘XnVMultiProcessFlowClient’ was not declared in this scope
    ../SingleControl/main.cpp:144: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:144: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:148: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:149: error: ‘XnVSessionManager’ was not declared in this scope
    ../SingleControl/main.cpp:149: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:149: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:153: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:155: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:28:31: error: XnVSessionManager.h: No such file or directory
    ../SingleControl/main.cpp:29:39: error: XnVMultiProcessFlowClient.h: No such file or directory
    ../SingleControl/main.cpp:30:29: error: XnVWaveDetector.h: No such file or directory
    ../SingleControl/main.cpp:65: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../SingleControl/main.cpp:65: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../SingleControl/main.cpp: In function ‘void OnPointUpdate(int)’:
    ../SingleControl/main.cpp:67: error: ‘pContext’ was not declared in this scope
    ../SingleControl/main.cpp: In function ‘int main(int, char**)’:
    ../SingleControl/main.cpp:77: error: ‘xn’ has not been declared
    ../SingleControl/main.cpp:77: error: expected `;’ before ‘context’
    ../SingleControl/main.cpp:78: error: ‘XnVSessionGenerator’ was not declared in this scope
    ../SingleControl/main.cpp:78: error: ‘pSessionGenerator’ was not declared in this scope
    ../SingleControl/main.cpp:84: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:89: error: expected type-specifier before ‘XnVMultiProcessFlowClient’
    ../SingleControl/main.cpp:89: error: expected `;’ before ‘XnVMultiProcessFlowClient’
    ../SingleControl/main.cpp:91: error: ‘XnVMultiProcessFlowClient’ was not declared in this scope
    ../SingleControl/main.cpp:91: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:91: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:95: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:103: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:111: error: expected type-specifier before ‘XnVSessionManager’
    ../SingleControl/main.cpp:111: error: expected `;’ before ‘XnVSessionManager’
    ../SingleControl/main.cpp:112: error: ‘XnVSessionManager’ was not declared in this scope
    ../SingleControl/main.cpp:112: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:112: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:116: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:131: error: ‘XnVWaveDetector’ was not declared in this scope
    ../SingleControl/main.cpp:131: error: expected `;’ before ‘wc’
    ../SingleControl/main.cpp:132: error: ‘wc’ was not declared in this scope
    ../SingleControl/main.cpp:144: error: ‘XnVMultiProcessFlowClient’ was not declared in this scope
    ../SingleControl/main.cpp:144: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:144: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:148: error: ‘context’ was not declared in this scope
    ../SingleControl/main.cpp:149: error: ‘XnVSessionManager’ was not declared in this scope
    ../SingleControl/main.cpp:149: error: expected primary-expression before ‘)’ token
    ../SingleControl/main.cpp:149: error: expected `)’ before ‘pSessionGenerator’
    ../SingleControl/main.cpp:153: error: type ‘’ argument given to ‘delete’, expected pointer
    ../SingleControl/main.cpp:155: error: ‘context’ was not declared in this scope
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//cczff5MZ.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../PointViewer -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../PointViewer/main.cpp
    ../PointViewer/main.cpp:27:21: error: XnVNite.h: No such file or directory
    In file included from ../PointViewer/main.cpp:29:
    ../PointViewer/PointDrawer.h:26:29: error: XnVPointControl.h: No such file or directory
    In file included from ../PointViewer/main.cpp:29:
    ../PointViewer/PointDrawer.h:41: error: expected class-name before ‘{’ token
    ../PointViewer/PointDrawer.h:50: error: ‘XnVMessage’ has not been declared
    ../PointViewer/PointDrawer.h:55: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../PointViewer/PointDrawer.h:55: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../PointViewer/PointDrawer.h:59: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../PointViewer/PointDrawer.h:59: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../PointViewer/main.cpp:61: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointViewer/main.cpp:62: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointViewer/main.cpp: In function ‘void glutDisplay()’:
    ../PointViewer/main.cpp:139: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp: In function ‘void glutKeyboard(unsigned char, int, int)’:
    ../PointViewer/main.cpp:189: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp: In function ‘int main(int, char**)’:
    ../PointViewer/main.cpp:233: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp:233: error: expected type-specifier before ‘XnVSessionManager’
    ../PointViewer/main.cpp:233: error: expected `;’ before ‘XnVSessionManager’
    ../PointViewer/main.cpp:240: error: ‘g_pFlowRouter’ was not declared in this scope
    ../PointViewer/main.cpp:240: error: expected type-specifier before ‘XnVFlowRouter’
    ../PointViewer/main.cpp:240: error: expected `;’ before ‘XnVFlowRouter’
    ../PointViewer/main.cpp:245: error: ‘class XnVPointDrawer’ has no member named ‘RegisterNoPoints’
    ../PointViewer/main.cpp:27:21: error: XnVNite.h: No such file or directory
    In file included from ../PointViewer/main.cpp:29:
    ../PointViewer/PointDrawer.h:26:29: error: XnVPointControl.h: No such file or directory
    In file included from ../PointViewer/main.cpp:29:
    ../PointViewer/PointDrawer.h:41: error: expected class-name before ‘{’ token
    ../PointViewer/PointDrawer.h:50: error: ‘XnVMessage’ has not been declared
    ../PointViewer/PointDrawer.h:55: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../PointViewer/PointDrawer.h:55: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../PointViewer/PointDrawer.h:59: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../PointViewer/PointDrawer.h:59: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../PointViewer/main.cpp:61: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointViewer/main.cpp:62: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../PointViewer/main.cpp: In function ‘void glutDisplay()’:
    ../PointViewer/main.cpp:139: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp: In function ‘void glutKeyboard(unsigned char, int, int)’:
    ../PointViewer/main.cpp:189: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp: In function ‘int main(int, char**)’:
    ../PointViewer/main.cpp:233: error: ‘g_pSessionManager’ was not declared in this scope
    ../PointViewer/main.cpp:233: error: expected type-specifier before ‘XnVSessionManager’
    ../PointViewer/main.cpp:233: error: expected `;’ before ‘XnVSessionManager’
    ../PointViewer/main.cpp:240: error: ‘g_pFlowRouter’ was not declared in this scope
    ../PointViewer/main.cpp:240: error: expected type-specifier before ‘XnVFlowRouter’
    ../PointViewer/main.cpp:240: error: expected `;’ before ‘XnVFlowRouter’
    ../PointViewer/main.cpp:245: error: ‘class XnVPointDrawer’ has no member named ‘RegisterNoPoints’
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//cc98pxMW.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../Boxes -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../Boxes/main.cpp
    ../Boxes/main.cpp:22:33: error: XnVHandPointContext.h: No such file or directory
    ../Boxes/main.cpp:23:31: error: XnVSessionManager.h: No such file or directory
    ../Boxes/main.cpp:24:27: error: XnVFlowRouter.h: No such file or directory
    ../Boxes/main.cpp:25:30: error: XnVSwipeDetector.h: No such file or directory
    ../Boxes/main.cpp:26:35: error: XnVSelectableSlider1D.h: No such file or directory
    ../Boxes/main.cpp:27:31: error: XnVSteadyDetector.h: No such file or directory
    ../Boxes/main.cpp:28:28: error: XnVBroadcaster.h: No such file or directory
    ../Boxes/main.cpp:29:29: error: XnVPushDetector.h: No such file or directory
    In file included from ../Boxes/main.cpp:101:
    ../Boxes/MyBox.h:31: error: expected class-name before ‘{’ token
    ../Boxes/MyBox.h:204: error: ‘XnVMessage’ has not been declared
    ../Boxes/MyBox.h:228: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../Boxes/MyBox.h:228: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../Boxes/MyBox.h:310: error: ISO C++ forbids declaration of ‘XnVPushDetector’ with no type
    ../Boxes/MyBox.h:310: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:311: error: ISO C++ forbids declaration of ‘XnVFlowRouter’ with no type
    ../Boxes/MyBox.h:311: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:312: error: ISO C++ forbids declaration of ‘XnVSwipeDetector’ with no type
    ../Boxes/MyBox.h:312: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:313: error: ISO C++ forbids declaration of ‘XnVSteadyDetector’ with no type
    ../Boxes/MyBox.h:313: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:314: error: ‘XnVBroadcaster’ does not name a type
    ../Boxes/MyBox.h:316: error: ‘XnVEvent’ does not name a type
    ../Boxes/MyBox.h: In constructor ‘MyBox::MyBox(const XnPoint3D&, const XnPoint3D&)’:
    ../Boxes/MyBox.h:37: error: class ‘MyBox’ does not have any field named ‘XnVPointControl’
    ../Boxes/MyBox.h:44: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:44: error: expected type-specifier before ‘XnVFlowRouter’
    ../Boxes/MyBox.h:44: error: expected `;’ before ‘XnVFlowRouter’
    ../Boxes/MyBox.h:45: error: ‘m_pPushDetector’ was not declared in this scope
    ../Boxes/MyBox.h:45: error: expected type-specifier before ‘XnVPushDetector’
    ../Boxes/MyBox.h:45: error: expected `;’ before ‘XnVPushDetector’
    ../Boxes/MyBox.h:46: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h:46: error: expected type-specifier before ‘XnVSwipeDetector’
    ../Boxes/MyBox.h:46: error: expected `;’ before ‘XnVSwipeDetector’
    ../Boxes/MyBox.h:47: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h:47: error: expected type-specifier before ‘XnVSteadyDetector’
    ../Boxes/MyBox.h:47: error: expected `;’ before ‘XnVSteadyDetector’
    ../Boxes/MyBox.h:50: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h:57: error: ‘RegisterActivate’ was not declared in this scope
    ../Boxes/MyBox.h:58: error: ‘RegisterDeactivate’ was not declared in this scope
    ../Boxes/MyBox.h:59: error: ‘RegisterPrimaryPointCreate’ was not declared in this scope
    ../Boxes/MyBox.h:60: error: ‘RegisterPrimaryPointDestroy’ was not declared in this scope
    ../Boxes/MyBox.h: In destructor ‘MyBox::~MyBox()’:
    ../Boxes/MyBox.h:76: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h:76: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:77: error: ‘m_pPushDetector’ was not declared in this scope
    ../Boxes/MyBox.h:79: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/MyBox.h:80: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/MyBox.h:81: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h:82: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::SetSteadyActive()’:
    ../Boxes/MyBox.h:189: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:189: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::SetSwipeActive()’:
    ../Boxes/MyBox.h:190: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:190: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void* MyBox::RegisterLeave(void*, void (*)(void*))’:
    ../Boxes/MyBox.h:196: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::UnregisterLeave(void*)’:
    ../Boxes/MyBox.h:201: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::Update(int*)’:
    ../Boxes/MyBox.h:206: error: ‘XnVPointControl’ has not been declared
    ../Boxes/MyBox.h:207: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h: In static member function ‘static void MyBox::Broadcaster_OnPrimaryCreate(int)’:
    ../Boxes/MyBox.h:230: error: ‘cxt’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::Leave()’:
    ../Boxes/MyBox.h:301: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/main.cpp: At global scope:
    ../Boxes/main.cpp:104: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:105: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:107: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:123: error: ‘XnVDirection’ has not been declared
    ../Boxes/main.cpp: In function ‘void MainSlider_OnSelect(XnInt32, int, void*)’:
    ../Boxes/main.cpp:128: error: ‘DIRECTION_UP’ was not declared in this scope
    ../Boxes/main.cpp:128: error: ‘DIRECTION_FORWARD’ was not declared in this scope
    ../Boxes/main.cpp:130: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:134: error: ‘XnVDirectionAsString’ was not declared in this scope
    ../Boxes/main.cpp: At global scope:
    ../Boxes/main.cpp:154: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../Boxes/main.cpp:154: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../Boxes/main.cpp: In function ‘void CleanupExit()’:
    ../Boxes/main.cpp:211: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp:212: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/main.cpp:216: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:217: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void glutDisplay()’:
    ../Boxes/main.cpp:234: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void MyBox_Leave(void*)’:
    ../Boxes/main.cpp:303: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:303: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void SessionStart(const XnPoint3D&, void*)’:
    ../Boxes/main.cpp:309: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:309: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void SessionEnd(void*)’:
    ../Boxes/main.cpp:314: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘int main(int, char**)’:
    ../Boxes/main.cpp:348: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp:348: error: expected type-specifier before ‘XnVSessionManager’
    ../Boxes/main.cpp:348: error: expected `;’ before ‘XnVSessionManager’
    ../Boxes/main.cpp:353: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/main.cpp:363: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp:363: error: expected type-specifier before ‘XnVSelectableSlider1D’
    ../Boxes/main.cpp:363: error: expected `;’ before ‘XnVSelectableSlider1D’
    ../Boxes/main.cpp:374: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:374: error: expected type-specifier before ‘XnVFlowRouter’
    ../Boxes/main.cpp:374: error: expected `;’ before ‘XnVFlowRouter’
    ../Boxes/main.cpp:22:33: error: XnVHandPointContext.h: No such file or directory
    ../Boxes/main.cpp:23:31: error: XnVSessionManager.h: No such file or directory
    ../Boxes/main.cpp:24:27: error: XnVFlowRouter.h: No such file or directory
    ../Boxes/main.cpp:25:30: error: XnVSwipeDetector.h: No such file or directory
    ../Boxes/main.cpp:26:35: error: XnVSelectableSlider1D.h: No such file or directory
    ../Boxes/main.cpp:27:31: error: XnVSteadyDetector.h: No such file or directory
    ../Boxes/main.cpp:28:28: error: XnVBroadcaster.h: No such file or directory
    ../Boxes/main.cpp:29:29: error: XnVPushDetector.h: No such file or directory
    In file included from ../Boxes/main.cpp:101:
    ../Boxes/MyBox.h:31: error: expected class-name before ‘{’ token
    ../Boxes/MyBox.h:204: error: ‘XnVMessage’ has not been declared
    ../Boxes/MyBox.h:228: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../Boxes/MyBox.h:228: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../Boxes/MyBox.h:310: error: ISO C++ forbids declaration of ‘XnVPushDetector’ with no type
    ../Boxes/MyBox.h:310: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:311: error: ISO C++ forbids declaration of ‘XnVFlowRouter’ with no type
    ../Boxes/MyBox.h:311: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:312: error: ISO C++ forbids declaration of ‘XnVSwipeDetector’ with no type
    ../Boxes/MyBox.h:312: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:313: error: ISO C++ forbids declaration of ‘XnVSteadyDetector’ with no type
    ../Boxes/MyBox.h:313: error: expected ‘;’ before ‘*’ token
    ../Boxes/MyBox.h:314: error: ‘XnVBroadcaster’ does not name a type
    ../Boxes/MyBox.h:316: error: ‘XnVEvent’ does not name a type
    ../Boxes/MyBox.h: In constructor ‘MyBox::MyBox(const XnPoint3D&, const XnPoint3D&)’:
    ../Boxes/MyBox.h:37: error: class ‘MyBox’ does not have any field named ‘XnVPointControl’
    ../Boxes/MyBox.h:44: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:44: error: expected type-specifier before ‘XnVFlowRouter’
    ../Boxes/MyBox.h:44: error: expected `;’ before ‘XnVFlowRouter’
    ../Boxes/MyBox.h:45: error: ‘m_pPushDetector’ was not declared in this scope
    ../Boxes/MyBox.h:45: error: expected type-specifier before ‘XnVPushDetector’
    ../Boxes/MyBox.h:45: error: expected `;’ before ‘XnVPushDetector’
    ../Boxes/MyBox.h:46: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h:46: error: expected type-specifier before ‘XnVSwipeDetector’
    ../Boxes/MyBox.h:46: error: expected `;’ before ‘XnVSwipeDetector’
    ../Boxes/MyBox.h:47: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h:47: error: expected type-specifier before ‘XnVSteadyDetector’
    ../Boxes/MyBox.h:47: error: expected `;’ before ‘XnVSteadyDetector’
    ../Boxes/MyBox.h:50: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h:57: error: ‘RegisterActivate’ was not declared in this scope
    ../Boxes/MyBox.h:58: error: ‘RegisterDeactivate’ was not declared in this scope
    ../Boxes/MyBox.h:59: error: ‘RegisterPrimaryPointCreate’ was not declared in this scope
    ../Boxes/MyBox.h:60: error: ‘RegisterPrimaryPointDestroy’ was not declared in this scope
    ../Boxes/MyBox.h: In destructor ‘MyBox::~MyBox()’:
    ../Boxes/MyBox.h:76: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h:76: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:77: error: ‘m_pPushDetector’ was not declared in this scope
    ../Boxes/MyBox.h:79: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/MyBox.h:80: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/MyBox.h:81: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h:82: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::SetSteadyActive()’:
    ../Boxes/MyBox.h:189: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:189: error: ‘m_pSteadyDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::SetSwipeActive()’:
    ../Boxes/MyBox.h:190: error: ‘m_pInnerFlowRouter’ was not declared in this scope
    ../Boxes/MyBox.h:190: error: ‘m_pSwipeDetector’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void* MyBox::RegisterLeave(void*, void (*)(void*))’:
    ../Boxes/MyBox.h:196: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::UnregisterLeave(void*)’:
    ../Boxes/MyBox.h:201: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::Update(int*)’:
    ../Boxes/MyBox.h:206: error: ‘XnVPointControl’ has not been declared
    ../Boxes/MyBox.h:207: error: ‘m_Broadcaster’ was not declared in this scope
    ../Boxes/MyBox.h: In static member function ‘static void MyBox::Broadcaster_OnPrimaryCreate(int)’:
    ../Boxes/MyBox.h:230: error: ‘cxt’ was not declared in this scope
    ../Boxes/MyBox.h: In member function ‘void MyBox::Leave()’:
    ../Boxes/MyBox.h:301: error: ‘m_LeaveCBs’ was not declared in this scope
    ../Boxes/main.cpp: At global scope:
    ../Boxes/main.cpp:104: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:105: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:107: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../Boxes/main.cpp:123: error: ‘XnVDirection’ has not been declared
    ../Boxes/main.cpp: In function ‘void MainSlider_OnSelect(XnInt32, int, void*)’:
    ../Boxes/main.cpp:128: error: ‘DIRECTION_UP’ was not declared in this scope
    ../Boxes/main.cpp:128: error: ‘DIRECTION_FORWARD’ was not declared in this scope
    ../Boxes/main.cpp:130: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:134: error: ‘XnVDirectionAsString’ was not declared in this scope
    ../Boxes/main.cpp: At global scope:
    ../Boxes/main.cpp:154: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../Boxes/main.cpp:154: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../Boxes/main.cpp: In function ‘void CleanupExit()’:
    ../Boxes/main.cpp:211: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp:212: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/main.cpp:216: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:217: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void glutDisplay()’:
    ../Boxes/main.cpp:234: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void MyBox_Leave(void*)’:
    ../Boxes/main.cpp:303: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:303: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void SessionStart(const XnPoint3D&, void*)’:
    ../Boxes/main.cpp:309: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:309: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘void SessionEnd(void*)’:
    ../Boxes/main.cpp:314: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp: In function ‘int main(int, char**)’:
    ../Boxes/main.cpp:348: error: ‘g_pSessionManager’ was not declared in this scope
    ../Boxes/main.cpp:348: error: expected type-specifier before ‘XnVSessionManager’
    ../Boxes/main.cpp:348: error: expected `;’ before ‘XnVSessionManager’
    ../Boxes/main.cpp:353: error: type ‘’ argument given to ‘delete’, expected pointer
    ../Boxes/main.cpp:363: error: ‘g_pMainSlider’ was not declared in this scope
    ../Boxes/main.cpp:363: error: expected type-specifier before ‘XnVSelectableSlider1D’
    ../Boxes/main.cpp:363: error: expected `;’ before ‘XnVSelectableSlider1D’
    ../Boxes/main.cpp:374: error: ‘g_pMainFlowRouter’ was not declared in this scope
    ../Boxes/main.cpp:374: error: expected type-specifier before ‘XnVFlowRouter’
    ../Boxes/main.cpp:374: error: expected `;’ before ‘XnVFlowRouter’
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccISroFc.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../TrackPad -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../TrackPad/main.cpp
    ../TrackPad/main.cpp:23:33: error: XnVHandPointContext.h: No such file or directory
    ../TrackPad/main.cpp:24:31: error: XnVSessionManager.h: No such file or directory
    ../TrackPad/main.cpp:25:35: error: XnVSelectableSlider2D.h: No such file or directory
    ../TrackPad/main.cpp:50: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../TrackPad/main.cpp:51: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../TrackPad/main.cpp:136: warning: non-local variable ‘ CurrentItem’ uses anonymous type
    ../TrackPad/main.cpp:158: error: ‘XnVDirection’ has not been declared
    ../TrackPad/main.cpp: In function ‘void TrackPad_ItemSelect(XnInt32, XnInt32, int, void*)’:
    ../TrackPad/main.cpp:160: error: ‘XnVDirectionAsString’ was not declared in this scope
    ../TrackPad/main.cpp: At global scope:
    ../TrackPad/main.cpp:164: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../TrackPad/main.cpp:164: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../TrackPad/main.cpp: In function ‘void TrackPad_PrimaryCreate(int)’:
    ../TrackPad/main.cpp:166: error: ‘cxt’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void CleanupExit()’:
    ../TrackPad/main.cpp:269: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:290: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:294: error: type ‘’ argument given to ‘delete’, expected pointer
    ../TrackPad/main.cpp:298: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:300: error: type ‘’ argument given to ‘delete’, expected pointer
    ../TrackPad/main.cpp: In function ‘void InitiateTrackPad()’:
    ../TrackPad/main.cpp:311: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void glutDisplay()’:
    ../TrackPad/main.cpp:323: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void AllocateAllGlobals()’:
    ../TrackPad/main.cpp:450: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:452: error: expected type-specifier before ‘XnVSessionManager’
    ../TrackPad/main.cpp:452: error: expected `;’ before ‘XnVSessionManager’
    ../TrackPad/main.cpp:454: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:460: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:462: error: expected type-specifier before ‘XnVSelectableSlider2D’
    ../TrackPad/main.cpp:462: error: expected `;’ before ‘XnVSelectableSlider2D’
    ../TrackPad/main.cpp:464: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘int main(int, char**)’:
    ../TrackPad/main.cpp:478: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:487: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:23:33: error: XnVHandPointContext.h: No such file or directory
    ../TrackPad/main.cpp:24:31: error: XnVSessionManager.h: No such file or directory
    ../TrackPad/main.cpp:25:35: error: XnVSelectableSlider2D.h: No such file or directory
    ../TrackPad/main.cpp:50: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../TrackPad/main.cpp:51: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../TrackPad/main.cpp:136: warning: non-local variable ‘ CurrentItem’ uses anonymous type
    ../TrackPad/main.cpp:158: error: ‘XnVDirection’ has not been declared
    ../TrackPad/main.cpp: In function ‘void TrackPad_ItemSelect(XnInt32, XnInt32, int, void*)’:
    ../TrackPad/main.cpp:160: error: ‘XnVDirectionAsString’ was not declared in this scope
    ../TrackPad/main.cpp: At global scope:
    ../TrackPad/main.cpp:164: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../TrackPad/main.cpp:164: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../TrackPad/main.cpp: In function ‘void TrackPad_PrimaryCreate(int)’:
    ../TrackPad/main.cpp:166: error: ‘cxt’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void CleanupExit()’:
    ../TrackPad/main.cpp:269: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:290: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:294: error: type ‘’ argument given to ‘delete’, expected pointer
    ../TrackPad/main.cpp:298: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:300: error: type ‘’ argument given to ‘delete’, expected pointer
    ../TrackPad/main.cpp: In function ‘void InitiateTrackPad()’:
    ../TrackPad/main.cpp:311: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void glutDisplay()’:
    ../TrackPad/main.cpp:323: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘void AllocateAllGlobals()’:
    ../TrackPad/main.cpp:450: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:452: error: expected type-specifier before ‘XnVSessionManager’
    ../TrackPad/main.cpp:452: error: expected `;’ before ‘XnVSessionManager’
    ../TrackPad/main.cpp:454: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:460: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp:462: error: expected type-specifier before ‘XnVSelectableSlider2D’
    ../TrackPad/main.cpp:462: error: expected `;’ before ‘XnVSelectableSlider2D’
    ../TrackPad/main.cpp:464: error: ‘g_pTrackPad’ was not declared in this scope
    ../TrackPad/main.cpp: In function ‘int main(int, char**)’:
    ../TrackPad/main.cpp:478: error: ‘g_pSessionManager’ was not declared in this scope
    ../TrackPad/main.cpp:487: error: ‘g_pTrackPad’ was not declared in this scope
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccNfBvAG.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../CircleControl -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../CircleControl/main.cpp
    ../CircleControl/main.cpp:25:33: error: XnVHandPointContext.h: No such file or directory
    ../CircleControl/main.cpp:26:31: error: XnVSessionManager.h: No such file or directory
    ../CircleControl/main.cpp:27:31: error: XnVCircleDetector.h: No such file or directory
    ../CircleControl/main.cpp:49: error: ‘xn’ has not been declared
    ../CircleControl/main.cpp:49: error: expected constructor, destructor, or type conversion before ‘g_Context’
    ../CircleControl/main.cpp:50: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../CircleControl/main.cpp:51: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../CircleControl/main.cpp: In function ‘void DrawCircle(const XnPoint3D&, double, int, double, double, double)’:
    ../CircleControl/main.cpp:133: error: ‘XnVMathCommon’ has not been declared
    ../CircleControl/main.cpp:134: error: ‘XnV3DVector’ was not declared in this scope
    ../CircleControl/main.cpp:134: error: expected `;’ before ‘vecCurr’
    ../CircleControl/main.cpp:140: error: ‘vecCurr’ was not declared in this scope
    ../CircleControl/main.cpp:140: error: ‘sin’ was not declared in this scope
    ../CircleControl/main.cpp:140: error: ‘cos’ was not declared in this scope
    ../CircleControl/main.cpp: In function ‘void glutDisplay()’:
    ../CircleControl/main.cpp:173: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp:176: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:200: error: ‘XnV3DVector’ was not declared in this scope
    ../CircleControl/main.cpp:200: error: expected `;’ before ‘vec’
    ../CircleControl/main.cpp:201: error: ‘vec’ was not declared in this scope
    ../CircleControl/main.cpp:201: error: ‘sin’ was not declared in this scope
    ../CircleControl/main.cpp:201: error: ‘cos’ was not declared in this scope
    ../CircleControl/main.cpp: In function ‘void CleanupExit()’:
    ../CircleControl/main.cpp:216: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:217: error: type ‘’ argument given to ‘delete’, expected pointer
    ../CircleControl/main.cpp:220: error: ‘g_pCircle’ was not declared in this scope
    ../CircleControl/main.cpp:222: error: type ‘’ argument given to ‘delete’, expected pointer
    ../CircleControl/main.cpp:226: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp: At global scope:
    ../CircleControl/main.cpp:305: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../CircleControl/main.cpp:305: error: ISO C++ forbids declaration of ‘XnVCircle’ with no type
    ../CircleControl/main.cpp: In function ‘void CircleCB(XnFloat, XnBool, int)’:
    ../CircleControl/main.cpp:309: error: ‘fmod’ was not declared in this scope
    ../CircleControl/main.cpp:309: error: ‘XnVMathCommon’ has not been declared
    ../CircleControl/main.cpp: At global scope:
    ../CircleControl/main.cpp:312: error: ‘XnVCircleDetector’ has not been declared
    ../CircleControl/main.cpp:312: error: expected ‘,’ or ‘…’ before ‘reason’
    ../CircleControl/main.cpp:318: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../CircleControl/main.cpp:318: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../CircleControl/main.cpp: In function ‘int main(int, char**)’:
    ../CircleControl/main.cpp:338: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp:346: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:346: error: expected type-specifier before ‘XnVSessionManager’
    ../CircleControl/main.cpp:346: error: expected `;’ before ‘XnVSessionManager’
    ../CircleControl/main.cpp:360: error: ‘g_pCircle’ was not declared in this scope
    ../CircleControl/main.cpp:360: error: expected type-specifier before ‘XnVCircleDetector’
    ../CircleControl/main.cpp:360: error: expected `;’ before ‘XnVCircleDetector’
    ../CircleControl/main.cpp:25:33: error: XnVHandPointContext.h: No such file or directory
    ../CircleControl/main.cpp:26:31: error: XnVSessionManager.h: No such file or directory
    ../CircleControl/main.cpp:27:31: error: XnVCircleDetector.h: No such file or directory
    ../CircleControl/main.cpp:49: error: ‘xn’ has not been declared
    ../CircleControl/main.cpp:49: error: expected constructor, destructor, or type conversion before ‘g_Context’
    ../CircleControl/main.cpp:50: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../CircleControl/main.cpp:51: error: expected constructor, destructor, or type conversion before ‘*’ token
    ../CircleControl/main.cpp: In function ‘void DrawCircle(const XnPoint3D&, double, int, double, double, double)’:
    ../CircleControl/main.cpp:133: error: ‘XnVMathCommon’ has not been declared
    ../CircleControl/main.cpp:134: error: ‘XnV3DVector’ was not declared in this scope
    ../CircleControl/main.cpp:134: error: expected `;’ before ‘vecCurr’
    ../CircleControl/main.cpp:140: error: ‘vecCurr’ was not declared in this scope
    ../CircleControl/main.cpp:140: error: ‘sin’ was not declared in this scope
    ../CircleControl/main.cpp:140: error: ‘cos’ was not declared in this scope
    ../CircleControl/main.cpp: In function ‘void glutDisplay()’:
    ../CircleControl/main.cpp:173: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp:176: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:200: error: ‘XnV3DVector’ was not declared in this scope
    ../CircleControl/main.cpp:200: error: expected `;’ before ‘vec’
    ../CircleControl/main.cpp:201: error: ‘vec’ was not declared in this scope
    ../CircleControl/main.cpp:201: error: ‘sin’ was not declared in this scope
    ../CircleControl/main.cpp:201: error: ‘cos’ was not declared in this scope
    ../CircleControl/main.cpp: In function ‘void CleanupExit()’:
    ../CircleControl/main.cpp:216: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:217: error: type ‘’ argument given to ‘delete’, expected pointer
    ../CircleControl/main.cpp:220: error: ‘g_pCircle’ was not declared in this scope
    ../CircleControl/main.cpp:222: error: type ‘’ argument given to ‘delete’, expected pointer
    ../CircleControl/main.cpp:226: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp: At global scope:
    ../CircleControl/main.cpp:305: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../CircleControl/main.cpp:305: error: ISO C++ forbids declaration of ‘XnVCircle’ with no type
    ../CircleControl/main.cpp: In function ‘void CircleCB(XnFloat, XnBool, int)’:
    ../CircleControl/main.cpp:309: error: ‘fmod’ was not declared in this scope
    ../CircleControl/main.cpp:309: error: ‘XnVMathCommon’ has not been declared
    ../CircleControl/main.cpp: At global scope:
    ../CircleControl/main.cpp:312: error: ‘XnVCircleDetector’ has not been declared
    ../CircleControl/main.cpp:312: error: expected ‘,’ or ‘…’ before ‘reason’
    ../CircleControl/main.cpp:318: error: expected ‘,’ or ‘…’ before ‘*’ token
    ../CircleControl/main.cpp:318: error: ISO C++ forbids declaration of ‘XnVHandPointContext’ with no type
    ../CircleControl/main.cpp: In function ‘int main(int, char**)’:
    ../CircleControl/main.cpp:338: error: ‘g_Context’ was not declared in this scope
    ../CircleControl/main.cpp:346: error: ‘g_pSessionManager’ was not declared in this scope
    ../CircleControl/main.cpp:346: error: expected type-specifier before ‘XnVSessionManager’
    ../CircleControl/main.cpp:346: error: expected `;’ before ‘XnVSessionManager’
    ../CircleControl/main.cpp:360: error: ‘g_pCircle’ was not declared in this scope
    ../CircleControl/main.cpp:360: error: expected type-specifier before ‘XnVCircleDetector’
    ../CircleControl/main.cpp:360: error: expected `;’ before ‘XnVCircleDetector’
    lipo: can’t figure out the architecture type of: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccPGdh3T.out
    make[1]: *** [Release/main.o] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../SceneAnalysis -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../SceneAnalysis/main.cpp
    ../SceneAnalysis/main.cpp: In function ‘void StopCapture()’:
    ../SceneAnalysis/main.cpp:79: warning: ‘Unref’ is deprecated (declared at /usr/include/ni/XnCppWrapper.h:1017)
    ../SceneAnalysis/main.cpp: In function ‘void StopCapture()’:
    ../SceneAnalysis/main.cpp:79: warning: ‘Unref’ is deprecated (declared at /usr/include/ni/XnCppWrapper.h:1017)
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../SceneAnalysis -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/SceneDrawer.o ../SceneAnalysis/SceneDrawer.cpp
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../SceneAnalysis -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/kbhit.o ../SceneAnalysis/kbhit.cpp
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../SceneAnalysis -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/signal_catch.o ../SceneAnalysis/signal_catch.cpp
    g++ -o ../Bin/Sample-SceneAnalysis ./Release/main.o ./Release/SceneDrawer.o ./Release/kbhit.o ./Release/signal_catch.o -framework OpenGL -framework GLUT -arch i386 -arch x86_64 -L../Bin -lOpenNI -lXnVNite
    ld: library not found for -lXnVNite
    collect2: ld returned 1 exit status
    ld: library not found for -lXnVNite
    collect2: ld returned 1 exit status
    lipo: can’t open input file: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccXkVFXF.out (No such file or directory)
    make[1]: *** [../Bin/Sample-SceneAnalysis] Error 1
    mkdir -p Release
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/main.o ../Players/main.cpp
    ../Players/main.cpp: In function ‘void StopCapture()’:
    ../Players/main.cpp:71: warning: ‘Unref’ is deprecated (declared at /usr/include/ni/XnCppWrapper.h:1017)
    ../Players/main.cpp: In function ‘void StopCapture()’:
    ../Players/main.cpp:71: warning: ‘Unref’ is deprecated (declared at /usr/include/ni/XnCppWrapper.h:1017)
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/SceneDrawer.o ../Players/SceneDrawer.cpp
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/kbhit.o ../Players/kbhit.cpp
    g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite -I/usr/include/ni -DUSE_GLUT -DXN_SSE -o Release/signal_catch.o ../Players/signal_catch.cpp
    g++ -o ../Bin/Sample-Players ./Release/main.o ./Release/SceneDrawer.o ./Release/kbhit.o ./Release/signal_catch.o -framework OpenGL -framework GLUT -arch i386 -arch x86_64 -L../Bin -lOpenNI -lXnVNite
    ld: library not found for -lXnVNite
    collect2: ld returned 1 exit status
    ld: library not found for -lXnVNite
    collect2: ld returned 1 exit status
    lipo: can’t open input file: /var/folders/19/19KIcfK4GGOQSCogkMMMzk+++TI/-Tmp-//ccOHFZFl.out (No such file or directory)
    make[1]: *** [../Bin/Sample-Players] Error 1
    make: *** [all] Error 2

    __________________________________
    What do you think about that ?

    p

  4. steffen says:

    hi,

    i don’t even get past the (for OpenNI) required “sudo port install libusb-devel +universal”, getting this:

    Error: Requested variants “+universal” do not match original selection “”.
    Please use the same variants again, perform ‘port clean db46′ or specify the force option (-f).
    Error: Failed to install db46
    Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
    Error: The following dependencies were not installed: git-core python27 db46 gdbm readline sqlite3 rsync popt
    Error: Status 1 encountered during processing.

    any idea, what could help?

    • Månsteri says:

      Are you on Snow Leopard or Leopard?

      I don’t really know what is happening there, but make sure you have the latest Xcode version (3.2.5).

      Then run:
      sudo port clean db46
      sudo port selfupdate

      And then try again.

  5. Kat says:

    Hello!
    I have downloaded all the folders. This is all new to me.
    Could you explain where I should place each folder on my Mac?
    Thank you ever so much!
    K

    • Månsteri says:

      Hi Kat,

      It’s a bit more complicated than that. You need to run commands in the Terminal and do some other nerdy stuff.

      There should be readme files included in the downloaded files. Take a look at them to find some help. Unfortunately, I don’t have the time to write a detailed explanation right now.

      This link might help: http://www.oneseconds.com/dev.html

  6. DBK says:

    Hi…I was just wondering that inside the video, there are points called X,Y,Z…what are the points about? What does the numbers represent?

    Any help would be appreciated!

    Thanks a lot! :)

  7. Unknown says:

    But what does the coordinates X, Y and Z by itself means? What does it represents?
    Is it the distance between the sensor to the point of detection itself?

    • Månsteri says:

      From https://github.com/Sensebloom/OSCeleton#readme:

      “X coordinate of joint in interval [0.0, 1.0]
      Y coordinate of joint in interval [0.0, 1.0]
      Z coordinate of joint in interval [0.0, 7.0]”

      So the x-coordinate is 0-1 from left to right.
      The y-coordinate is 0-1 from up to down.
      The z-coordinate is the depth (distance from the Kinect)

  8. mikebluse says:

    I can run the command ./osceleton but can’t run the ./osceleton-osx and the OSCeletonToQC probably can’t receive any data from the osceleton. I have install the Max Runtime 6.0 .I don’t know what the problem.

  9. mikebluse says:

    below is my running result

    ./osceleton -q -p 8110 -w
    Initializing…
    Configured to send OSC messages to 127.0.0.1:8110
    Multipliers (x, y, z): 1.000000, 1.000000, 1.000000
    Offsets (x, y, z): 0.000000, 0.000000, 0.000000
    OSC Message format: Quartz Composer
    Initialized Kinect, looking for users…

    Warning: USB events thread – failed to set priority. This might cause loss of data…
    New User 1
    Calibration started for user 1
    Calibration complete, start tracking user 1

  10. Leon Trimble says:

    hi man, it says in osceleton that it can be run with the command -q for quartz composer, just like it can be run in ‘kitchen’ mode for animata. does this mean i don’t have to use the max/msp patch?

    • Månsteri says:

      Yes. You can send the OSC straight to QC with the -q command. It was a bit buggy at some point, not sure if it’s fixed now.

      But the QC example I posted is not going to work straight with that. I think you need to edit it a bit.

  11. assolyr says:

    Hello Matti
    I followed your instructions but it does not work ..
    Can you tell me why only the right foot appears in the viewer’s osceleton.qtz?
    thx

    Last login: Fri Feb 17 15:08:49 on ttys000
    Malouinesonore:~ denisgente$ /Users/denisgente/Documents/OpenNi/Sensebloom-OSCeleton/osceleton ./osceleton-osx -p 8110 -mx 2 -my -2 -mz -1 -ox -1 -oy 0.75 -oz 1 -a127.0.0.1
    Initializing…
    Configured to send OSC messages to 127.0.0.1:7110
    Multipliers (x, y, z): 1.000000, 1.000000, 1.000000
    Offsets (x, y, z): 0.000000, 0.000000, 0.000000
    OSC Message format: Default OSCeleton format
    Initialized Kinect, looking for users…

    New User 1
    Calibration started for user 1
    Calibration complete, start tracking user 1

    • Månsteri says:

      It looks like the different options (-p, -mx etc.) are not working for you for some reason.

      The -p option should set the port to 8110, but it is still sending to 7110:
      “Configured to send OSC messages to 127.0.0.1:7110″

      Is your Osceleton application actually called osceleton-osx? This blog post is pretty old and I think the name has changed to just osceleton.

      Try: ./osceleton -p 8110 -mx 2 -my -2 -mz -1 -ox -1 -oy 0.75 -oz 1 -a 127.0.0.1

Trackbacks/Pingbacks

  1. Tweets that mention OSCeleton With Quartz Composer « Månsteri:::[mons-te-ri] -- Topsy.com

Leave a Reply