Try to fix pthreads ld error

This commit is contained in:
Oleg Kalachev
2021-04-08 13:34:21 +03:00
parent 67b7e903fd
commit bd0037f3c9
2 changed files with 3 additions and 4 deletions

View File

@@ -133,6 +133,9 @@ my_travis_retry apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-ws281x \ ros-${ROS_DISTRO}-ws281x \
ros-${ROS_DISTRO}-rosshow ros-${ROS_DISTRO}-rosshow
echo_stamp "Installing libboost-dev" # https://travis-ci.org/github/CopterExpress/clover/jobs/766318908#L6536
my_travis_retry apt-get install -y --no-install-recommends libboost-dev
# TODO move GeographicLib datasets to Mavros debian package # TODO move GeographicLib datasets to Mavros debian package
echo_stamp "Install GeographicLib datasets (needed for mavros)" \ echo_stamp "Install GeographicLib datasets (needed for mavros)" \
&& wget -qO- https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh | bash && wget -qO- https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh | bash

View File

@@ -44,10 +44,6 @@ find_package(OpenCV ${_opencv_version} REQUIRED
imgproc imgproc
) )
# Fix https://travis-ci.org/github/CopterExpress/clover/jobs/766318908#L6536
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
## System dependencies are found with CMake's conventions ## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system) # find_package(Boost REQUIRED COMPONENTS system)