ofTheo / ofxKinect

legacy openFrameworks wrapper for the xbox kinect (OF pre-0.8.0+ only) - ofxKinect is now included and is being maintained in OF releases
MIT License
540 stars 105 forks source link

compiling errors on ofxKinect develop branch on Windows #108

Closed alonecloud closed 11 years ago

alonecloud commented 11 years ago

So I setup a new project for Code Blocks using the PG and made sure to follow the instructions in the readme, but I'm getting a compiling errors below:

C:\Users\Al One_2\Documents\GitHub\openFrameworks\addons\ofxKinect\libs\libfreenect\core.c|85|error: conflicting types for 'freenect_process_events_timeout'|

kylemcdonald commented 11 years ago

does the example project work, but not the PG generated project? or neither work?

this kind of error normally happens when a function declaration and its implementation are different. but i don't see that happening here.

danzeeeman commented 11 years ago

I'm seeing the same issue on Windows 8 with VS2010. The example project works but I cannot build anything generated from the PG. Going to try with CodeBlocks.

danomatika commented 11 years ago

It's probably because the PG dosen't handle the fact that the freeenct sources are included and so are the compiled libs for win. Just try removing the freenect .c files from your project.

Freenect is non-trivial to compile and I didn't feel like jumping through 10 hoops to make it buildable on win without the precompiled libs. Instead I made the examples by hand. Someone feel free to get that working.

danomatika commented 11 years ago

I added info on this to the readme. Again, someone please feel free to find a way to make freenect buildable on Win in ofxKinect. I don't have the time to jump into this any time soon.

danzeeeman commented 11 years ago

I can look at it again. I've discovered all of the tricks in VS2010 over the last couple of months. On Mar 18, 2013 10:18 AM, "Dan Wilcox" notifications@github.com wrote:

I added info on this to the readme. AGain, someone please feel free to find a way to make freenect buildable on Win in ofxKinect. I don;'t have the time to jump into this any time soon.

— Reply to this email directly or view it on GitHubhttps://github.com/ofTheo/ofxKinect/issues/108#issuecomment-15056974 .

danomatika commented 11 years ago

I tried last fall, but after spending almost a whole day on it, I lost interest. You'll need win pthread32, etc. I'm sure the libfreenect wiki has more info on building it for Win at this point.

danzeeeman commented 11 years ago

Thanks for the notes! On Mar 18, 2013 11:36 AM, "Dan Wilcox" notifications@github.com wrote:

I tried last fall, but after spending almost a whole day on it I lost interest. You'll need win pthread32, etc. I'm sure the libfreenect wiki has more info on building it for Win at this point.

— Reply to this email directly or view it on GitHubhttps://github.com/ofTheo/ofxKinect/issues/108#issuecomment-15061587 .

danomatika commented 11 years ago

ofxKinect development has now moved to the OF core, VS2012 is now supported, and the addon works with the OF 0.8.0 PG.