diff --git a/SConstruct b/SConstruct index 95af57863..86ccfe2ea 100644 --- a/SConstruct +++ b/SConstruct @@ -113,7 +113,7 @@ PLUGINS = { # plugins with external dependencies 'gdal': {'default':True,'path':None,'inc':'gdal_priv.h','lib':'gdal','lang':'C++'}, 'ogr': {'default':True,'path':None,'inc':'ogrsf_frmts.h','lib':'gdal','lang':'C++'}, # configured with custom paths, hence 'path': PREFIX/INCLUDES/LIBS - 'occi': {'default':False,'path':'OCCI','inc':'occi.h','lib':'ociei','lang':'C++'}, + 'occi': {'default':False,'path':'OCCI','inc':'occi.h','lib':'clntsh','lang':'C++'}, 'sqlite': {'default':True,'path':'SQLITE','inc':'sqlite3.h','lib':'sqlite3','lang':'C'}, 'rasterlite': {'default':False,'path':'RASTERLITE','inc':['sqlite3.h','rasterlite.h'],'lib':'rasterlite','lang':'C'}, diff --git a/plugins/input/occi/build.py b/plugins/input/occi/build.py index 87cb844cb..1e8cb5ac9 100644 --- a/plugins/input/occi/build.py +++ b/plugins/input/occi/build.py @@ -36,7 +36,7 @@ plugin_sources = Split( """ % locals() ) -libraries = [ 'clntsh' ] +libraries = [ 'clntsh', 'occi' ] libraries.append('boost_system%s' % env['BOOST_APPEND']) libraries.append(env['ICU_LIB_NAME']) diff --git a/plugins/input/occi/occi_featureset.cpp b/plugins/input/occi/occi_featureset.cpp index e2d2ecd52..eed1fd9ad 100644 --- a/plugins/input/occi/occi_featureset.cpp +++ b/plugins/input/occi/occi_featureset.cpp @@ -31,6 +31,7 @@ #include #include #include +#include // ogr #include "occi_featureset.hpp"