[Dist/Debian] support latest gcc and Ubuntu 22.04 07/278407/2
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 20 Jul 2022 06:43:30 +0000 (15:43 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 20 Jul 2022 07:09:20 +0000 (16:09 +0900)
std::string is no more in std.
It is now in string.
Add #include <string>

Change-Id: Id86408ba9f471cb75366fb77b851a58190b31cd5
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
debian/rules

index 1bf16f1..4276a84 100755 (executable)
@@ -56,7 +56,8 @@ override_dh_auto_configure: prepare_tbb
                        mv $(EXTERNAL_ADE_ARCHIVE)/* ade/
        cd $(SRC_ROOT)/inference-engine/thirdparty && \
                        tar zxf $(EXTERNAL_NGRAPH_ARCHIVE).tar.gz && \
-                       mv $(EXTERNAL_NGRAPH_ARCHIVE)/* ngraph/
+                       mv $(EXTERNAL_NGRAPH_ARCHIVE)/* ngraph/ && \
+                       sed -i "19 a #include <string>" ngraph/src/ngraph/pass/pass_config.hpp
        cd $(SRC_ROOT)/inference-engine/thirdparty && \
                        rm -rf *.tar.gz $(EXTERNAL_ADE_ARCHIVE)
        cd $(SRC_ROOT)/inference-engine/thirdparty && \