-
Notifications
You must be signed in to change notification settings - Fork 11
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
issue compiling ofxKinect in armv7l(PandaboardES) #93
Comments
I would try using libfreenect from apt-get and link it in via you can also try the libfreenect demos to make sure the device is working (powered usb hubs are helpful) |
Thanks for the suggestion @jvcleave . i will try in the next days, after Christmas! |
Made some other tests. Used the libfreenect lib installed from apt-get. But it failed. Also demos didn't worked. Instead i downloaded the libfreenect from https://github.com/OpenKinect/libfreenect i build it succesfully and also demos works very well with my Kinect! wow! |
this is the error: ../../../addons/ofxKinect/libs/libfreenect/lib/linuxarmv7l/libfreenect.a(usb_libusb10.c.o): In function in config.make: PROJECT_LDFLAGS += -lusb-1.0 |
We might want to move this discussion over to ofxKinect on github as it
|
@kalwalt I would try to use the headers/lib you compiled yourself as well as libusb that is installed on your system @danthemellowman yeah - this is one of those weird issues - it probably belongs in ofxKinect but it is not an easy move and will get more attention here as a lot of us want to get it working with ARM. Maybe @kalwalt can write a wiki page or something once he gets through it (I think you are close!) |
Hi to all! today i'm luky, I managed to compile ofxKinect !! the only way to link libusb-1.0.a was to copy and paste it from my sytem in the same folder where i have libfreenect.a ( the one that i compiled by myself) then it compiled succesfully. It is strange, however, that I had to copy the libraries to make them to link. perhaps the system makefile can not find it? I installed (with synaptic) libusb-1.0.a in / usr / arm-linux-gnueabihf . Maybe this is the reason. It is also necessary to examine whether: |
now i have video stream from kinect.draw() and kinect.drawDepth() but it'is glitcy, blocky and weird . probably issue related to #21 or what? |
I would like to see for myself. I'm getting on a flight back to NYC today Thanks, Dan On Thu, Dec 27, 2012 at 1:10 PM, Walter Perdan [email protected]:
"I believe in science. Unlike mathematical theorems, scientific results I cannot prove that electrons exist, but I believe fervently in their -- Seth Lloyd: Quantum Mechanical Engineer, MIT /. |
yes of course! i have already the ofxKinect fork : https://github.com/kalwalt/ofxKinect/tree/develop-Pandaboard-linuxarmv7l but i have to upload the example and other code , i think i will do in the next hours. i will post when it will be done . |
ok @danthemellowman you can find the latest on my repo , there is a new example that works with the issue that i explained, let me know if you find problems or what else. |
I would also try building an example without ofxOpenCv to rule out CPU issues. Maybe just init the kinect and try to draw the video |
yes @jvcleave , you are right, looking at the code i can see it.
yes, i'm using it.
i have done this in my repo.https://github.com/kalwalt/ofxKinect/tree/develop-Pandaboard-linuxarmv7l/ofxKinect-linuxarmv7l-Example but i have the same issue. Running the libfreenect examples https://github.com/OpenKinect/libfreenect/tree/master/examples instead i have not this issue |
you can try initing ofxKinect with init(false, false) to disable the video output and just grab the RAW depth pixels? I can't find my power supply for my kinect so I can't test with my pi. |
@danthemellowman Tried with init(false,false). i have the same issue glitchy. The difference is that now he does it with the depth map. but it's strange after a period of time works as should works with a regular flow of frames! It seems as if it does not happen an efficient flow of data. |
I'm seeing the same glitchy video using the videograbber. I put up a On Fri, Dec 28, 2012 at 3:08 PM, Walter Perdan [email protected] wrote:
"I believe in science. Unlike mathematical theorems, scientific results I cannot prove that electrons exist, but I believe fervently in their -- Seth Lloyd: Quantum Mechanical Engineer, MIT /. |
i found this article about libfreenct performance on Pandaboard: https://groups.google.com/forum/?fromgroups=#!topic/openkinect/dfPLgD6FjUY so i tried as suggested FREENECT_DEPTH_11BIT_PACKED in void ofxKinect::threadedFunction()
but got seg fault .i run it in gdb mode but after Ubuntu freeze( it's happens sometimes it is a known issue) I will post it after. but as i remeber it involve threading. using instead FREENECT_DEPTH_11BIT or FREENECT_DEPTH_10BIT i have not seg fault ,it help a little little bit but the video depth is still glitchy. so probably the problem is in how the pixels are handled? @danthemellowman but with my pandaboard the videoGrabber works good i havent that glitchy issue. |
this running gdb:
|
i can't compile successfully the addon example . Simply i get a libfreenect linking error:
obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::open(int)': ofxKinect.cpp:(.text+0xd2a): undefined reference to
freenect_set_user'ofxKinect.cpp:(.text+0xd3c): undefined reference to
freenect_set_depth_callback' ofxKinect.cpp:(.text+0xd4e): undefined reference to
freenect_set_video_callback'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': ofxKinect.cpp:(.text+0xe34): undefined reference to
freenect_set_user'ofxKinect.cpp:(.text+0xe46): undefined reference to
freenect_set_depth_callback' ofxKinect.cpp:(.text+0xe58): undefined reference to
freenect_set_video_callback'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::getWorldCoordinateAt(float, float, float)': ofxKinect.cpp:(.text+0x1310): undefined reference to
freenect_camera_to_world'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::grabDepthFrame(_freenect_device*, void*, unsigned int)': ofxKinect.cpp:(.text+0x1ee8): undefined reference to
freenect_get_current_depth_mode'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::grabVideoFrame(_freenect_device*, void*, unsigned int)': ofxKinect.cpp:(.text+0x1f70): undefined reference to
freenect_get_current_video_mode'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinect::threadedFunction()': ofxKinect.cpp:(.text+0x1ff6): undefined reference to
freenect_set_led'ofxKinect.cpp:(.text+0x201e): undefined reference to
freenect_find_video_mode' ofxKinect.cpp:(.text+0x2040): undefined reference to
freenect_set_video_mode'ofxKinect.cpp:(.text+0x2068): undefined reference to
freenect_find_depth_mode' ofxKinect.cpp:(.text+0x208a): undefined reference to
freenect_set_depth_mode'ofxKinect.cpp:(.text+0x20d8): undefined reference to
freenect_start_depth' ofxKinect.cpp:(.text+0x20f6): undefined reference to
freenect_start_video'ofxKinect.cpp:(.text+0x2108): undefined reference to
freenect_process_events' ofxKinect.cpp:(.text+0x2170): undefined reference to
freenect_set_tilt_degs'ofxKinect.cpp:(.text+0x218e): undefined reference to
freenect_update_tilt_state' ofxKinect.cpp:(.text+0x219e): undefined reference to
freenect_get_tilt_state'ofxKinect.cpp:(.text+0x21ac): undefined reference to
freenect_get_tilt_degs' ofxKinect.cpp:(.text+0x221e): undefined reference to
freenect_get_mks_accel'ofxKinect.cpp:(.text+0x22a6): undefined reference to
freenect_set_tilt_degs' ofxKinect.cpp:(.text+0x22c4): undefined reference to
freenect_stop_depth'ofxKinect.cpp:(.text+0x22d4): undefined reference to
freenect_stop_video' ofxKinect.cpp:(.text+0x22e8): undefined reference to
freenect_set_led'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::init()': ofxKinect.cpp:(.text+0x2420): undefined reference to
freenect_init'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::clear()': ofxKinect.cpp:(.text+0x24ec): undefined reference to
freenect_shutdown'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::open(ofxKinect&, int)': ofxKinect.cpp:(.text+0x2630): undefined reference to
freenect_open_device'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::open(ofxKinect&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': ofxKinect.cpp:(.text+0x2814): undefined reference to
freenect_open_device_by_camera_serial'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::close(ofxKinect&)': ofxKinect.cpp:(.text+0x2a22): undefined reference to
freenect_close_device'obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::buildDeviceList()': ofxKinect.cpp:(.text+0x2acc): undefined reference to
freenect_list_device_attributes'ofxKinect.cpp:(.text+0x2b6e): undefined reference to
freenect_free_device_attributes' obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::numTotal()':ofxKinect.cpp:(.text+0x2fde): undefined reference to
freenect_num_devices' obj/linuxarmv7l/Releaseaddons/ofxKinect/src/ofxKinect.o: In function
ofxKinectContext::numAvailable()':ofxKinect.cpp:(.text+0x3016): undefined reference to `freenect_num_devices'
collect2: ld returned 1 exit status
normally this shouldn't happens with linux. i have libusb-1.0 installed . and added the C_FLAGS
PROJECT_CFLAGS += -I/home/walter/OF-develop-raspberrypi/openFrameworks/addons/ofxKinect/libs/libfreenect
PROJECT_CFLAGS += -I/usr/include/libusb-1.0
LD_FLAGS
PROJECT_LDFLAGS += -L/home/walter/OF-develop-raspberrypi/openFrameworks/addons/ofxKinect/libs/libfreenect/libfreenect.h
PROJECT_LDFLAGS += -lusb-1.0
but these not solve at all the problem.
normally it is not needed to add the C_FLAGS for libfreenect but without it i got errors.
i'm using the develop-raspberrypi branch.
The text was updated successfully, but these errors were encountered: