Skip to content

Commit

Permalink
fix: build failed with Qt5.11 and GCC8.3.
Browse files Browse the repository at this point in the history
the header ‘<functional>’ was include QDebug, if miss include functional or Debug, it would error: ‘std::function’ has not been declared.

Log: fix build failed issue.
  • Loading branch information
re2zero committed Aug 17, 2022
1 parent 59f952c commit 5256eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/device/decoder/decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ extern "C"
#include "libavcodec/avcodec.h"
}

#include <functional>

class VideoBuffer;
class Decoder : public QObject
{
Expand Down
1 change: 1 addition & 0 deletions src/device/decoder/videobuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <QWaitCondition>
#include <QObject>

#include <functional>
#include "fpscounter.h"

// forward declarations
Expand Down

0 comments on commit 5256eed

Please sign in to comment.