官网要求如下:
-
Ensure that your environment has:
- Visual Studio,我安装了VS2019
- Perl,我安装了Strawberry Perl,下载链接如下:Strawberry Perl for Windows
- Optional Java SDK 1.5 or greater for Java JNI binding support
See Building for a complete list of dependencies and supported platforms.
- Download and extract the latest zip from the download site
- Start a Visual Studio Command Prompt,从VS2019中打开工具---命令行---开发者命令行启示(之前没接触过,不知道从VS中打开)
- Enter the OpenDDS-<version> directory()
configure
(To enable Java support, useconfigure --java
)- Determine the solution to build from the output of the configure script. The solution will have a .sln extension. (最后生成一个sln的)
- Start Visual Studio by executing the solution from the command prompt, e.g.,
DDS_TAOv2_all.sln
- Select Build -> Build Solution,一开始我编译不通过,之后在命令行中输入 setenv.cmd, 将这些环境变量添加进去(好像是临时的),再次编译,完全通过。这就算结束了