elima / GFreenect

GFreenect is a wrapper for the Freenect library written using Glib in order to control a Kinect device and make it easy to use with GNOME technologies.
http://www.joaquimrocha.com/2012/01/20/announcing-gfreenect/
GNU Lesser General Public License v3.0
36 stars 11 forks source link

Error when make #7

Closed canol closed 11 years ago

canol commented 12 years ago

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?

elima commented 12 years ago

It looks like gobject-introspection is not finding libfreenect.so. If you installed libfreenect in a non-standard path (e.g /usr/local) then you might need to set PKG_CONFIG_PATH and LD_LIBRARY_PATH to include the path to libfreenect.so.

Unlikely but possible, please also check that you have libgirepository1.0 and its devel package installed.

cheers

guijemont commented 12 years ago

I can reproduce that bug. The g-ir-scanner step does not use the CFLAGS and LDFLAGS. The good news is that I have a patch for this. See https://github.com/elima/GFreenect/pull/9

elima commented 11 years ago

Patch merged, thanks a lot!

stralo commented 11 years ago

hi everyone, I have the same problem. I found added added the path to libfreenect.so at PKG_CONFIG_PATH in Makefile.in and Makefile, but I couldnt' find where to insert the path for LD_LIBRARY_PATH. I tried make and still got the same error. I have libgirepository1.0.

could someone please help me with this.

Thanks

joaquimrocha commented 11 years ago

@stralo , have you tried export LD_LIBRARY_PATH=/usr/local/lib , for example?