Skip to content
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

Error when make #7

Closed
canol opened this issue Sep 20, 2012 · 5 comments
Closed

Error when make #7

canol opened this issue Sep 20, 2012 · 5 comments

Comments

@canol
Copy link

canol commented Sep 20, 2012

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
Copy link
Owner

elima commented Sep 25, 2012

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
Copy link
Contributor

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 #9

@elima
Copy link
Owner

elima commented Nov 19, 2012

Patch merged, thanks a lot!

@elima elima closed this as completed Nov 19, 2012
@stralo
Copy link

stralo commented Oct 15, 2013

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants