Fix Ubuntu CI Build Error
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 27 Jul 2020 10:53:10 +0000 (19:53 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 30 Jul 2020 04:06:20 +0000 (13:06 +0900)
Having header inclusion with incorrect orders
may incur errors with older gcc of older Ubuntu distro.

You shouldn't omit headers only because they may be included
indirectly by other headers.

Change-Id: Iaf4a096e08ee27d431fad85052edbae21470114f
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ext/nnstreamer/extra/nnstreamer_protobuf.h
ext/nnstreamer/tensor_decoder/tensordec-protobuf.cc
ext/nnstreamer/tensor_filter/tensor_filter_python.cc

index 2884098..7c75c2c 100644 (file)
@@ -16,6 +16,7 @@
 #ifndef __NNS_PROTOBUF_UTIL_H__
 #define __NNS_PROTOBUF_UTIL_H__
 
+#include <gst/gst.h>
 #include <nnstreamer_plugin_api.h>
 
 /**
index 777b55c..8b01fa3 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <glib.h>
-#include <gst/gstinfo.h>
+#include <gst/gst.h>
 #include <tensor_typedef.h>
 #include <nnstreamer_plugin_api_decoder.h>
 #include <nnstreamer_plugin_api.h>
index f2469e0..d325a6d 100644 (file)
@@ -65,6 +65,7 @@
 
 #include <vector>
 #include <map>
+#include <string>
 
 /**
  * @brief Macro for debug mode.