HGGitLab

Commit 9826a356 authored by luoliangyi's avatar luoliangyi

解决webservice在linux上的编译问题

parent ee966c60
......@@ -36,6 +36,7 @@
<Add directory="../../../../third_party/sane" />
<Add directory="../../../../release/include" />
<Add directory="../../../../third_party/libzip/uos/amd64/include" />
<Add directory="../../../../third_party/json" />
</Compiler>
<Linker>
<Add option="-L../../../../release/bin/uos/amd64" />
......@@ -63,6 +64,10 @@
<Unit filename="../../../../sdk/webservice/main.cpp" />
<Unit filename="../../../../third_party/base64/base64.cpp" />
<Unit filename="../../../../third_party/base64/base64.h" />
<Unit filename="../../../../third_party/json/cJSON.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../../../../third_party/json/cJSON.h" />
<Unit filename="../../../../third_party/sha1/sha1.cpp" />
<Unit filename="../../../../third_party/sha1/sha1.h" />
<Extensions>
......
......@@ -774,7 +774,7 @@ std::string Manager::GetFilePath(const std::string& devId)
#if defined(HG_CMP_MSC)
sprintf(imgPath, "%sHuaGo/WebService/%s/", docsPath, Utf8ToAnsi(devId.c_str()).c_str());
#else
sprintf(imgPath, "%sHuaGo/WebService/%s/", docsPath, devId.c_str().c_str());
sprintf(imgPath, "%sHuaGo/WebService/%s/", docsPath, devId.c_str());
#endif
HGChar stdImgPath[512];
HGBase_StandardiseFileName(imgPath, stdImgPath, 512);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment