hornetseye-kinect 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +8 -3
  2. data/Rakefile +1 -1
  3. data/ext/kinectcontext.cc +3 -2
  4. metadata +3 -3
data/README.md CHANGED
@@ -14,9 +14,14 @@ This Ruby extension provides the class {Hornetseye::KinectInput} for capturing v
14
14
  Installation
15
15
  ------------
16
16
 
17
- *hornetseye-kinect* requires the V4L2 headers. If you are running Debian or (K)ubuntu, you can install them like this:
18
-
19
- $ sudo aptitude install linux-libc-dev
17
+ *hornetseye-kinect* requires libfreenect
18
+
19
+ $ git clone https://github.com/OpenKinect/libfreenect.git
20
+ $ cd libfreenect
21
+ $ cmake .
22
+ $ make
23
+ $ sudo make install
24
+ $ cd ..
20
25
 
21
26
  To install this Ruby extension, use the following command:
22
27
 
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-kinect'
10
- PKG_VERSION = '0.2.2'
10
+ PKG_VERSION = '0.2.3'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
data/ext/kinectcontext.cc CHANGED
@@ -26,9 +26,10 @@ using namespace std;
26
26
  VALUE KinectContext::cRubyClass = Qnil;
27
27
 
28
28
  KinectContext::KinectContext(void) throw (Error):
29
- m_usb(NULL), m_context(NULL), m_mutex(PTHREAD_MUTEX_INITIALIZER),
30
- m_cond(PTHREAD_COND_INITIALIZER), m_instances(0)
29
+ m_usb(NULL), m_context(NULL), m_instances(0)
31
30
  {
31
+ pthread_mutex_init( &m_mutex, NULL );
32
+ pthread_cond_init( &m_cond, NULL );
32
33
  ERRORMACRO( libusb_init( &m_usb ) == 0, Error, , "Error creating libusb session" );
33
34
  freenect_init( &m_context, m_usb );
34
35
  ERRORMACRO( m_context != NULL, Error, , "Initialisation of libfreenect failed" );
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-14 00:00:00 +00:00
17
+ date: 2011-03-15 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency