ofTheo/ofxKinect

freenect library not built for architecture being linked

Closed this issue · 5 comments

I'm getting an error:

"freenect file was built for archive which is not the architecture being linked (i386)"

Is this because of my code, and my newbiness?

I've got an older freenect lib that works, has anything been changed recently for the version of ofxkinect you now have online, or can I just copy the folder to the new ofxkinect?

What OS? What build system? 32 or 64 bit? We need info. I rebuilt freenect on Windows 7 64 bit, so that might be the problem. Can you build for 64 bit? If not, I need to rebuild freenect.

... and no the old freenect will not work, that's why I had to rebuild it.

sorry. the computer died with that window open. I didn't think it posted.

This is on a macbook pro running Lion, with Xcode 4.1.

It 'says' it is a 64 bit system, but I cannot change the scheme to anything but 32-bit.

Ok, I'm sure i know what it is. You added the windows lib to your xcode project and it's trying to link it. On Mac OSX, we build freenect as part of ofxKinect. On Windows, it's precompiled. Simply remove the lib/freenect/lib folder from your build tree.

Are you still having this problem? If not, what was the fix?

I've reinstalled open frameworks every four days or so from the github. I don't know what worked or what didn't. I have a new ofxKinect code which I use that seems to work, and try not install a lot of other things without testing. I may have used a libfreenect from an older working version of ofxkinect.

I wish I could be more useful, but I can't. I do have the multiple kinects working, however, and will be attempting more than two when the big computer is set up.

http://vimeo.com/29495031

Code for the original test is here: https://github.com/nosarious/ofxKinect_multi-revisited