code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
872 stars 517 forks source link

Compilation fails halfway through! #544

Closed prasuchit closed 4 years ago

prasuchit commented 4 years ago

When I do make, this is what I see:

[ 68%] Linking CXX shared library lib/libfreenect2.so /usr/bin/ld: /usr/local/lib/libglfw3.a(context.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libglfw3.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status CMakeFiles/freenect2.dir/build.make:658: recipe for target 'lib/libfreenect2.so.0.2.0' failed make[2]: [lib/libfreenect2.so.0.2.0] Error 1 CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/freenect2.dir/all' failed make[1]: [CMakeFiles/freenect2.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

I did this: https://github.com/BVLC/caffe/issues/2171#issuecomment-85260916

Didn't work. Kindly help.