Blob Blame History Raw
diff -up ./Include/XnCppWrapper.h.willow ./Include/XnCppWrapper.h
--- ./Include/XnCppWrapper.h.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Include/XnCppWrapper.h	2013-09-13 21:02:35.903795250 -0400
@@ -129,7 +129,7 @@ namespace xn
 		 *
 		 * @param	ppData		[in]	A pointer to the data member of the meta data object.
 		 */
-		inline OutputMetaData(const XnUInt8** ppData) : m_ppData(ppData), m_nAllocatedSize(0), m_pAllocatedData(NULL)
+		inline OutputMetaData(const XnUInt8** ppData) : m_pAllocatedData(NULL), m_ppData(ppData), m_nAllocatedSize(0)
 		{
 			xnOSMemSet(&m_output, 0, sizeof(XnOutputMetaData));
 		}
@@ -1175,6 +1175,7 @@ namespace xn
 		 *
 		 * @param	other		[in]	An object to copy from.
 		 */
+
 		NodeInfo(const NodeInfo& other) : m_pNeededNodes(NULL), m_bOwnerOfNode(FALSE)
 		{
 			SetUnderlyingObject(other.m_pInfo);
@@ -1292,7 +1293,7 @@ namespace xn
 			xnNodeQueryAllocate(&m_pQuery);
 		}
 
-		inline Query(XnNodeQuery* pNodeQuery) : m_bAllocated(FALSE), m_pQuery(pNodeQuery)
+		inline Query(XnNodeQuery* pNodeQuery) : m_pQuery(pNodeQuery), m_bAllocated(FALSE)
 		{
 		}
 
@@ -4180,6 +4181,7 @@ namespace xn
 		 */
 		inline XnBool IsCalibrated(XnUserID user) const
 		{
+
 			return xnIsSkeletonCalibrated(GetHandle(), user);
 		}
 
@@ -5346,7 +5348,7 @@ namespace xn
 	{
 	public:
 		/// Ctor
-		inline EnumerationErrors() : m_bAllocated(TRUE), m_pErrors(NULL) { xnEnumerationErrorsAllocate(&m_pErrors); }
+		inline EnumerationErrors() : m_pErrors(NULL), m_bAllocated(TRUE) { xnEnumerationErrorsAllocate(&m_pErrors); }
 
 		/**
 		 * Ctor
@@ -5354,7 +5356,7 @@ namespace xn
 		 * @param	pErrors		[in]	underlying C object to wrap
 		 * @param	bOwn		[in]	TRUE to own the object (i.e. free it upon destruction), FALSE otherwise.
 		 */
-		inline EnumerationErrors(XnEnumerationErrors* pErrors, XnBool bOwn = FALSE) : m_bAllocated(bOwn), m_pErrors(pErrors) {}
+		inline EnumerationErrors(XnEnumerationErrors* pErrors, XnBool bOwn = FALSE) : m_pErrors(pErrors), m_bAllocated(bOwn) {}
 
 		/// Dtor
 		~EnumerationErrors() { Free(); }
@@ -5935,6 +5937,7 @@ namespace xn
 
 		/** @copybrief xnUnregisterFromGlobalErrorStateChange
 		 * For full details and usage, see @ref xnUnregisterFromGlobalErrorStateChange
+
 		 */
 		inline void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
 		{
diff -up ./Include/XnOS.h.willow ./Include/XnOS.h
--- ./Include/XnOS.h.willow	2013-09-13 21:02:35.903795250 -0400
+++ ./Include/XnOS.h	2013-09-13 21:05:00.576408002 -0400
@@ -49,7 +49,11 @@
 #elif defined(_ARC)
 	#include "ARC/XnOSARC.h"
 #else
-	#error OpenNI OS Abstraction Layer - Unsupported Platform!
+	#if defined __INTEL_COMPILER
+		#include "Linux-x86/XnOSLinux.h" 
+	#else
+		#error OpenNI OS Abstraction Layer - Unsupported Platform!
+	#endif
 #endif
 
 //---------------------------------------------------------------------------
diff -up ./Include/XnPlatform.h.willow ./Include/XnPlatform.h
--- ./Include/XnPlatform.h.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Include/XnPlatform.h	2013-09-13 21:02:35.904795289 -0400
@@ -69,11 +69,16 @@
 #elif _ARC
 	#include "ARC/XnPlatformARC.h"
 #elif (__APPLE__)
-	#include "MacOSX/XnPlatformMacOSX.h"
+    #include "MacOSX/XnPlatformMacOSX.h" 
 #else
-	#error OpenNI Platform Abstraction Layer - Unsupported Platform!
+ #if defined __INTEL_COMPILER
+   #include "Linux/XnPlatformLinux.h" 
+ #else
+    #error OpenNI Platform Abstraction Layer - Unsupported Platform!
+ #endif
 #endif
 
+
 //---------------------------------------------------------------------------
 // Basic Common Macros
 //---------------------------------------------------------------------------
diff -up ./Include/XnTypes.h.willow ./Include/XnTypes.h
--- ./Include/XnTypes.h.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Include/XnTypes.h	2013-09-13 21:02:35.905795328 -0400
@@ -325,7 +325,7 @@ typedef XnUInt16 XnLabel;
 
 // deprecated pragma is only supported in Visual Studio
 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
-#pragma deprecated("XN_CAPABILITY_ANTI_FILCKER")
+//#pragma deprecated("XN_CAPABILITY_ANTI_FILCKER")
 #endif
 
 //---------------------------------------------------------------------------
diff -up ./Samples/NiAudioSample/NiAudioSample.cpp.willow ./Samples/NiAudioSample/NiAudioSample.cpp
--- ./Samples/NiAudioSample/NiAudioSample.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiAudioSample/NiAudioSample.cpp	2013-09-13 21:02:35.905795328 -0400
@@ -31,7 +31,7 @@
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 #define NUMBER_OF_AUDIO_BUFFERS 100
 
diff -up ./Samples/NiCRead/NiCRead.c.willow ./Samples/NiCRead/NiCRead.c
--- ./Samples/NiCRead/NiCRead.c.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiCRead/NiCRead.c	2013-09-13 21:02:35.905795328 -0400
@@ -27,7 +27,7 @@
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 //---------------------------------------------------------------------------
 // Macros
diff -up ./Samples/NiRecordRaw/NiRecordRaw.cpp.willow ./Samples/NiRecordRaw/NiRecordRaw.cpp
--- ./Samples/NiRecordRaw/NiRecordRaw.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiRecordRaw/NiRecordRaw.cpp	2013-09-13 21:02:35.906795367 -0400
@@ -30,7 +30,7 @@
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 #define RECORDING_FILE_NAME "recordingWithRaw.oni"
 #define RAW_NODE_NAME "Raw1"
 
diff -up ./Samples/NiRecordSynthetic/NiRecordSynthetic.cpp.willow ./Samples/NiRecordSynthetic/NiRecordSynthetic.cpp
--- ./Samples/NiRecordSynthetic/NiRecordSynthetic.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiRecordSynthetic/NiRecordSynthetic.cpp	2013-09-13 21:02:35.906795367 -0400
@@ -30,7 +30,7 @@
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 //---------------------------------------------------------------------------
 // Macros
diff -up ./Samples/NiSimpleRead/NiSimpleRead.cpp.willow ./Samples/NiSimpleRead/NiSimpleRead.cpp
--- ./Samples/NiSimpleRead/NiSimpleRead.cpp.willow	2013-09-13 21:02:35.907795405 -0400
+++ ./Samples/NiSimpleRead/NiSimpleRead.cpp	2013-09-13 21:05:38.612883664 -0400
@@ -30,7 +30,7 @@
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 #define SAMPLE_XML_PATH_LOCAL "SamplesConfig.xml"
 
 //---------------------------------------------------------------------------
diff -up ./Samples/NiSimpleViewer/NiSimpleViewer.cpp.willow ./Samples/NiSimpleViewer/NiSimpleViewer.cpp
--- ./Samples/NiSimpleViewer/NiSimpleViewer.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiSimpleViewer/NiSimpleViewer.cpp	2013-09-13 21:02:35.907795405 -0400
@@ -36,7 +36,7 @@ using namespace xn;
 //---------------------------------------------------------------------------
 // Defines
 //---------------------------------------------------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 #define GL_WIN_SIZE_X 1280
 #define GL_WIN_SIZE_Y 1024
diff -up ./Samples/NiUserTracker/main.cpp.willow ./Samples/NiUserTracker/main.cpp
--- ./Samples/NiUserTracker/main.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiUserTracker/main.cpp	2013-09-13 21:02:35.908795445 -0400
@@ -304,7 +304,7 @@ void glInit (int * pargc, char ** argv)
 }
 #endif // USE_GLES
 
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 #define CHECK_RC(nRetVal, what)										\
 	if (nRetVal != XN_STATUS_OK)									\
diff -up ./Samples/NiViewer/NiViewer.cpp.willow ./Samples/NiViewer/NiViewer.cpp
--- ./Samples/NiViewer/NiViewer.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Samples/NiViewer/NiViewer.cpp	2013-09-13 21:02:35.908795445 -0400
@@ -84,7 +84,7 @@ using namespace glh;
 // --------------------------------
 // Defines
 // --------------------------------
-#define SAMPLE_XML_PATH "../../../../Data/SamplesConfig.xml"
+#define SAMPLE_XML_PATH "/etc/openni/SamplesConfig.xml"
 
 // --------------------------------
 // Types
diff -up ./Source/OpenNI/XnOpenNI.cpp.willow ./Source/OpenNI/XnOpenNI.cpp
--- ./Source/OpenNI/XnOpenNI.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Source/OpenNI/XnOpenNI.cpp	2013-09-13 21:02:40.693981093 -0400
@@ -6991,9 +6991,9 @@ XN_C_API XnStatus xnScriptNodeRun(XnNode
 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
 	#define XN_OPEN_NI_FILES_LOCATION "\\Data\\"
 #elif (CE4100)
-	#define XN_OPEN_NI_FILES_LOCATION "/usr/etc/ni/"
+	#define XN_OPEN_NI_FILES_LOCATION "/etc/openni/"
 #elif (XN_PLATFORM == XN_PLATFORM_LINUX_X86 || XN_PLATFORM == XN_PLATFORM_LINUX_ARM || XN_PLATFORM == XN_PLATFORM_MACOSX)
-	#define XN_OPEN_NI_FILES_LOCATION "/var/lib/ni/"
+	#define XN_OPEN_NI_FILES_LOCATION "/etc/openni/"
 #elif (XN_PLATFORM == XN_PLATFORM_ANDROID_ARM)
 	#define XN_OPEN_NI_FILES_LOCATION "/data/ni/"
 #else
@@ -7012,7 +7012,7 @@ XnStatus xnGetOpenNIConfFilesPath(XnChar
 			return nRetVal;
 		#else
 			// use root FS
-			strDest[0] = '\0';
+			strcpy (strDest, "");
 		#endif
 	}
 	else
diff -up ./Source/OpenNI/XnProfiling.cpp.willow ./Source/OpenNI/XnProfiling.cpp
--- ./Source/OpenNI/XnProfiling.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Source/OpenNI/XnProfiling.cpp	2013-09-13 21:02:40.693981093 -0400
@@ -87,8 +87,8 @@ XN_THREAD_PROC xnProfilingThread(XN_THRE
 		// print profiled sections
 		nReportChars = 0;
 		nReportChars += sprintf(csReport + nReportChars, "Profiling Report:\n");
-		nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", g_ProfilingData.nMaxSectionName, "TaskName", "Times", "% Time", "TotalTime", "AvgTime");
-		nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", g_ProfilingData.nMaxSectionName, "========", "=====", "======", "=========", "=======");
+		nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", (int)g_ProfilingData.nMaxSectionName, "TaskName", "Times", "% Time", "TotalTime", "AvgTime");
+		nReportChars += sprintf(csReport + nReportChars, "%-*s %-5s %-6s %-9s %-7s\n", (int)g_ProfilingData.nMaxSectionName, "========", "=====", "======", "=========", "=======");
 
 		XnUInt64 nTotalTime = 0;
 
@@ -104,7 +104,7 @@ XN_THREAD_PROC xnProfilingThread(XN_THRE
 				nAvgTime = pSection->nTotalTime / pSection->nTimesExecuted;
 			}
 
-			nReportChars += sprintf(csReport + nReportChars, "%-*s %5u %6.2f %9llu %7llu\n", g_ProfilingData.nMaxSectionName, 
+			nReportChars += sprintf(csReport + nReportChars, "%-*s %5u %6.2f %9llu %7llu\n", (int)g_ProfilingData.nMaxSectionName, 
 				pSection->csName, pSection->nTimesExecuted, dCPUPercentage, pSection->nTotalTime, nAvgTime);
 
 			if (pSection->nIndentation == 0)
@@ -118,7 +118,7 @@ XN_THREAD_PROC xnProfilingThread(XN_THRE
 		// print total
 		XnDouble dCPUPercentage = ((XnDouble)nTotalTime) / (nNow - nLastTime) * 100.0;
 		nReportChars += sprintf(csReport + nReportChars, "%-*s %5s %6.2f %9llu %7s\n", 
-			g_ProfilingData.nMaxSectionName, "*** Total ***", "-", dCPUPercentage, nTotalTime, "-");
+			(int)g_ProfilingData.nMaxSectionName, "*** Total ***", "-", dCPUPercentage, nTotalTime, "-");
 
 		xnLogVerbose(XN_MASK_PROFILING, "%s", csReport);
 
diff -up ./Source/Utils/niLicense/niLicense.cpp.willow ./Source/Utils/niLicense/niLicense.cpp
--- ./Source/Utils/niLicense/niLicense.cpp.willow	2012-01-04 06:35:46.000000000 -0500
+++ ./Source/Utils/niLicense/niLicense.cpp	2013-09-13 21:02:40.694981132 -0400
@@ -119,14 +119,14 @@ int main(int argc, char* argv[])
 		nRetVal = xnOSStrNCopy(license.strVendor, strVendor, strlen(strVendor) + 1, sizeof(license.strVendor));
 		if (nRetVal != XN_STATUS_OK)
 		{
-			printf("Error: Vendor name is too long (should be up to %u characters).", sizeof(license.strVendor) - 1);
+			printf("Error: Vendor name is too long (should be up to %u characters).", (unsigned)sizeof(license.strVendor) - 1);
 			return -1;
 		}
 
 		nRetVal = xnOSStrNCopy(license.strKey, strKey, strlen(strKey) + 1, sizeof(license.strKey));
 		if (nRetVal != XN_STATUS_OK)
 		{
-			printf("Error: Key is too long (should be up to %u characters).", sizeof(license.strKey) - 1);
+			printf("Error: Key is too long (should be up to %u characters).", (unsigned)sizeof(license.strKey) - 1);
 			return -1;
 		}
 	}