c++ - BeagleBoneBlack 在 Mac 上交叉编译错误

标签 c++ arm cross-compiling beagleboneblack

我使用 gcc-linaro-arm-linux-gnueabihf-2014.05 在我的 mac 上使用 eclipse 交叉编译 BeagleBoneBlack (Rev c)。

我使用了这个博客说明:http://www.welzels.de/blog/en/arm-cross-compiling-with-mac-os-x/

当我编译 hello world 示例时,它在 BBB 上运行“正常”,但问题是当我使用 pthread 和 stdio 等编译我的完整程序时...它无法在 BBB 上运行,并出现以下错误:

./NewDCU.elf: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./NewDCU.elf)

有关我的 BBB 的更多详细信息:

root@arm:/home/ubuntu# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-19ubuntu1) 

最佳答案

看来问题与工具链编译器版本和我在 BBB 上的相应库不匹配有关。

我从这个链接将我的 Linaro 工具链降级到 4.8: http://www.welzels.de/blog/projekte/arm-cross-toolchain/

关于c++ - BeagleBoneBlack 在 Mac 上交叉编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28277059/

相关文章:

c++ - 分离轴定理 : Calculating the MTV for Polygon & Line Segment

c++ - 如何使用带路径的包含文件在 Visual Studio 中构建?

交叉编译shellcode到arm

APP_ABI 的 Android NDK : what should I set in Application. mk?

c++ - 从 Linux 到 Windows 交叉编译 boost 1.57 的问题

python - 如何在没有 python 的情况下(交叉)编译 boost?

c++ - Qt信号和槽的效率

c++ - K阶统计搜索

c - 使用硬件计数器测量 ARM Cortex-A8 上的执行时间

linux - 如何在 Cygwin 上安装 GCC 交叉编译器 (ix86)