--- a/c++/patchcanvas/canvasbezierline.cpp
+++ b/c++/patchcanvas/canvasbezierline.cpp
@@ -18,6 +18,7 @@
 #include "canvasbezierline.h"
 
 #include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
 
 #include "canvasport.h"
 #include "canvasportglow.h"
--- a/c++/patchcanvas/canvasbezierlinemov.cpp
+++ b/c++/patchcanvas/canvasbezierlinemov.cpp
@@ -18,6 +18,7 @@
 #include "canvasbezierlinemov.h"
 
 #include <QtGui/QPainter>
+#include <QtGui/QPainterPath>
 
 #include "canvasport.h"
 
