Giter VIP home page Giter VIP logo

gfreenect's People

Contributors

elima avatar guijemont avatar iaguis avatar joaquimrocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gfreenect's Issues

Failed to load shared library

I'm getting this error when trying to execute the testview example, after installing GFreenect:

** (testview.py:10351): WARNING *_: Failed to load shared library 'libgfreenect-0.1.so.0' referenced by the typelib: libgfreenect-0.1.soso: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Traceback (most recent call last):
File "testview.py", line 367, in
view = GFreenectView()
File "testview.py", line 119, in init
layout_manager)
File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
return info.invoke(_args, **kwargs)
gi._glib.GError: Could not locate gfreenect_device_new: `gfreenect_device_new': /usr/lib/libfreenect.so.0.1: undefined symbol: gfreenect_device_new

These are some test I made trying to guess what's going on:
$ echo $LD_LIBRARY_PATH
/usr/local/lib

$ ls /usr/local/lib/libgf*
/usr/local/lib/libgfreenect-0.1.a /usr/local/lib/libgfreenect-0.1.so.0
/usr/local/lib/libgfreenect-0.1.la /usr/local/lib/libgfreenect-0.1.so.0.0.1
/usr/local/lib/libgfreenect-0.1.so

Example is unable to find kinect

Whenever I try to run the testview.py, I get the following error.

send_cmd: Bad cmd 04 != 16
freenect_fetch_reg_pad_info: send_cmd read -1 bytes (expected 8)
freenect_camera_init(): Failed to fetch registration pad info for device

When I run the freenect glview example, it works.

Compilation issues

These are the fixes I had to do in order to compile GFreenect.

1- Mkdir m4, if not autogen.sh won't work.
2- Comment line 12475: `GTK_DOC_CHECK(1.11)' from configure, I was getting syntax error there.

Problem running the "autogen.sh" file

Hi. When i'm trying to run the autogen.sh file i'm getting this error:

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --install --copy
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
gfreenect/Makefile.am:76: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
gfreenect/Makefile.am:90: addprefix $(srcdir: non-POSIX variable name
gfreenect/Makefile.am:90: (probably a GNU make extension)
autoreconf: automake failed with exit status: 1

And i can't continue with the making process. Any idea?

autogen.sh

I have these errors:
*** No gtk-doc support ***
*** No autoreconf found ***
When I try ./autogen.sh from GFreenect dir
I'm using Ubuntu 14.04 with Gnome 3 desktop

Error when make

Hello,

I try to compile GFreenect from sources. It is configured fine via ./autogen.sh but when I make, it gives this error:

make all-am
make[3]: Entering directory /home/canol/Downloads/GFreenect/gfreenect' CC libgfreenect-0.1_la-gfreenect-frame-mode.lo CC libgfreenect-0.1_la-gfreenect-device.lo CC libgfreenect-0.1_la-gfreenect-marshal.lo CCLD libgfreenect-0.1.la GISCAN GFreenect-0.1.gir /home/canol/Downloads/GFreenect/gfreenect/tmp-introspectZJXc8T/.libs/lt-GFreenect-0.1: error while loading shared libraries: libfreenect.so.0.1: cannot open shared object file: No such file or directory Command '['/home/canol/Downloads/GFreenect/gfreenect/tmp-introspectZJXc8T/GFreenect-0.1', '--introspect-dump=/home/canol/Downloads/GFreenect/gfreenect/tmp-introspectZJXc8T/functions.txt,/home/canol/Downloads/GFreenect/gfreenect/tmp-introspectZJXc8T/dump.xml']' returned non-zero exit status 127 make[3]: *** [GFreenect-0.1.gir] Error 1 make[3]: Leaving directory/home/canol/Downloads/GFreenect/gfreenect'
make[2]: *** [all] Error 2
make[2]: Leaving directory /home/canol/Downloads/GFreenect/gfreenect' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/canol/Downloads/GFreenect'
make: *** [all] Error 2

I also compiled libfreenect from sources and it works fine. Also gobject-introspection and gtk-doc is present. So what might be the problem?

Make error

Hi,

I'm trying to compile GFreenect on xubuntu 11.10 with the instruction from http://openkinect.org/wiki/GLib_Wrapper .
After the make command I get the following results.

$ make
make all-recursive
make[1]: Entering directory /home/bajo/Diplomarbeit/Kinect/GFreenect' Making all in gfreenect make[2]: Entering directory/home/bajo/Diplomarbeit/Kinect/GFreenect/gfreenect'
glib-genmarshal --body
--prefix=gfreenect_marshal gfreenect-marshal.list > gfreenect-marshal.c
glib-genmarshal --header
--prefix=gfreenect_marshal gfreenect-marshal.list > gfreenect-marshal.h
make all-am
make[3]: Entering directory `/home/bajo/Diplomarbeit/Kinect/GFreenect/gfreenect'
CC libgfreenect-0.1_la-gfreenect-frame-mode.lo
gfreenect-frame-mode.c: In function 'gfreenect_frame_mode_set_from_native':
gfreenect-frame-mode.c:132:3: error: unknown type name 'freenect_frame_mode'
gfreenect-frame-mode.c:134:27: error: request for member 'resolution' in something not a structure or union
gfreenect-frame-mode.c:135:29: error: request for member 'video_format' in something not a structure or union
gfreenect-frame-mode.c:136:29: error: request for member 'depth_format' in something not a structure or union
gfreenect-frame-mode.c:138:23: error: request for member 'bytes' in something not a structure or union
gfreenect-frame-mode.c:139:22: error: request for member 'width' in something not a structure or union
gfreenect-frame-mode.c:140:23: error: request for member 'height' in something not a structure or union
gfreenect-frame-mode.c:141:31: error: request for member 'data_bits_per_pixel' in something not a structure or union
gfreenect-frame-mode.c:142:39: error: request for member 'padding_bits_per_pixel' in something not a structure or union
gfreenect-frame-mode.c:144:27: error: request for member 'framerate' in something not a structure or union
make[3]: *** [libgfreenect-0.1_la-gfreenect-frame-mode.lo] Error 1

I have installed the freenect packages from the ubuntu repositories.
Am I missing something obvious ?

Thanks.
Markus

TypeError: set_from_rgb_data() takes exactly 7 arguments (8 given)

Weird error, when executing testview.py I cant test motor and LED values, but the camera window remains black.
This is my output:

[nacho@myhost examples]$ python2.7 testview.py

(testview.py:1803): Clutter-CRITICAL *_: Unable to retrieve the geometry of the foreign window: XGetGeometry() failed (status code: 0)
[Stream 70] Expected max 1748 data bytes, but got 1908. Dropping...
Traceback (most recent call last):
  File "testview.py", line 240, in _on_depth_frame
    self.depth_texture.set_from_rgb_data(data, False,frame_mode.width,frame_mode.height,                                             0, frame_mode.bits_per_pixel/8, 0)
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(_args, *_kwargs)
TypeError: set_from_rgb_data() takes exactly 7 arguments (8 given)
Traceback (most recent call last):
  File "testview.py", line 250, in _on_video_frame
    0, frame_mode.bits_per_pixel/8, 0)
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(_args, **kwargs)
TypeError: set_from_rgb_data() takes exactly 7 arguments (8 given)

The failing code is this:

data, frame_mode = kinect.get_depth_frame_grayscale()

self.depth_texture.set_from_rgb_data(data,False,frame_mode.width,frame_mode.height,0,frame_mode.bits_per_pixel/8, 0)

Which is kinda weird because I see 7 arguments instead of 8, I have tried some other argument sets like:

self.depth_texture.set_from_rgb_data(data,False,640,480,0,3, 0)

but got the same results.

Error in Make

I'm trying to install GFreenect on OSX 10.9.5

So far I've got freenect installed and working (http://openkinect.org/wiki/Getting_Started#MacPorts)
which puts freenect into /usr/local/...
i've updated pkg-config with
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib
and checked that it is producing the correct flags
$ pkg-config --cflags libfreenect
-I/usr/local/include/libfreenect -I/opt/local/include/libusb-1.0
$ pkg-config --libs libfreenect
-L/usr/local/lib -lfreenect

per the suggestion here: #7
I've also tried
export LD_LIBRARY_PATH=/usr/local/lib

./autogen.sh runs without a hitch:

   GFreenect 0.1.5
   =====================
              Install prefix:   /usr/local
    Build introspection data:   yes
     Build API documentation:   no
           Enable debug mode:   no
      Enable automated tests:   yes

But make throws the following errors:

12 warnings generated.
  CC       libgfreenect-0.1_la-gfreenect-marshal.lo
  CCLD     libgfreenect-0.1.la
/opt/local/bin/ranlib: file: .libs/libgfreenect-0.1.a(libgfreenect-0.1_la-gfreenect-marshal.o) has no symbols
ranlib: file: .libs/libgfreenect-0.1.a(libgfreenect-0.1_la-gfreenect-marshal.o) has no symbols
  GISCAN   GFreenect-0.1.gir
ERROR: can't resolve libraries to shared libraries: m
make[3]: *** [GFreenect-0.1.gir] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.