I Я пытаюсь следовать инструкциям по установке FAST-DDS в Ubuntu 18.04. Во время make -j $ (nproc --all) я получаю эту ошибку
[ 4%] Built target fastcdr
[ 5%] Linking CXX shared library libfastrtps.so
/usr/bin/ld: cannot find -lOpenSSL::SSL
/usr/bin/ld: cannot find -lOpenSSL::Crypto
collect2: error: ld returned 1 exit status
src/cpp/CMakeFiles/fastrtps.dir/build.make:4047: recipe for target 'src/cpp/libfastrtps.so.1.8.2' failed
make[2]: *** [src/cpp/libfastrtps.so.1.8.2] Error 1
CMakeFiles/Makefile2:1054: recipe for target 'src/cpp/CMakeFiles/fastrtps.dir/all' failed
make[1]: *** [src/cpp/CMakeFiles/fastrtps.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Openssl существует в моей системе, OpenSSL 1.1.1 11 сентября 2018 г.
, libssl-dev также присутствует, {{1} } libssl-dev уже является последней версией (1.1.1-1ubuntu2.1 ~ 18.04.9).
как решить эту проблему?
вот / build / Makefile и полный вывод терминала
Ubuntu 18.04: Нет проблем с версией Fast-DDS для Git. (Моя версия cmake - 3.16.3: память
требует cmake => 3.11)
sudo apt install libasio-dev libtinyxml2-dev
git clone https://github.com/foonathan/memory.git
cd memory/ && mkdir build && cd build/
cmake .. && make && sudo make install
git clone https://github.com/eProsima/Fast-DDS.git
cd Fast-DDS/
git submodule update --init --recursive
cd thirdparty/fastcdr/ && mkdir build && cd build/
cmake .. && make && sudo make install && exit
cd Fast-DDS/ && mkdir build && cd build/
cmake ..
make ## No errors
[ 99%] Built target fastrtps
Scanning dependencies of target fast-discovery-server
[ 99%] Building CXX object tools/fds/CMakeFiles/fast-discovery-server.dir/server.cpp.o
[100%] Linking CXX executable fast-discovery-server-1.0.0
[100%] Built target fast-discovery-server
sudo make install ## No errors