In this post, we'll install Fast RTPS on the linux(ubuntu machine)
- Dependencies
you need to install following libraries
- Boost 1.61 ( http://www.boost.org/ )
- gtest (https://github.com/google/googletest)
- java
- gradle(to compile fastrtpsgen)! (https://gradle.org/ )
- CMake
- Install ation from sources
- set Environment variable
- 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.
- make directory
- [root]# mkdir Fast_RTPS
- [root]# mkdir build
- git clone
- [root]# git clone https://github.com/eProsima/Fast-RTPS
- execute cmake
- [root]# cd build
- [root]# cmake ../ -DEPROSIMA_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
- vim CMakeCache.txt
- before 'make' you need to configure your cmake file according to your system.
- //Activate the compilation of the Java application
BUILD_JAVA:BOOL=ON - //Build example
COMPILE_EXAMPLES:BOOL=ON - //Path to a file.
GMOCK_INCLUDE_DIR:PATH=/root/gtest/googletest/googlemock/include
//Path to a library.
GMOCK_LIBRARY:FILEPATH=/root/gtest/googletest/googlemock/lib/libgmock.a
//Path to a library.
GMOCK_LIBRARY_DEBUG:FILEPATH=/root/gtest/googletest/googlemock/lib/libgmock.a
//Path to a library.
GMOCK_MAIN_LIBRARY:FILEPATH=/root/gtest/googletest/googlemock/lib/libgmock_main.a
//Path to a library.
GMOCK_MAIN_LIBRARY_DEBUG:FILEPATH=GMOCK_MAIN_LIBRARY_DEBUG-NOTFOUND/libgmock_main.a - //Path to a file.
GTEST_INCLUDE_DIR:PATH=/root/gtest/googletest/googletest/include
//Activate the execution of GTest tests
GTEST_INDIVIDUAL:BOOL=ON
//Path to a library.
GTEST_LIBRARY:FILEPATH=/root/gtest/googletest/googletest/lib/libgtest.a
//Path to a library.
GTEST_LIBRARY_DEBUG:FILEPATH=/root/gtest/googletest/googletest/lib/libgtest.a
//Path to a library.
GTEST_MAIN_LIBRARY:FILEPATH=/root/gtest/googletest/googletest/lib/libgtest_main.a
//Path to a library.
GTEST_MAIN_LIBRARY_DEBUG:FILEPATH=/root/gtest/googletest/googletest/lib/libgtest_main.a - after modifing your CMakeCache.txt file you save this file and cmake one more time
- [root]# cmake ../ -DEPROSIMA_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
- and then make
[root]# make
[root]# make install - set library path to library
- [root]# cd /etc/ld.so.conf.d
- vim fast_rtps.conf
- add path to fast-rtps library
- for example in my case this path was : /root/DDS/Fast-RTPS/build/install/lib
- after finishing 'make' and 'make install' procedure you can enjoy your RTPS Good luck!
ref :https://github.com/eProsima/Fast-CDR