Git Product home page Git Product logo

Comments (4)

billamiable avatar billamiable commented on August 17, 2024 2

@AbyssGaze @MarkZurkberg Hi, I tried to amend the FindOpenNI.cmake in Ubuntu 16.04 but all failed. Could you please share your cmake file to me? Thanks a lot.

I figured out the problem! It lies in the different variable name in FindOpenNI.cmake and UseOpenNI.cmake. It is OPEN_NI_ROOT in FindOpenNI.cmake but OPENNI_ROOT in UseOpenNI.cmake. Therefore, after changing the name of OPEN_NI_ROOT to OPENNI_ROOT in FindOpenNI.cmake, and using cmake .. -DOPENNI_ROOT=/path/to/openni. The problem is solved!

from infinitam.

connerbrooks avatar connerbrooks commented on August 17, 2024

You can either grab the binaries from structure's site or build from source (I would recommend using its develop branch). When you invoke cmake provide the path as described in the readme build process section.

from infinitam.

AbyssGaze avatar AbyssGaze commented on August 17, 2024

When you build the project in ubuntu 14.04, you need to amend the FindOpenNI.cmake file in the folder of /InfiniTAM/InfiniTAM/cmake . In FindOpenNI.cmake you can find the lib and include path of openni, and you need to amend it to correct path. As my openni2 installed, the include file in /usr/include/openni2 and the lib file in /usr/lib/OpenNI2, that change find_library NAMES OpenNI to OpenNI2 and the
find_path(OpenNI_INCLUDE_DIR OpenNI.h PATH "${OPEN_NI_ROOT}/include/openni2")
and
find_library(OpenNI_LIBRARY OpenNI2 PATH "${OPEN_NI_ROOT}/lib")
and then into build folder, cmake -DOPEN_NI_ROOT=/usr you will find the output OPENNI true, and make -j
After that you can run xtion in you ubuntu in real time:
./InfiniTAM ../Files/Teddy/calib.txt

from infinitam.

ravich2-7183 avatar ravich2-7183 commented on August 17, 2024

This worked for me (Ubuntu 14.04 + Kinect-1):

  1. Install libfreenect and test that OpenNI2 works
    Install libfreenect from https://github.com/OpenKinect/libfreenect and follow the instructions here (https://github.com/OpenKinect/libfreenect/tree/master/OpenNI2-FreenectDriver) for installing the libFreenectDriver in the OpenNI2 drivers folder.

Test by running /path/to/OpenNI2/Bin/x64-Release/SimpleViewer or NiViewer.

  1. Ensure that Inifitam picks up the right libOpenNI2.so
    Use ldd ./Infinitam to check that the libOpenNI2.so points to the one compiled from https://github.com/occipital/OpenNI2 or downloaded from https://structure.io/openni

something like:
libOpenNI2.so => /path/to/OpenNI2/Bin/x64-Release/libOpenNI2.so (0x00007f85c7cdb000)

You can ensure that this is the case by using:
cmake ../InfiniTAM -DOPEN_NI_ROOT=/path/to/OpenNI2/

Also set OPENNI_LIBRARY to /path/to/OpenNI2/Bin/x64-Release/libOpenNI2.so using ccmake or cmake-gui (somehow I couldn't set it from the command line).

from infinitam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.