按教程的步骤操作,在编译的时候,说要先建立一个编译脚本,我按照教程,建立了一个脚本buildhost.sh ,内容如下:
#!/bin/sh
source opt/FriendlyARM/mini6410/linux/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
qmake -o Makefile.host -spec qws/linux-generic-g++ *.pro
make -f Makefile.host clean
make -f Makefile.host
之后运行# ./buildhost.sh
运行时出现这样的错误:
Cannot find directory: /opt/qtopia2_apps/mycalc/qws
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /opt/qtopia2_apps/mycalc/qws/linux-generic-g++
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /opt/qtopia2_apps/mycalc/mycalc.pro
make: Makefile.host: No such file or directory
make: *** No rule to make target `Makefile.host'. Stop.
make: Makefile.host: No such file or directory
make: *** No rule to make target `Makefile.host'. Stop.
请问这是什么原因呢?上网找了原因也没找到,希望有朋友能够指点一下,谢谢了,大家一起进步! |