你好,我按你前面的方法原原本本的弄下来~,但有错误~~
不知道是怎么回事,帮帮忙啊~~
build main.cpp Makefile run test.cpp testform.ui test.h test.pro
[root@localhost test]# vi test.pro
[root@localhost test]# vi run
[root@localhost test]# vi run
[root@localhost test]# ./build
rm -f .obj/release-shared/moc_testform.o
rm -f .moc/release-shared/moc_testform.cpp
rm -f .ui/release-shared/testform.cpp .ui/release-shared/testform.h
rm -f .obj/release-shared/test.o .obj/release-shared/main.o .obj/release-shared/testform.o
rm -f *~ core *.core
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic testform.ui -o .ui/release-shared/testform.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-generic-g++ -I. -I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include -I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I. -I.moc/release-shared/ -o .obj/release-shared/test.o test.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-generic-g++ -I. -I. -I../qtopia-2.2.0-FriendlyARM/qtopia/include -I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I. -I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
main.cpp: In function ‘QWidget* create_TestForm(QWidget*, const char*, uint)’:
main.cpp:4: 错误:expected type-specifier before ‘TestForm’
main.cpp:4: 错误:不能将‘int*’转换为‘QWidget*’,在 return 中
main.cpp:4: 错误:expected ‘;’ before ‘TestForm’
main.cpp:4: 错误:‘TestForm’在此作用域中尚未声明
make: *** [.obj/release-shared/main.o] 错误 1