还剩1页未读,继续阅读
文本内容:
物联网12学姓1270802106陈延平专业、班级号名实验地指导教1#318谢荣生实验时间点师
一、实验目的熟悉程序设计的基本步骤
1.qt掌握程序设计的基本方法
2.qt熟悉程序设计的关机技术
3.qt
二、实验设备(环境)及要求硬件机;试验箱PC PXA270软件机操作系统PC linux
三、实验内容与步骤用编写程序
1.Qt Hellohello.cpp在程序目录下生成并编译程序,生成宿主机下的可执仃程序
2.hello.cpp Makefile运行程序,看结果将程序用编译成目标机程序
3.hello.cpp Qt/E
4.将目标机程序mount到目标机,并运行
四、实验结果进行实验序号10实验项目名称程序设计基础qt《嵌入式系统软件设计》实验报告CrootPun-deu cdzup-techpxaZ70[rootum-deu up-techpxa270]tt IsTro11tech[rootun-deu up-techpxa270]#nkdir test[rootun-deu up-techpxa270]#Istest Tro11tech[rootum-deu up-techpxaZ70]#cd/up-techpxa270/test[rootum-deu testlttmkdir testlOIs[rootun-deu test]#[rootPum-deu testlttcd test10[rootum-deu test101#ui nain.cppHelloWorld![rootun-deu testlOlttwhich qnakezusr/bin/qnake[rootum-deu testlO]tt[rootum-deu testlO]#ma in.cpp test
10.pro[rootun-deu testlOltt[rootum-deu testlO]ttmain.cpp Makefiletest
10.pro[rootun-deutestlOJ#make加TIClude-I.-I.-I.-omain.onain.cpp/usrzloca1/Tro11tech/Qt-x11-
4.
4.0/1ib-L/usr/XllR6/lib-Ipng-ISM-1ICE-pthread-pthread-IXi-IXrender-IXrandr-Ifreetyp e-1fontconfig-IXext-1X11-IQtCore-Iz-Im-pthread-lgthread-Z.0-lglib-
2.0-Irt-Idl-1pthread[rootum-deu testlO]tt Ismain.cpp main.o Makefiletesi10test
10.pro[rooteIntel test]#Is[rootum-deu test101#./testlO[rooteIntel testlttcdtest10/test10[roott InteltestlOlttlsMakefile main.cpp main.o test10test
10.pro[rooteIntel test101#./test10QUSSocketconnectToLocaIFile could not connectNosuch file or directorycould not connect::No suchfile ordirectoryQUSSocket:connectToLocaIFilecouldnotconnect:No suchfileordirectoryQUSSocket connectToLocaIFdirectorycouldnotconnect::No suchfile orile[rooteIntel test10]#./test10-qws
五、教师评语成绩签名:附程序:Hello#include QApplication#include QPushButtonint mainintargc,char*argv[]QApplication appargc,argv;QPushButton hellonHelloWorld!;hello.show;QObject::connecthello,SIGNALclicked,app,SLOTquit;return app.exec;。
个人认证
优秀文档
获得点赞 0