diff --git a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h
index 3084b2503e8680fe36b60c0cf70b979bc7656cc9..ef74d52f4063a3cca332312c14bb4cbac0c95d57 100644
--- a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h
+++ b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h
@@ -20,6 +20,7 @@
 #ifndef otbSharkKMeansMachineLearningModel_h
 #define otbSharkKMeansMachineLearningModel_h
 
+#include "boost/shared_ptr.hpp"
 #include "itkLightObject.h"
 #include "otbMachineLearningModel.h"
 
diff --git a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.txx b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.txx
index 96c12ae86d937877f640b5f9524a40bce87b441a..9dd43948a719c9305dace0a6366ebfd40e4b3e24 100644
--- a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.txx
+++ b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.txx
@@ -21,6 +21,7 @@
 #define otbSharkKMeansMachineLearningModel_txx
 
 #include <fstream>
+#include "boost/make_shared.hpp"
 #include "itkMacro.h"
 #include "otbSharkKMeansMachineLearningModel.h"