2. Windows installation from binaries¶
The instructions for installing eProsima Fast DDS in a Windows environment from binaries are provided in this page. It is organized as follows:
First of all, the Requirements detailed below need to be met.
The installation of eProsima Fast DDS in a Windows environment from binaries requires the following tools to be installed in the system:
2.1.1. Visual Studio¶
Visual Studio is required to
have a C++ compiler in the system. For this purpose, make sure to check the
Desktop development with C++ option during the Visual Studio installation process.
If Visual Studio is already installed but the Visual C++ Redistributable packages are not,
open Visual Studio and go to
Get Tools and Features and in the
Workloads tab enable
Desktop development with C++. Finally, click
Modify at the bottom right.
The latest release of eProsima Fast DDS for Windows is available at the company website downloads page. Once downloaded, execute the installer and follow the instructions, choosing the preferred Visual Studio version and architecture when prompted.
By default, eProsima Fast DDS does not compile tests. To activate them, please refer to the Windows installation from sources page.
By default, the installation will download all the available packages, namely:
foonathan_memory_vendor, an STL compatible C++ memory allocator library.
fastcdr, a C++ library that serializes according to the standard CDR serialization mechanism.
fastrtps, the core library of eProsima Fast DDS library.
fastddsgen, a Java application that generates source code using the data types defined in an IDL file.
2.2.2. Environment variables¶
eProsima Fast DDS requires the following environment variable setup in order to function properly:
FASTRTPSHOME: Root folder where eProsima Fast DDS is installed.
Additions to the
PATH: The location of eProsima Fast DDS scripts and libraries should be appended to the
These variables are set automatically by checking the corresponding box during the installation process.
2.2.3. Including Fast-DDS in a CMake project¶
The installer deploys CMake config files that simplify to incorporate Fast-DDS to any CMake project via the find_package CMake API.
By setting the CMake variable FASTDDS_STATIC is possible to choose the desired linkage (dynamic or static library) in the CMake generator stage. If the variable is missing defaults to dynamic linking.
For example in order to build the examples statically linked to Fast-DDS do:
> cmake -Bbuildexample -DFASTDDS_STATIC=ON . > cmake --build buildexample --target install