EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
. ^/ G0 n5 k! ^. x6 G( _" \
已经安装 QT5.2.1for linux 和 ARM-linux-gcc 以及 qt-4.8.3-linux-arm-install。5 N' y8 k& S4 h- g- @
执行#arm-linux-gcc -v 和#qmake -v 都能成功现实版本号。而且我已经在/etc/profile中添加:' u( H+ Y7 X& c7 n
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin% t/ t9 o0 j: M
export PATH=$PATH:/usr/local/qt-4.8.3-linux-arm-install/bin
9 E* [5 ?0 f+ b6 |export QMAKESPEC=/usr/local/qt-4.8.3-linux-arm-install/mkspecs/qws/linux-arm-g++ 问题1:在编译hello.cpp文件时,显示如下:" b- r. P8 R+ ^2 ]3 I* d
wangsy@9527laptop:~/test$ qmake -project0 B. t6 B- J/ k, ~ t" @6 C4 l: U
wangsy@9527laptop:~/test$ qmake
! P1 M7 {5 v# J+ Z$ n0 |0 z4 zwangsy@9527laptop:~/test$ make
: b! @; Z. [, H6 Jarm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/qt-4.8.3-linux-arm-install/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/qt-4.8.3-linux-arm-install/include/QtCore -I/usr/local/qt-4.8.3-linux-arm-install/include/QtNetwork -I/usr/local/qt-4.8.3-linux-arm-install/include/QtGui -I/usr/local/qt-4.8.3-linux-arm-install/include -I. -I. -o hello.o hello.cpp
) u; Y3 w2 Z+ b6 [, z oarm-linux-g++ -Wl,-O1 -Wl,-rpath,/usr/local/qt-4.8.3-linux-arm-install/lib -o test hello.o -L/usr/local/qt-4.8.3-linux-arm-install/lib -lQtGui -L/usr/local/qt-4.8.3-linux-arm-install/lib -lQtNetwork -lQtCore -lpthread 问题2:在 Qt Creator 中,在Qt versions中已经添加了qt-4.8.3-linux-arm-install中的qmake,路径是/usr/local/qt-4.8.3-linux-arm-install/bin/qmake;在Compilers中添加了arm-linux-gcc,路径是/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/bin/gcc。可是在build的时候会显示这样的信息:) Z% O* }' X* r" Q
Error while parsing file /home/wangsy/QT_test/console_test/console_test.pro. Giving up.% a2 _1 E; m3 o% T
Cannot read /qws/linux-arm-g++/qmake.conf: No such file or directory
4 e( r6 \+ J& o" ^3 M3 SCould not read qmake configuration file /qws/linux-arm-g++/qmake.conf.
6 }! i' L V1 w m* Z0 h: p4 K6 RCould not read qmake configuration file /qws/linux-arm-g++/qmake.conf. 对于问题一,这种提示是说我环境没配好吗?如果是的话我应该怎么修改?6 j+ K% T& C) [
对于问题二,应该在哪里配置才能解决这个问题? 请大神帮助~~ |