If you have some extra money you’ll like to donate. That would be really helpful!

OpenKinect OSX wrapper guide

Installing from binaries:

Download as3kinect_0.9c.pkg

Double click it.

Follow the installer instructions.

Then you can run as3-server from the terminal.

How to compile (v0.9c):

Download and install git: http://code.google.com/p/git-osx-installer/

Download and install cmake: http://www.cmake.org/cmake/resources/software.html

Download and install libjpeg: libjpeg_8.pkg

Download libfreenect source:

git clone git://github.com/OpenKinect/libfreenect.git

or

git clone git://github.com/imekinox/openkinect.git

For unstable version:

git checkout unstable

Download libusb or install it from libusb_1.0.pkg and skip directly to (Compile libfreenect with as3 server step):

git clone git://git.libusb.org/libusb.git
cd libusb
./autogen.sh

Apply patch for OSX:

patch -p1 < ../libfreenect/platform/osx/libusb-osx-kinect.diff

Compile and install libusb:

./configure
make
sudo make install

Compile libfreenect with as3 server:

cd ../libfreenect or cd ../openkinect (if using imekinox's repo)
mkdir build
cd build
cmake -DBUILD_AS3_SERVER=ON ..
make

You can run the server with the following command:

./bin/as3-server

Or you can install it running:

sudo make install

Then you can run as3-server from the terminal.

  • http://www.facebook.com/naiwinnie วินนี่ ต๋าย อ้อง

    how to run As3-server ?^^

    • Anonymous

      if you installed from pkg just run as3-server from the terminal.

      • http://www.facebook.com/naiwinnie วินนี่ ต๋าย อ้อง

        what cmd to run ac3 interminal

        • http://www.facebook.com/ericdolecki Eric E. Dolecki

          For the Terminal error I think it’s because you don’t have the Kinect connected.

    • http://www.facebook.com/masky81 Andrea Ascani

      Just type from terminal

    • Eric_jacobsson

      just type this in terminal: as3-server

  • http://www.facebook.com/masky81 Andrea Ascani

    Is possible to modify the depth threshold in the wrapper?

  • http://twitter.com/WillDonohoe Will Donohoe

    Hi guys,
    Sorry to bother you, I’m not great with the terminal, I haven’t done much with it, but would love to learn at some point!
    Anyway, I’ve installed as3-server from the PKG, and I’ve tried to run the as3-server.c but I seem to get an error when I run it.

    Just to clarify, this is how you run the file isn’t it?
    cd librfreenect/wrappers/actionscript/server/
    ./as3-server.c

    This is the error I get:
    ./as3-server.c: line 1: /Ahmbed.gz: Permission denied
    ./as3-server.c: line 2: as3-server.c: command not found
    ./as3-server.c: line 3: as3-server.c: command not found
    ./as3-server.c: line 4: syntax error near unexpected token `(‘
    ./as3-server.c: line 4: ` * Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file’

    Is there anything I’m doing wrong here?

    Thanks,
    Will

  • shim

    How do we apply patch for OSX?
    I can see the file, but I don’t know what should I do…

  • Kerem Iseri

    Hi I’m trying to run the experiment of paganini, I installed as3kinect_0.9c.pkg and TuioKinect.app runs without no problems. However when i run the socket server I’m having an error saying:

    as3kinect server v0.9c
    Could not claim interface on motor: -3
    Error : Invalid index [0]
    ### Wait for client

    Why is this happening? What is the issue? Any ideas?

  • Heteroclito8520

    where i should write this?..

    Compile libfreenect with as3 server:cd ../libfreenect or cd ../openkinect (if using imekinox’s repo)
    mkdir build
    cd build
    cmake -DBUILD_AS3_SERVER=ON ..
    make

  • Darek

    i get that error, any ideas whats wrong?

    dyld: Library not loaded: /Users/ekinox/Proyectos/kinetics/libfreenect/build/lib/libfreenect_sync.0.0.dylib
      Referenced from: /usr/local/bin/as3-server
      Reason: no suitable image found.  Did find:
    /usr/local/lib/libfreenect_sync.0.0.dylib: stat() failed with errno=13
    Trace/BPT trap

  • Mike Delucchi

    this is the project you want: http://code.google.com/p/as3openni/

Easy AdSense by Unreal