victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
930 stars 351 forks source link

Problems about compiling spaint #50

Open MarkZurkberg opened 8 years ago

MarkZurkberg commented 8 years ago

![Uploading spaint_v2.jpg…]()

I am trying to compile spaint_v2, and during the configuring process Cmake GUI gets some problems just as the picture below. Here are my questions: (1)I wonder the difference between InfiniTAM-master and InfiniTAM spaint_v2. Does the latter one means it is special and necessary for compiling SemanticPaint?

(2)I don't have Intel RealSense so I turn the cmake variable WITH_REALSENSE off and use Microsoft Kinect2 instead, is that fine? By the way, my Kinect SDK is 2.0.

(3)It said "libuvc_DIR-NOTFOUND", but when I read README I found libuvc is optional and only used for Intel RealSense, so does that mean I can overlook this error?

(4)Last but not the least. I know OpenNI is important to get live images and I do install OpenNI in C:\Program Files. But it still say "OpenNI found: FALSE", how should I set the OPEN_NI_ROOT?

Probably the questions are kind of tedious, but I am eager to get your help, and forgive my grammer error, I am a Chinsese guy. Thanks!^_^
![Uploading spaint_v2.png…]() @sgolodetz @victorprad @olafkaehler

sgolodetz commented 8 years ago

1) The spaint_v2 branch points to a version of InfiniTAM that works with the master branch of SemanticPaint. If you use the master branch of InfiniTAM, you'll necessarily pick up the latest updates to InfiniTAM, which may break the SemanticPaint build (we don't guarantee that InfiniTAM is backwards-compatible, i.e. interfaces etc. in InfiniTAM may change, breaking the build of things like SemanticPaint that depend on them). Basically, you shouldn't expect building against InfiniTAM's master branch to work in this case.

2) You definitely don't need a RealSense - I've been using a PrimeSense some of the time, and a Kinect v1 the rest of the time. I'll let @victorprad and @olafkaehler answer with regard to the Kinect v2.

3) Yes, you can overlook the error.

4) You need OpenNI 2 - by default on Windows, it installs to C:\Program Files\OpenNI2. If you set the root directory to that, it should work hopefully.

MarkZurkberg commented 8 years ago

Another question, I mix Kinect SDK up with OpenNI a bit. Since I have installed Kinect SDK 2.0, then what role does OpenNI play in this project? Should not Kinect SDK can finish the job that getting live images? Btw, I opened the executable file named InfiniTAM_cli and just get the information "compiled without OpenNI support " "compiled without Kinect 2 support", but I did installed OpenNI to C:\Program Files\OpenNI2, and connect Kinect with my computer successfully, and I even do the hack things that go to InfiniTAM\ITMLib\Utils\ITMLibDefines.h to commented the code because I found Kinect 2 support is disabled by default. The code are as follows:

///Kinect2 support is disabled by default (to not add the Kinect2 SDK dependency)

ifndef COMPILE_WITHOUT_Kinect2

define COMPILE_WITHOUT_Kinect2

endif*

@sgolodetz