virinext / pipeviz

Pipeviz is a gui tool for constructing and testing gstreamer pipelines
GNU General Public License v2.0
116 stars 31 forks source link

Build snags on Mac #50

Closed khourig closed 5 years ago

khourig commented 5 years ago

I'm building on Mac with Xcode 10.1 and Qt 5.12 and I had to fix 2 lines to compile:

diff --git a/src/ElementProperties.cpp b/src/ElementProperties.cpp
index ec4a0b5..c4b0b60 100644
--- a/src/ElementProperties.cpp
+++ b/src/ElementProperties.cpp
@@ -398,7 +398,7 @@ ElementProperties::applyClicked ()
             break;
           }

-          LOG_INFO("property %s not supported", itr.key ());
+          LOG_INFO("property %s not supported", itr.key ().constData());
           break;
         }
       };
diff --git a/src/Logger.cpp b/src/Logger.cpp
index 5195b88..b2a5bf6 100644
--- a/src/Logger.cpp
+++ b/src/Logger.cpp
@@ -124,7 +124,7 @@ void Logger::processLog(const QString& line)

 //#define GST_TIME_FORMAT "u:%02u:%02u.%09u"
 #define GST_TIME_FORMAT "%s"
-#define PRINT_FMT " "PID_FMT" "PTR_FMT" %s "CAT_FMT" %s\n"
+#define PRINT_FMT " " PID_FMT " " PTR_FMT " %s " CAT_FMT " %s\n"

 struct GSTLog {
   gchar* date;

Did you want this as a PR or will the git diffs above suffice?

dabrain34 commented 5 years ago

sure