victorprad / InfiniTAM

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

Error when running InfiniTAM exe #16

Open alex-panayiotou opened 9 years ago

alex-panayiotou commented 9 years ago

Hello, I've downloaded and successfully compiled and build Infinitam in Release Mode x64 using visual studio 2012 in Windows 8. But when I run the executable I get an error which says: The application was unable to start correctly (0xc000007b). And then it crashes. I am using the latest freeglut library and OpenNI from the provided links and I am not using CUDA. Does anyone have any idea how to solve this problem? Regards Alex

olafkaehler commented 9 years ago

Are you using the Visual Studio project files to compile InfiniTAM or do you use CMake? I think with the Visual Studio project files, CUDA is enabled by default and needs some hacking to be actually turned off. With CMake, make sure the variable WITH_CUDA is set to OFF, then it should compile correctly. Finally, you might have some luck if you just edit ITMLib/Utils/ITMLibSettings.cpp and make sure that you set useGPU = false;

Another problem might be that it doesn't find any suitable input data, but at least on my machine it will then still open an empty window and do nothing.

olafkaehler commented 9 years ago

...some further research reveals that the most common cause for this error appears to be mixing 32bit and 64bit binaries and libraries: Maybe one of the libraries you installed is for a different hardware platform than the binary you have been compiling?

alex-panayiotou commented 9 years ago

Hello, I've used CMake to compile and WITH CUDA option turned off. I also tried to set useGPU = false; in ITMLibSettings.cpp and still it didn't work. I have build freeglut in x64 and downloaded the OPENNI x64. I used freeglut 3.0 and OPENNI 2.2.0.33.

sgolodetz commented 9 years ago

Have you tried examining the dependencies with Dependency Walker? See:

http://stackoverflow.com/questions/10492037/the-application-was-unable-to-start-correctly-0xc000007b