totovr / SimpleOpenNI

SimpleOpenNI library for Processing 3.5.2, 3.4, 3.3.7, 3.3.6 on MacOS for V1 and V2
https://totovr.github.io/SimpleOpenNI/
MIT License
158 stars 47 forks source link

Linux installation instructions (Kinect v1) #25

Open rossanag opened 4 years ago

rossanag commented 4 years ago

I think these lines could fit into the readme to help someone with kinect v1 in Ubuntu.

This version work with the following Ubuntu Linux distributions: 18.04. 19.04 and 19.10 This pluging works with this file version of libboost_system.so.1.54.0 The steps are the following:

  1. Install libfreenect
  2. locate libboost_system.so 1.5* to get the path of ibboost_system and to find the version installed of it.
  3. Create a soft link as libboost_system.so.1.54.0.
  4. Assuming the path could be usr/lib/x86_64-linux-gnu/, the command to create the soft link will be sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.67.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0
  5. Install the library in the sketchbook folder as usual

Source: https://github.com/totovr/SimpleOpenNI/issues/24 Thanks to @pointcloud_ai for the clue.

heyarne commented 4 years ago

The approach I took was compiling the boost libraries myself and copying them where OpenNI was looking (you can see that path by taking a look at the error message):

  1. Download https://www.boost.org/users/history/version_1_54_0.html
  2. Unzip and open a terminal session in the directory you just downloaded. It should contain a bootstrap.sh
  3. Run bootstrap.sh --with-libraries=system and when that's done j2 to build libboost_system.1.5.4-0.so
cruffoc commented 1 year ago

The approach I took was compiling the boost libraries myself and copying them where OpenNI was looking (you can see that path by taking a look at the error message):

  1. Download https://www.boost.org/users/history/version_1_54_0.html
  2. Unzip and open a terminal session in the directory you just downloaded. It should contain a bootstrap.sh
  3. Run bootstrap.sh --with-libraries=system and when that's done j2 to build libboost_system.1.5.4-0.so

could you elaborate on this? I'm trying to get this to work on Ubuntu without much success. I'm having the same error related to libboost_system.1.5.4-0.so

edit: I figured after reading bootstrap.sh notes that you're supposed to run ./b2 which gives me:

The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    /home/ruffo/Downloads/boost_1_54_0

The following directory should be added to linker library paths:

    /home/ruffo/Downloads/boost_1_54_0/stage/lib

but yet I'm not sure what to copy / link without making a potential mess. I manually copied libboost_system.1.5.4-0.so to the path referred in the error message, changed its file permissions but still can't get it to work