返回介绍

新手上路 - Fast RTPS installation

发布于 2020-07-27 14:09:22 字数 5453 浏览 1581 评论 0 收藏 0

Fast RTPS installation - 图1

eprosima Fast RTPS is a C++ implementation of the RTPS (Real Time Publish Subscribe) protocol, which provides publisher-subscriber communications over unreliable transports such as UDP, as defined and maintained by the Object Management Group (OMG) consortium. RTPS is also the wire interoperability protocol defined for the Data Distribution Service (DDS) standard, again by the OMG.

NOTE: The information here was extracted from original eprosima Fast RTPS documentation

Requirements

eProsima Fast RTPS requires the following packages to work.

Run Dependencies

Java

Java is required to make use of our built-in code generation tool fastrtpsgen. It’s recommended install Java JDK 8.

Windows 7 32-bit and 64-bit

Visual C++ 2013 or 2015 Redistributable Package

eProsima Fast RTPS requires the Visual C++ Redistributable packages for the Visual Studio version you choose during the installation or compilation. The installer gives you the option of downloading and installing them.

NOTE: For more information, please, visit Requirements

Installation from Sources

Clone the project from Github:

  1. $ git clone https://github.com/eProsima/Fast-RTPS
  2. $ mkdir Fast-RTPS/build && cd Fast-RTPS/build

If you are on Linux, execute:

  1. $ cmake -DTHIRDPARTY=ON ..
  2. $ make
  3. $ sudo make install

If you are on Windows, choose your version of Visual Studio:

  1. > cmake -G "Visual Studio 14 2015 Win64" -DTHIRDPARTY=ON ..
  2. > cmake --build . --target install

If you want to compile the examples, you will need to add the argmuent -DCOMPILE_EXAMPLES=ON when calling CMake.

If you want to compile the performance tests, you will need to add the argument -DPERFORMANCE_TESTS=ON when calling CMake.

NOTE: For more information, please, visit Installation from Sources

Installation from Binaries

You can always download the latest binary realese of eProsima Fast RTPS from the company website.

Windows 7 32-bit and 64-bit

Execute the installer and follow the instructions, choosing your preferred Visual Studio version and architecture when prompted.

Environmental Variables

eProsima Fast RTPS requires the following environmental variable setup in order to function properly

  • FASTRTPSHOME: Root folder where eProsima Fast RTPS is installed.
  • Additions to the PATH: the /bin folder and the subfolder for your Visual Studio version of choice should be appended to the PATH.

These variables are set automatically by checking the corresponding box during the installation process.

Linux

Extract the contents of the package. It will containt both eProsima Fast RTPS and its required package eProsima Fast CDR. You will have follow the same procedure for both packages, starting with Fast CDR.

Configure the compilation:

  1. $ ./configure --libdir=/usr/lib

If you want to compile with debug symbols (which also enables verbose mode):

  1. $ ./configure CXXFLAGS="-g -D__DEBUG" --libdir=/usr/lib

After configuring the project compile and install the library:

  1. $ sudo make install

NOTE: For more information, please, visit Installation from Binaries

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文