Qv2ray's own LOG macro conflicts with Protobuf/Abseil, there's a trick patch:
diff --git a/src/base/Qv2rayLog.hpp b/src/base/Qv2rayLog.hpp
--- a/src/base/Qv2rayLog.hpp
+++ b/src/base/Qv2rayLog.hpp
@@ -7,6 +7,10 @@
#include <QString>
#include <QTextStream>
#include <iostream>
+#if __has_include(<absl/log/log.h>)
+#include <absl/log/log.h>
+#endif
+
#ifdef Q_OS_ANDROID
#include <android/log.h>
#endif
@@ -27,6 +31,9 @@
#define _LOG_ARG_(...) QV2RAY_LOG_PREPEND_CONTENT "[" QV_MODULE_NAME "]", __VA_ARGS__
+#ifdef LOG
+#undef LOG
+#endif
#define LOG(...) Qv2ray::base::log_internal<QV2RAY_LOG_NORMAL>(_LOG_ARG_(__VA_ARGS__))
#define DEBUG(...) Qv2ray::base::log_internal<QV2RAY_LOG_DEBUG>(_LOG_ARG_(__VA_ARGS__))
Pinned Comments
DuckSoft commented on 2020-12-20 07:04 (UTC) (edited on 2020-12-20 07:04 (UTC) by DuckSoft)
Documentation: https://qv2ray.net/en/
User Group (Telegram, Chinese): https://t.me/qv2ray
User Group (Telegram, International): https://t.me/qv2ray_intl