From e7e72d24d328dcded094f792f3f261f107981c01 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Sat, 23 Apr 2011 13:09:56 +0000 Subject: [PATCH] fixed compile error (ubuntu64) --- modules/highgui/src/cap_openni.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_openni.cpp b/modules/highgui/src/cap_openni.cpp index 69756e27a8..558d25721b 100644 --- a/modules/highgui/src/cap_openni.cpp +++ b/modules/highgui/src/cap_openni.cpp @@ -40,6 +40,7 @@ //M*/ #include "precomp.hpp" +#include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #ifdef HAVE_OPENNI @@ -183,7 +184,7 @@ CvCapture_OpenNI::CvCapture_OpenNI() // Write configuration to the temporary file. // This is a hack, because there is a bug in RunXmlScript(). // TODO: remove hack when bug in RunXmlScript() will be fixed. - string xmlFilename = tempfile(); + std::string xmlFilename = cv::tempfile(); std::ofstream outfile( xmlFilename.c_str() ); outfile.write( XMLConfig.c_str(), XMLConfig.length() ); outfile.close();