From 61f026071e40e17a57a9bdaf379557a0b4cd3b77 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 3 Jun 2014 14:26:30 +0000 Subject: [PATCH] Fixed libfreenect.h not found error when compiling the rtabmap-gui lib git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1313 f169173b-cf89-36c8-b27e-44dbe73f0c83 --- corelib/include/rtabmap/core/CameraFreenect.h | 3 ++- corelib/src/CameraFreenect.cpp | 2 ++ guilib/src/MapVisibilityWidget.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/corelib/include/rtabmap/core/CameraFreenect.h b/corelib/include/rtabmap/core/CameraFreenect.h index 45e09743..869bb8a9 100644 --- a/corelib/include/rtabmap/core/CameraFreenect.h +++ b/corelib/include/rtabmap/core/CameraFreenect.h @@ -14,10 +14,11 @@ #include #include -#include #include class UTimer; +typedef struct _freenect_context freenect_context; +typedef struct _freenect_device freenect_device; namespace rtabmap { diff --git a/corelib/src/CameraFreenect.cpp b/corelib/src/CameraFreenect.cpp index fffd0fd4..7598e0a5 100644 --- a/corelib/src/CameraFreenect.cpp +++ b/corelib/src/CameraFreenect.cpp @@ -13,6 +13,8 @@ #include #include +#include + namespace rtabmap { // diff --git a/guilib/src/MapVisibilityWidget.cpp b/guilib/src/MapVisibilityWidget.cpp index a3e1d21a..853b17f8 100644 --- a/guilib/src/MapVisibilityWidget.cpp +++ b/guilib/src/MapVisibilityWidget.cpp @@ -42,7 +42,7 @@ void MapVisibilityWidget::updateCheckBoxes() QWidget * area = this->findChild("area"); QVBoxLayout * layout = (QVBoxLayout *)area->layout(); QList checkboxes = area->findChildren(); - while(checkboxes.size() && checkboxes.size() > _poses.size()) + while(checkboxes.size() && checkboxes.size() > (int)_poses.size()) { delete *checkboxes.begin(); checkboxes.erase(checkboxes.begin());