Skip to content

Wheezy Build Issues #3

Description

@rheaplex

Wheezy has an earlier version of Cython. And building OpenHMD with the default ./configure options places the headers in /usr/local/include, which doesn't seem to be on the include path.

To allow for this I made the following changes:

diff --git a/rift.pyx b/rift.pyx
index edfefb8..3cc8fb3 100644
--- a/rift.pyx
+++ b/rift.pyx
@@ -32,4 +32,8 @@ cdef class PyRift:
         self.thisptr.printDeviceInfo()

     property rotation:
-      def __get__(self): return self.thisptr.rotation
+      # automatic coercion is in cython 0.17+ but Wheezy has 0.15
+      def __get__(self): return [self.thisptr.rotation[0],
+                                 self.thisptr.rotation[1],
+                                 self.thisptr.rotation[2],
+                                 self.thisptr.rotation[3]]
diff --git a/setup.py b/setup.py
index 46b0478..bbcce1c 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ module1 = Extension("rift",
     ["rift.pyx", "Rift.cpp"], 
     language="c++",
     libraries=["openhmd"],
-    include_dirs=['/usr/include/openhmd'])
+    include_dirs=['/usr/include/openhmd', '/usr/local/include/openhmd'])

 setup(name = 'rift',
     version = '1.0',

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions