2017-05-04 5 views
1

私はこのガイドenter link description hereを使用して、クロスコンパイラ4.9.3とqt4.8.6をインストールしました。正しいバージョンを確認してください。その後、 http://www.mediafire.com/file/g0afghia7rkqx05/arm-cortexa9-linux-gnueabihf-4.9.3-20160512.tar.xzこのエラーはどういう意味ですか:インタプリタ/lib/ld-linux-armhf.so.3error reading(無効な引数)

http://www.mediafire.com/file/d54dbygdadergl1/target-qte-4.8.6-to-hostpc.tgz

cd ~ 
mkdir helloqt 
vi main.cpp 

その後、私はそれを書いた:

#include <QApplication> 
#include <QPushButton> 
int main(int argc, char **argv) 
{ 
     QApplication app (argc, argv); 
     QPushButton button ("Hello world !"); 
     button.show(); 
     return app.exec(); 
} 

と保存をそれ

cd ~/helloqt 
/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake -project 
/usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake 
make 

私はUbuntuの-qtのコアでこのプログラムを実行すると、私はこのeerorを参照してください。

[email protected]:/# tftp 192.168.101.4 
tftp> get helloqt 
Received 11660 bytes in 0.4 seconds 
tftp> quit 
[email protected]:/# chmod +x helloqt 
[email protected]:/# .setqt4env 
-bash: .setqt4env: command not found 
[email protected]:/# . setqt4env 
ctp = 1 
[email protected]:/# ./helloqt -qws & 
[1] 1909 
[email protected]:/# ./helloqt -qws & 
[2] 1910 
[1] Segmentation fault  ./helloqt -qws 
[email protected]:/# ./helloqt -qws 
[2]+ Segmentation fault  ./helloqt -qws 
Segmentation fault 
[email protected]:/# ./helloqt -qws 
Segmentation fault 
[email protected]:/# [2]+ Segmentation fault  ./helloqt -qws 
-bash: [2]+: command not found 
[email protected]:/# Segmentation fault 
-bash: Segmentation: command not found 
[email protected]:/# file ./helloqt 
./helloqt: ERROR: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3 error reading (Invalid argument) 

どのように私はこのエラーを解決することができますか?

+0

システムアーチ – MHM

+0

@ H.Gassamiを確認してください。あなたのアーチは何ですか? – saharghodsbin

+0

pnc-T2用armv7l –

答えて

0

これは、ファイルのバイナリが破損していることを示します。私はこの問題を修正するために、これらの操作を行います。

  1. は私のtslib構成がよくないと、このコードは私の最初の問題解決:

    sudoのac_cv_func_malloc_0_nonnull = yesのは./configure CC =は/ opt/FriendlyARM /ツールチェーン/ 4.9を.3/bin/arm-none-linux-gnueabihf-gcc CXX =/opt/FriendlyARM/toolchain/4.9.3/bin/arm-none-linux-gnueabihf-g ++ --host = arm-none-linux-gnueabihfターゲット

  2. 実行可能プログラムをSFTP(secure ftp)でデバイスにコピーする必要があります。あなたのファイルは変更されませんpe。

関連する問題