From 5256eed7178ee9dcf1fb443cc046dd02049d2d25 Mon Sep 17 00:00:00 2001 From: YangWu Date: Wed, 17 Aug 2022 16:45:43 +0800 Subject: [PATCH] fix: build failed with Qt5.11 and GCC8.3. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the header ‘’ was include QDebug, if miss include functional or Debug, it would error: ‘std::function’ has not been declared. Log: fix build failed issue. --- src/device/decoder/decoder.h | 2 ++ src/device/decoder/videobuffer.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/device/decoder/decoder.h b/src/device/decoder/decoder.h index c372d6c..a63e975 100644 --- a/src/device/decoder/decoder.h +++ b/src/device/decoder/decoder.h @@ -7,6 +7,8 @@ extern "C" #include "libavcodec/avcodec.h" } +#include + class VideoBuffer; class Decoder : public QObject { diff --git a/src/device/decoder/videobuffer.h b/src/device/decoder/videobuffer.h index 5c97042..b2bafcc 100644 --- a/src/device/decoder/videobuffer.h +++ b/src/device/decoder/videobuffer.h @@ -5,6 +5,7 @@ #include #include +#include #include "fpscounter.h" // forward declarations