我正在尝试使用aarch64
PC对 Jetson nano (x86_64
)进行交叉编译。我正在使用toolchain provided by nvidia(用于64位BSP的GCC工具链)。目前,我陷入无法找到pthread
Project 'test_cpp' tried to find library 'pthread'. The library is neither
a target nor built/installed properly. Did you compile project 'roscpp'?
Did you find_package() it before the subdirectory containing its code is
included?
Call Stack (most recent call first):
/home/teshan/xcompile_nano/opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
CMakeLists.txt:10 (find_package)
我使用this article进行说明。它说要从目标系统复制pthread库文件,并用复制的库的绝对路径替换代码文件中每次出现的pthread
。可以,但是我希望编译器改用自己的pthread(是正确的方法吗?)
我的工具链在gcc-4.8.5-aarch64/install/
目录中。 find -name libpthread.so -type f
给了我
./gcc-4.8.5-aarch64/install/aarch64-unknown-linux-gnu/sysroot/usr/lib/libpthread.so
为什么编译器找不到此pthread
?如何显示给编译器?
P.S。。我不想让这个问题过长。如果需要,可以here in my question asked in nvidia forums
完整说明我要执行的操作和错误。