我使用友善之臂的tiny210板子,按照《qt4和qtopia编程开发指南》做第一个加法计算器的程序。编译buildhost.sh时出现下面的错误提示,不知道有没有人遇到过,帮忙指点一二?我用的是redhat5的系统。另外qt的安装路径我没有完全按照用户手册配置,下面写的都是对的,只是在/opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/下面找不到mkspecs。[root@localhost mycalc]# ./buildhost.sh Could not find mkspecs for your QMAKESPEC after trying: /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/mkspecs /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2 /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopiaError processing project file: /opt/apps/qtopia2_apps/mycalc/mycalc.promake: Makefile.host: No such file or directorymake: *** No rule to make target `Makefile.host'. Stop.make: Makefile.host: No such file or directorymake: *** No rule to make target `Makefile.host'. Stop.
buildhost.sh的内容如下,不过错误应该不是出在这里,有人说要重装creater,试过无效。#!/bin/sh source /opt/Qt/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/setQpeEnv qmake -o Makefile.host -spec qws/linux-generic-g++ *.pro make -f Makefile.host clean make -f Makefile.host