v1.5.t12
Turned off caching for all web interface pages. Opencv will no longer be compiled from source as part the setup.sh script, instead the libopencv-dev package will be installed.
This commit is contained in:
parent
523ff57215
commit
f8f7564911
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -46,7 +46,7 @@ target_wrapper.*
|
|||
# QtCreator CMake
|
||||
CMakeLists.txt.user*
|
||||
|
||||
# QtCreator 4.8< compilation database
|
||||
# QtCreator 4.8< compilation database
|
||||
compile_commands.json
|
||||
|
||||
# QtCreator local machine specific files for imported projects
|
||||
|
@ -57,7 +57,3 @@ compile_commands.json
|
|||
|
||||
# Build folders
|
||||
/.build-mow
|
||||
/.build-opencv
|
||||
|
||||
# Opencv src folder
|
||||
/src/opencv
|
||||
|
|
17
setup.sh
17
setup.sh
|
@ -3,22 +3,9 @@
|
|||
apt update -y
|
||||
apt install -y pkg-config
|
||||
apt install -y cmake g++ wget unzip git ffmpeg gstreamer1.0* libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
||||
apt install -y x264 libx264-dev
|
||||
apt install -y libopencv-dev apache2
|
||||
add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||
apt update -y
|
||||
apt install -y gcc-10 gcc-10-base gcc-10-doc g++-10
|
||||
apt install -y libstdc++-10-dev libstdc++-10-doc
|
||||
cd ./src
|
||||
if [ -d "./opencv" ]
|
||||
then
|
||||
cd ./opencv
|
||||
git pull origin
|
||||
cd ..
|
||||
else
|
||||
git clone https://github.com/opencv/opencv.git
|
||||
fi
|
||||
cd ..
|
||||
mkdir -p ./.build-opencv
|
||||
cd ./.build-opencv
|
||||
cmake ../src/opencv
|
||||
make -j4
|
||||
make install
|
||||
|
|
|
@ -35,7 +35,7 @@ using namespace cv;
|
|||
using namespace std;
|
||||
using namespace std::filesystem;
|
||||
|
||||
#define APP_VER "1.5.t11"
|
||||
#define APP_VER "1.5.t12"
|
||||
#define APP_NAME "Motion Watch"
|
||||
|
||||
struct shared_t
|
||||
|
|
|
@ -76,6 +76,9 @@ void initLogFrontPage(const string &filePath, const string &logLinesFile)
|
|||
htmlText += "};\n";
|
||||
htmlText += "</script>\n";
|
||||
htmlText += "<head>\n";
|
||||
htmlText += "<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Expires\" content=\"0\" />\n";
|
||||
htmlText += "<link rel='stylesheet' href='/theme.css'>\n";
|
||||
htmlText += "</head>\n";
|
||||
htmlText += "<body>\n";
|
||||
|
|
|
@ -22,6 +22,9 @@ void genHTMLul(const string &outputDir, const string &title, shared_t *share)
|
|||
|
||||
htmlText += "<html>\n";
|
||||
htmlText += "<head>\n";
|
||||
htmlText += "<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Expires\" content=\"0\" />\n";
|
||||
htmlText += "<link rel='stylesheet' href='/theme.css'>\n";
|
||||
htmlText += "</head>\n";
|
||||
htmlText += "<body>\n";
|
||||
|
@ -90,6 +93,9 @@ void genHTMLvid(const string &outputVid, shared_t *share)
|
|||
|
||||
htmlText += "<html>\n";
|
||||
htmlText += "<head>\n";
|
||||
htmlText += "<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
|
||||
htmlText += "<meta http-equiv=\"Expires\" content=\"0\" />\n";
|
||||
htmlText += "<link rel='stylesheet' href='/theme.css'>\n";
|
||||
htmlText += "</head>\n";
|
||||
htmlText += "<body>\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user