Build can';t通过交叉编译添加rf24库

Build can';t通过交叉编译添加rf24库,build,raspberry-pi,qt-creator,cross-compiling,Build,Raspberry Pi,Qt Creator,Cross Compiling,我使用qtcreator通过ubuntu与RPi3进行交叉编译,我想添加rf24库,为此我将计算机(ubuntu)的sysroot与我在RPi中安装的库同步,然后在程序中添加了库,问题是,当我将它们添加到项目中并构建它时,会出现以下错误: ~/raspi/sysroot/usr/local/lib/librf24.so:-1: error: undefined reference to `std::runtime_error::runtime_error(char const*)' ~/ras

我使用qtcreator通过ubuntu与RPi3进行交叉编译,我想添加rf24库,为此我将计算机(ubuntu)的sysroot与我在RPi中安装的库同步,然后在程序中添加了库,问题是,当我将它们添加到项目中并构建它时,会出现以下错误:

~/raspi/sysroot/usr/local/lib/librf24.so:-1: error: undefined reference to `std::runtime_error::runtime_error(char const*)'

~/raspi/sysroot/usr/local/lib/librf24.so:-1: error: undefined reference to `operator delete(void*, unsigned int)'

:-1: error: collect2: error: ld returned 1 exit status
我在添加这个库时遇到了一些冲突,首先是断开的链接,当我再次使用符号链接手动添加它们时,我可以将库包括到项目中,但我无法添加标题,我尝试了多次,直到我能够添加标题,但当我这样做并构建项目时,我不断收到这些错误。我能做什么