1. 增加 Readme.md

2. 修复 CMakeLists.txt 实现多系统多架构构建
3. 添加 Dockerfile 使用 docker 在多系统多架构下进行编译
4. 修复 library.h 和 .cpp 调整 windows 和 linux 库的差异导致的无法编译通过
This commit is contained in:
2024-10-10 14:11:40 +08:00
parent 8d55048f7b
commit 1c13ef429c
7 changed files with 125 additions and 14 deletions

View File

@@ -63,7 +63,7 @@ char* CheckTimeRegionWithMonth(void* PtrHIKNvr,int year,int month){
res = HIKNvrObj->TimeToJson(select_time, &available_date_vec).dump();
}
char* cString = new char[res.size() + 1];
strcpy_s(cString, res.size()+1,res.c_str());
std::strcpy(cString,res.c_str());
return cString;
}
@@ -81,6 +81,6 @@ char* CheckTimeRegionWithDay(void* PtrHIKNvr,int year,int month,int day){
res = HIKNvrObj->TimeToJsonInDay(select_time, &available_time_vec).dump();
}
char* cString = new char[res.size() + 1];
strcpy_s(cString, res.size()+1,res.c_str());
std::strcpy(cString,res.c_str());
return cString;
}