diff --git a/setup.sh b/setup.sh index 6d27e97..18b6c6f 100644 --- a/setup.sh +++ b/setup.sh @@ -8,7 +8,6 @@ apt install -y wget apt install -y unzip apt install -y git apt install -y ffmpeg -apt install -y gstreamer1.0* apt install -y libavcodec-dev apt install -y libavformat-dev apt install -y libavutil-dev @@ -19,4 +18,7 @@ apt install -y libx264-dev apt install -y libilmbase-dev apt install -y libopencv-dev apt install -y qtbase5-dev +apt install -y qtchooser +apt install -y qt5-qmake +apt install -y qtbase5-dev-tools apt install -y apache2 diff --git a/src/common.cpp b/src/common.cpp index 0ce5987..02dff20 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -58,7 +58,7 @@ QByteArray genMD5(const QByteArray &bytes) QByteArray genMD5(const QString &path) { - auto file = QFile(path); + QFile file(path); if (file.open(QFile::ReadOnly)) { diff --git a/src/common.h b/src/common.h index 27d36fd..8a457f0 100644 --- a/src/common.h +++ b/src/common.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include