私はこのガイド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)
どのように私はこのエラーを解決することができますか?
システムアーチ – MHM
@ H.Gassamiを確認してください。あなたのアーチは何ですか? – saharghodsbin
pnc-T2用armv7l –