如图,不知的哪里有错了。。。。
执行 make 之后
执行make install 之后
解决方法:
所有指令在 # root用户下执行。
执行configure时,不加 sudo
Qt 交叉编译出错。。。。报错信息如下:
make: Entering directory `/home/viki/hello/hello/hello-build-desktop-Qt_4_7_3__QtEmbedded-4_7_3-arm__Debug'
g++ -m32 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib -o hello main.o mainwindow.o moc_mainwindow.o -L/usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib -lQtGui -L/usr/local/tslib/lib -L/usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib -lQtNetwork -lQtCore -lpthread
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtGui.so when searching for -lQtGui
make: Leaving directory `/home/viki/hello/hello/hello-build-desktop-Qt_4_7_3__QtEmbedded-4_7_3-arm__Debug'
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtGui.so when searching for -lQtGui
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtNetwork.so when searching for -lQtNetwork
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtNetwork.so when searching for -lQtNetwork
/usr/bin/ld: cannot find -lQtNetwork
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtCore.so when searching for -lQtCore
/usr/bin/ld: skipping incompatible /usr/local/Trolltech/QtEmbedded-4.7.3-arm/lib/libQtCore.so when searching for -lQtCore
/usr/bin/ld: cannot find -lQtCore
collect2: ld returned 1 exit status
make: *** [hello] Error 1
解决方法:
配置叉叉编译器时不使用 arm-linux-gcc
使用arm-none-linux-gnueabi