解决国产系统按键扫描工具编译不过的问题

This commit is contained in:
modehua 2024-08-12 16:51:30 +08:00
parent 69265401cf
commit 5aeba0677e
3 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,8 @@
#include <QSpacerItem>
#include <QPushButton>
#include <QEvent>
#include <assert.h>
#include <typeinfo>
#if !defined(HG_CMP_MSC)
#include <math.h>

View File

@ -16,6 +16,7 @@
#include "sqlite3.h"
#include "cJSON.h"
#include "HGString.h"
#include <assert.h>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)

View File

@ -35,6 +35,7 @@ rm -f HGUpgrade/Makefile
rm -f HGUpload/Makefile
rm -f HGVersion/Makefile
rm -f HGWebService/Makefile
rm -f HGScanTool/Makefile
if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${1}" == "hwso" ] || [ "${1}" == "hwtwain" ]; then
@ -511,7 +512,7 @@ elif [ "${1}" == "dlall" ] || [ "${1}" == "dl" ] || [ "${1}" == "dlweb" ] || [ "
else
if [ "${1}" == "hg" ] || [ "${1}" == "hgweb" ] || [ "${1}" == "hgso" ] || [ "${1}" == "hgtwain" ]; then
if [ "${1}" == "hg" ] || [ "${1}" == "hgweb" ] || [ "${1}" == "hgso" ] || [ "${1}" == "hgtwain" ] || [ "${1}" == "hgtool" ]; then
cd HGBase
qmake -qt=qt5 -makefile HGBase.pro
@ -576,6 +577,13 @@ else
make -j8
cd ../
elif [ "${1}" == "hgtool" ]; then
cd HGScanTool
qmake -qt=qt5 -makefile HGScanTool.pro
make -j8
cd ../
else
cd HGScannerLib