Jetpack 4.5 compile nvarguscamerasrc from public_sources throws error in make

Have apply below to compile the source.

diff --git a/gst-nvarguscamera/gstnvarguscamerasrc.cpp b/gst-nvarguscamera/gstnvarguscamerasrc.cpp
index fa1e0d8..b906ec8 100644
--- a/gst-nvarguscamera/gstnvarguscamerasrc.cpp
+++ b/gst-nvarguscamera/gstnvarguscamerasrc.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -299,7 +299,7 @@ bool StreamConsumer::threadExecute(GstNvArgusCameraSrc *src)
   src->frameInfo->fd = -1;
   while (true)
   {
-    Status frame_status;
+    Argus::Status frame_status;
     GError *error = NULL;
     Event* event = NULL;
     IEvent* iEvent = NULL;
@@ -330,7 +330,7 @@ bool StreamConsumer::threadExecute(GstNvArgusCameraSrc *src)

       src->argus_in_error = TRUE;
       const IEventError* iEventError = interface_cast<const IEventError>(event);
-      Status argusStatus = iEventError->getStatus();
+      Argus::Status argusStatus = iEventError->getStatus();
       error = g_error_new (domain, argusStatus, getStatusString(argusStatus));
       GstMessage *message = gst_message_new_error (GST_OBJECT(src), error, "Argus Error Status");
       gst_element_post_message (GST_ELEMENT_CAST(src), message);
1 Like