From e2ab82603e52ca4fdf349ce55b2eccf017f86157 Mon Sep 17 00:00:00 2001 From: litelu Date: Wed, 28 Aug 2019 10:50:14 +0800 Subject: [PATCH 1/2] !): Fix for ubuntu 18.04 link error. --- mediapipe/examples/desktop/BUILD | 1 + mediapipe/examples/desktop/hello_world/BUILD | 3 +++ 2 files changed, 4 insertions(+) diff --git a/mediapipe/examples/desktop/BUILD b/mediapipe/examples/desktop/BUILD index 829601df76..39759fec26 100644 --- a/mediapipe/examples/desktop/BUILD +++ b/mediapipe/examples/desktop/BUILD @@ -27,5 +27,6 @@ cc_library( "//mediapipe/framework/port:parse_text_proto", "//mediapipe/framework/port:status", "@com_google_absl//absl/strings", + "//external:unwind" ], ) diff --git a/mediapipe/examples/desktop/hello_world/BUILD b/mediapipe/examples/desktop/hello_world/BUILD index ff36a24f00..52b4dc386b 100644 --- a/mediapipe/examples/desktop/hello_world/BUILD +++ b/mediapipe/examples/desktop/hello_world/BUILD @@ -27,4 +27,7 @@ cc_binary( "//mediapipe/framework/port:parse_text_proto", "//mediapipe/framework/port:status", ], + linkopts = [ + "-lunwind", + ], ) From 2cd9ec1b443efcb14aa03d369d1a1d1aabbdf02f Mon Sep 17 00:00:00 2001 From: litelu Date: Wed, 28 Aug 2019 13:08:44 +0800 Subject: [PATCH 2/2] !): Fix for Ubuntu 18.04 linking error. --- mediapipe/examples/desktop/BUILD | 1 - mediapipe/examples/desktop/media_sequence/BUILD | 3 +++ mediapipe/examples/desktop/object_detection/BUILD | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mediapipe/examples/desktop/BUILD b/mediapipe/examples/desktop/BUILD index 39759fec26..829601df76 100644 --- a/mediapipe/examples/desktop/BUILD +++ b/mediapipe/examples/desktop/BUILD @@ -27,6 +27,5 @@ cc_library( "//mediapipe/framework/port:parse_text_proto", "//mediapipe/framework/port:status", "@com_google_absl//absl/strings", - "//external:unwind" ], ) diff --git a/mediapipe/examples/desktop/media_sequence/BUILD b/mediapipe/examples/desktop/media_sequence/BUILD index 30b37d82af..dd65ad5a60 100644 --- a/mediapipe/examples/desktop/media_sequence/BUILD +++ b/mediapipe/examples/desktop/media_sequence/BUILD @@ -37,4 +37,7 @@ cc_binary( "//mediapipe/graphs/media_sequence:clipped_images_from_file_at_24fps_calculators", "//mediapipe/graphs/media_sequence:tvl1_flow_and_rgb_from_file_calculators", ], + linkopts = [ + "-lunwind", + ], ) diff --git a/mediapipe/examples/desktop/object_detection/BUILD b/mediapipe/examples/desktop/object_detection/BUILD index 4ce4fd9001..e74b68ed12 100644 --- a/mediapipe/examples/desktop/object_detection/BUILD +++ b/mediapipe/examples/desktop/object_detection/BUILD @@ -63,6 +63,9 @@ cc_binary( "//mediapipe/graphs/object_detection:desktop_tensorflow_calculators", "@org_tensorflow//tensorflow/core:direct_session", ], + linkopts = [ + "-lunwind", + ], ) cc_binary( @@ -71,4 +74,7 @@ cc_binary( "//mediapipe/examples/desktop:simple_run_graph_main", "//mediapipe/graphs/object_detection:desktop_tflite_calculators", ], + linkopts = [ + "-lunwind", + ], )