0

Eclipse IDE を使用して Beaglebone Black で Ubuntu 用にクロスコンパイルするために Xively C ライブラリを使用しているときに、次のエラーが発生しました。

**** Build of configuration Debug for project Test ****

make all 
Building file: ../src/Test.cpp
Invoking: GCC C++ Compiler
arm-linux-gnueabi-g++ -I/usr/arm-linux-gnueabi/include/c++/4.7.3 -I/home/nishant/libxively/src/libxively -I/usr/arm-linux-gnueabi/include/c++/4.7.3/bits -I/usr/arm-linux-gnueabi/include/c++/4.7.3/ext -I/usr/arm-linux-gnueabi/include/c++/4.7.3/arm-linux-gnueabi -I/usr/arm-linux-gnueabi/include/c++/4.7.3/backward -I/usr/arm-linux-gnueabi/include/c++/4.7.3/decimal -includexively.h -includexi_helpers.h -includexi_err.h -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Test.d" -MT"src/Test.d" -o "src/Test.o" "../src/Test.cpp"
Finished building: ../src/Test.cpp

Building target: Test
Invoking: GCC C++ Linker
arm-linux-gnueabi-g++ -L/home/nishant/workspace/Test/src -L/usr/arm-linux-gnueabi/lib -o "Test"  ./src/Test.o   -lxively
**/home/nishant/workspace/Test/src/libxively.a: could not read symbols: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [Test] Error 1**

**** Build Finished ****

問題はこれに関連していると思います:

4

1 に答える 1

0

/home/nishant/workspace/Test/src/libxively.a は別の形式です (おそらく x86)。libxively がクロス コンパイラを使用してビルドされていることを確認します。ライブラリの依存関係の問題が発生する場合があります。その場合、クロス コンパイルではなく、bbk でビルドする方が簡単です。

于 2013-11-01T08:23:00.123 に答える