LibreCAD-2.2+QT5.12+RTKLIB2.4.3
1、QT5.12安装
https://blog.csdn.net/qq_38204686/article/details/134719637
2、LibreCAD2.2安装
https://www.cnblogs.com/Lounaver/p/18144329
https://www.codeleading.com/article/46262333353/
打开源码目录\librecad\src
下的custom.pro
文件添加如下代码:
Path=H:/OpenOceanbSurvey/Qt5.12.2/5.12.2/msvc2017_64/bin
BOOST_DIR = H:/OpenOceanbSurvey/boost_1_85_0
BOOST_LIBDIR = H:/OpenOceanbSurvey/boost_1_85_0/lib64-msvc-14.1
QTDIR=H:/OpenOceanbSurvey/Qt5.12.2/5.12.2/msvc2017_64/
选择源码目录下的LibreCAD.pro
文件,打开即可
编译librecad项目,设为启动项
<1>使用Windows记事本,修改以下源文件的编码为Unicode或者带BOM的UTF-8,否则编译会出错:
\LibreCAD-2.2.0\libraries\jwwlib\src\
dl_jww.cpp
jwwdoc.cpp
jwwdoc.h
\librecad-2.2.0\librecad\src\lib\engine\rs.h
https://blog.csdn.net/Love_Point/article/details/105658241
https://zhuanlan.zhihu.com/p/664009252
H:\OpenOceanbSurvey\LibreCAD-2.2\librecad\src\actions\rs_actiondrawline.cpp
pPoints->history.erase(pPoints->history.begin() + pPoints->historyIndex + 1, pPoints->history.end());
改为
if (pPoints->history.size() > 0)
{
pPoints->history.erase(pPoints->history.begin() + pPoints->historyIndex + 1, pPoints->history.end());
}
3、RTKLIB2.4.3
使用下面的包
https://gitcode.com/open-source-toolkit/0e0da/tree/main
strsvr_qt运行报错
RTKLIB-rtklib_2.4.3\app\strsvr_qt\svrmain.cpp
int stat[4]={0},byte[4]={0},bps[4]={0};
char msg[MAXSTRMSG*4]="",s1[256],s2[256];
double ctime,t[4];
//strsvrstat(&strsvr,stat,byte,bps,msg);
strsvrstat(&strsvr, stat, NULL, byte, bps, msg);
改为
int stat[4]={0},byte[4]={0},bps[4]={0}, log_stat[4];
char msg[MAXSTRMSG*4]="",s1[256],s2[256];
double ctime,t[4];
//strsvrstat(&strsvr,stat,byte,bps,msg);
strsvrstat(&strsvr, stat, log_stat, byte, bps, msg);
打开rtknavi_qt.exe
导入obs文件