GFreenect icon indicating copy to clipboard operation
GFreenect copied to clipboard

Error in Make

Open dkovari opened this issue 11 years ago • 1 comments

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: https://github.com/elima/GFreenect/issues/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?

dkovari avatar Oct 12 '14 22:10 dkovari

Missing -lm flag in g-ir-scanner stage. Needs fixing indeed. In the mean, try export LIBS="-lm" before calling make.

elima avatar Oct 27 '14 12:10 elima