Comments (4)
@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.
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.
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.
This worked for me (Ubuntu 14.04 + Kinect-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.
- 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)
- from rgb to depth HOT 10
- Show nothing when running InfiniTAM.exe with files in Teddy HOT 5
- Multi-camera Application HOT 1
- FileBasedTracker doesnโt fuse the scene HOT 2
- How big is the voxel grid? HOT 1
- Saving 3D Reconstruction
- Python bindings HOT 6
- Azure Kinect Support HOT 1
- C1083 Cannot open include file: 'GL/glut.h': No such file or directory HOT 5
- Extracting the current VoxelGrid for an additional processing step HOT 1
- iterations algorithm HOT 1
- Python Buffer access to ITMLocalVBA HOT 1
- Cannot access the voxel blocks on device using Nsight VSE Debugger HOT 1
- ITMLocalVBA alone extractable as 3D Reconstruction? HOT 1
- cannot read images HOT 11
- Which version is the newest HOT 1
- Project doesn't build
- Does InfiniTAM support for MS Azure Kinect (soon)?
- Blensor Scans
- Headless InfiniTAM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinitam.