OpenDDS的基于Qt的Monitor图形界面应用搭建

话不多说先上OpenDDS官方github目录里原文:

The monitor requires the core OpenDDS libraries so make sure you are able to build them first. It also uses Qt5. To configure Qt5 applications in OpenDDS, please follow the OpenDDS Qt5 documentation (DDS_ROOT/docs/qt.md). Once configured, the mointor should be able to be built using the target/project named MonitorApp but will also be built by default if everything is being built.

意思就是搭monitor之前先把opendds都安装好了,Qt也安装好。然后根据(DDS_ROOT/docs/qt.md)目录下的文档configure之后,就能找到对应的名字叫MonitorApp的工程文件,然后用VS编译就行了。那么就去看那个configure文档,还是原文:

configure --qt=C:\Qt\5.11.1\msvc2017_64

This is for a prebuilt 64-bit Qt 5.11.1 for Visual Studio 2017 using the official Qt Windows installer and the default location.

C:\Qt\5.11.1\msvc2017_64应该是Qt安装的目录,我安装的版本是Qt4.8.6,对应的是系统默认位置C:\Qt\4.8.6.回到OpenDDS根目录,使用上面的命令。

之后报了CMD报了一堆错,原因是我在其他例程旁边直接新建文件夹写了自己的工程,所以以后新建OpenDDS工程要换个位置比较好。都删了之后就不会报错了。会生成这个工程文件:Monitor_App.vcxproj.用VS编译,编译后会在这个目录生成Monitor.exe:
D:\OpenDDS-3.13.1\bin.

之后,命令行启动又报错,缺少一些.dll文件…去配置了Qt和VS2015的系统变量,问题解决。

猜你喜欢

转载自blog.csdn.net/qq_41090341/article/details/89319725