Cannot install ros-melodic-rostime on Archlinux
In the instalation guide for Arch, the first thing you are told to do is execute pikaur -S ros-melodic-desktop-full
but this ended in an error when installing ros-melodic-rostime
package.
I tried to install just that package and this was the given error.
Project 'rostime' tried to find library '-lpthread'. The library is neither a target nor built/installed properly.
It uses /usr/bin/cc
and /usr/bin/c++
, I changed them to /usr/bin/gcc
and /usr/bin/g++
but is still giving the same error.
And the output of find /usr/lib -name "*libpthread*"
is:
/usr/lib/libpthread.so
/usr/lib/libpthread.a
/usr/lib/libpthread-2.28.so
/usr/lib/libpthread.so.0
So I have libpthread installed
Y have already solved one error like this yesterday, it was just downgrading cmake, so now I have
cmake --version
cmake version 3.12.4
And just with that I was able to install the package ros-melodic-class-loader
that gave me the same error before downgrading cmake, but now I don't know what to do, I have been searching for hours but found nothing.
If someone has any idea I appreciate so much.
This is probably related to #q311685 if not a duplicate.
I had already read it, its why I downgraded cmake from 3.13 to 3.12 as it says, and with that I was able to install ros-melodic-class-loader and probably another bunch of packages that were going to fail with 3.13 but rostime gives me the exact same error that it did class-loader but with cmake<3.13
@allenh1 already mentions in #q311685 that his patching/work is probably incomplete. See also ros/ros-overlay#711.
I didn't read enough, so sorry for wasting your time, it was just rebuild the package ros-melodic-cpp-common and I could successfully install rso-melodic-rostime
No need to apologise.
Please post your last comment as an answer (extend it a little) and perhaps refer to the relevant comments by @allenh1 or in the issue on
ros/ros-overlay
I linked to so future readers have an easier time to solve it themselves.