クロスコンパイル時のネイティブマシンライブラリ

クロスコンパイル時のネイティブマシンライブラリ

ライブラリをARMアーチでクロスコンパイルしています。
たとえば、Ubuntu 16ではエラーメッセージが構成ログ実行後、configure次のようになります。

cc1 libstdc++.so.6: cannot open shared object file file does not exist.

実行後、sudo apt-get install lib32stdc++6構成はエラーなしで実行されます。

x86 stdc++.6だから私の質問は、ライブラリがarmからインポートする必要があると確信しているときにコンパイラになぜ必要なのかということです。

私も確認しました~/cross_compile/arm/usr/lib/libstdc++.so.6ファイルが存在する

私が間違っている場合は、どのようなものを探すべきかをどうやって知ることができますか?

更新:継承された構成パラメータが追加されました

設定は次のとおりです。 -as - -with-ld=arm-unknown-nto-qnx8.0.0eabi-ld --with-sysroot=/opt/qnx800/target/qnx6/ --disable-werror --libdir=/opt/qnx800/host /linux/x86/usr/lib --libexecdir=/opt/qnx800/host/linux/x86/usr/lib --target=arm-unknown-nto-qnx8.0.0eabi --prefix=/opt/qnx800/host /linux/x86/usr --exec-prefix=/opt/qnx800/host/linux/x86/usr --with-local-prefix=/opt/qnx800/host/linux/x86/usr --enable-言語= c++ - - スレッドの有効化 = posix --disable-nls --disable-tls --disable-libssp --disable-libstdcxx-pch --enable-libmudflap --enable-libgomp --enable-__cxa_atexit --with-gxx- include- dir =/opt/qnx800/target/qnx6/usr/include/c++/4.8.3 --enable-shared --enable-multilib --with-bugurl=ttp://www.qnx.com --enable -gnu - 間接機能 --enable-stack-protector --with-float=softfp --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-mode=thumb CC=i686-unknown- linux - gnu-gcc LDFLAGS='-Wl,-s' AUTOMAKE=: AUTOCONF=:

ベストアンサー1

おすすめ記事