Closed kingsimba closed 2 years ago
@kingsimba Are you sure this is Toolchain error? Check again: https://answers.ros.org/question/297453/rt_library-notfound-unset-message-rt-library/
I tried to add some message in cmake.
message(STATUS "RT_LIBRARY: ${RT_LIBRARY}")
Before installing gcc. It shows:
RT_LIBRARY: /usr/lib/aarch64-linux-gnu/librt.so
After installing. It shows:
RT_LIBRARY: RT_LIBRARY-NOTFOUND
I think I know what's going wrong. librt.so
, libthread.so
(and many more) should also be linked.
By executing the following additional commands. catkin_make
works as usual.
sudo ln -s /usr/lib/aarch64-linux-gnu/*.so /usr/lib
sudo ln -s /usr/lib/aarch64-linux-gnu/cmake/* /usr/lib/cmake
I tried to install GCC 10 on 64 bit raspberry-pi(Debian Buster). And followed this instruction:
https://github.com/abhiTronix/raspberry-pi-cross-compilers/wiki/64-Bit-Native-Compiler:-Installation-Instructions
I can compile a simple "hello_world.cpp". But ROS
catkin_make
and encountered the following error:The cmake file contains:
I guess some
*.cmake
files are not linked correctly. But I don't know how to fix it.