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

linux projects need updating #45

Closed kylemcdonald closed 13 years ago

kylemcdonald commented 13 years ago

i still need to get linux running on my machine so i can't do this right now... sorry :(

if someone could update the linux projects to account for the fact that:

1 i just restructured ofxKinect to sit in the addons folder and 2 there should be a normal project file as well as a -beta project file due to the fact that the next release of OF has a different project file structure than previous versions.

danomatika commented 13 years ago

I have a working codeblocks project from a student I can add. He adjusted for the path changes and uses relative paths. I could then update the beta project in the same manner, but both will need testing.

luopio commented 13 years ago

Does this also fix the linker problems (ubuntu 11.04, 007_pre) like this: usb_libusb10.c:(.text+0xad): undefined reference to `libusb_get_device_list'

I'll hack it to config.make, but I guess this should be fixed elsewhere. If you give me a hint I can try myself :)

luopio commented 13 years ago

ahh.. yes.. libusb is not included for linux. Quick fix in yourProjectDirectory/config.make:

USER_LIBS = -lusb-1.0

(ensure that libusb-dev is installed)

Surf-N-Code commented 13 years ago

Hello, sorry to bother you, but have you updated the projects?

I am trying to compile ofsKinect on Ubuntu 10.04 LTS and I am getting errors on missing lunicap and loFappsink. The whole error message:

Linking console executable: bin/ikinectExample_debu /usr/bin/ld: cannot find -loFappsink collect22: ld returned 1 exit status

Please could you give me a hint on how to compile it properly under linux? Thanks in advance!

kylemcdonald commented 13 years ago

i'm pretty sure the projects are updated for linux. at least, the issue here is closed. there might be some new bugs that have been introduced since. it sounds like you're having a problem with OF, not with ofxKinect. i recommend posting on the forum instead: http://forum.openframeworks.cc/

Surf-N-Code commented 13 years ago

Hello kylemcdonald,

sorry for this message. I tried ofxKinect with OF007 and it didn't work. With OF062 it works fine. Thanks!

kylemcdonald commented 13 years ago

hey serul, no worries.

i recommend making a copy of the opencv example that ships with OF.

then swap out the source code for the source in ofxKinect/example/src

then modify these two lines in the makefile:

USER_CFLAGS = -I/usr/include/libusb-1.0 -I src/ofxKinect/src USER_LD_FLAGS = -lusb-1.0

in general, this is a good pattern for getting old things to work again: find a project that works, and is similar to what you want to do (opencv) then swap out the source, and modify the compiler flags to include any additional things that are necessary.

that said, the flags above look a bit weird to me, and i can't vouch for them. if arturo has a moment, maybe he can chime in.

danomatika commented 13 years ago

Did you try the experimental branch in 007? The other branches are currently for OF 0062 ...

Surf-N-Code commented 13 years ago

My fault was that I downloaded from OF site directly rather than cloning it from git.

Surf-N-Code commented 13 years ago

Thanks kyle,

I don't think I will try again with OF7. For my needs OF62 is enough I think :), but thanks for the instructions!.

Sorry for double post...