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

Wheezy Build Issues #3

Open
rheaplex opened this issue Dec 20, 2013 · 0 comments
Open

Wheezy Build Issues #3

rheaplex opened this issue Dec 20, 2013 · 0 comments

Comments

@rheaplex
Copy link

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',
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

1 participant