欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOCX文档下载  

    GT2440 加载可执行文件到开发板步骤.docx

    • 资源ID:1701264       资源大小:216.14KB        全文页数:6页
    • 资源格式: DOCX        下载积分:16金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要16金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    GT2440 加载可执行文件到开发板步骤.docx

    本人只是一个初学者,吃了很多苦头,现在将一些经验分享一下,希望可以帮助到后来者。系统与国嵌视频中的系统一样。该“简单计算器”程序可在我的另一份文档中找到。这只是一个例子,其他程序可以依样画葫芦弄出来。rootlocalhost # cd /home/lgl/calculatorrootlocalhost calculator# lscwidget.cpp cwidget.h main.cpprootlocalhost calculator# qmake -projectrootlocalhost calculator# qmakerootlocalhost calculator# makeg+ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.3/include -o cwidget.o cwidget.cppcwidget.cpp:31: warning: unused parameter parentcwidget.cpp:31: warning: unused parameter namecwidget.cpp: In member function void CWidget:setValue():cwidget.cpp:68: warning: comparison between signed and unsigned integer expressionsg+ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.3/include -o main.o main.cppmain.cpp:15:2: warning: no newline at end of file/usr/lib/qt-3.3/bin/moc cwidget.h -o moc_cwidget.cppg+ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.3/include -o moc_cwidget.o moc_cwidget.cppg+ -o calculator cwidget.o main.o moc_cwidget.o -L/usr/lib/qt-3.3/lib -lqt-mt -lXext -lX11 -lmrootlocalhost calculator# lscalculator cwidget.cpp cwidget.o main.o moc_cwidget.cppcalculator.pro cwidget.h main.cpp Makefile moc_cwidget.o/上面生成的可执行文件“calculator”的名字是跟文件夹的名字相同的rootlocalhost calculator# ./calculator/生成的简单计算器如图左上角所示。生成的计算器可在Linux虚拟系统中运行,但不可加载到GT2440开发板上面,只是一个虚拟程序。若想生成可加载到开发板的程序,则需用另一种编译方法。在GT2440开发板的资料中有hello这个可测试文件,我们就用它来修改就行了,将hello文件夹中的build和hello.pro文件复制到calculator文件夹中,之后rootlocalhost lgl# cd calculatorrootlocalhost calculator# lsbuild cwidget.cpp cwidget.h hello.desktop hello.pro main.cpp/如果build的颜色为黑色,则须执行rootlocalhost calculator#chmod +x build/将build变为可执行文件,然后rootlocalhost calculator# vi hello.pro/打开hello.pro之后可看到如图界面,将其修改为:DESTDIR=$(pwd)表示在当前目录下生成可执行文件,TARGET = calculator表示生成的文件名字为“calculator”,保存后rootlocalhost calculator# lsbuild cwidget.cpp cwidget.h hello.desktop hello.pro main.cpprootlocalhost calculator# ./buildrm -f .obj/release-shared/moc_cwidget.orm -f .moc/release-shared/moc_cwidget.cpprm -f .obj/release-shared/cwidget.o .obj/release-shared/main.orm -f * core *.corearm-linux-g+ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG="qconfig-qpe.h" -DQTOPIA_TARGET="calculator" -DQTOPIA_TRTARGET="calculator" -DQT_NO_DEBUG -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/mkspecs/qws/linux-arm-g+ -I. -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/include -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/cwidget.o cwidget.cppcwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:29: warning: deprecated conversion from string constant to 'char*'cwidget.cpp:31: warning: unused parameter 'parent'cwidget.cpp:31: warning: unused parameter 'name'cwidget.cpp: In member function 'void CWidget:setValue()':cwidget.cpp:68: warning: comparison between signed and unsigned integer expressionsarm-linux-g+ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG="qconfig-qpe.h" -DQTOPIA_TARGET="calculator" -DQTOPIA_TRTARGET="calculator" -DQT_NO_DEBUG -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/mkspecs/qws/linux-arm-g+ -I. -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/include -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qt2/bin/moc cwidget.h -o .moc/release-shared/moc_cwidget.cpparm-linux-g+ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG="qconfig-qpe.h" -DQTOPIA_TARGET="calculator" -DQTOPIA_TRTARGET="calculator" -DQT_NO_DEBUG -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/mkspecs/qws/linux-arm-g+ -I. -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/include -I/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/moc_cwidget.o .moc/release-shared/moc_cwidget.cpparm-linux-g+ -o calculator .obj/release-shared/cwidget.o .obj/release-shared/main.o .obj/release-shared/moc_cwidget.o -luuid -lqtopia2 -lqtopia -lqpe -L/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qtopia/lib -L/opt/GTStudio/GT2440/arm-qtopia/qtopia-2.2.0/qt2/lib -lqte rootlocalhost calculator# lsbuild cwidget.cpp hello.desktop main.cppcalculator cwidget.h hello.pro Makefilerootlocalhost calculator# vi hello.desktop/需对hello.pro文件做修改,如下:/名字需与前面生成的可执行文件相同“calculator”,保存后退出。rootlocalhost calculator# lsbuild cwidget.cpp hello.desktop main.cppcalculator cwidget.h hello.pro Makefile/接下来将“hello.desktop”改为“calculator.desktop”rootlocalhost calculator# mv hello.desktop calculator.desktoprootlocalhost calculator# lsbuild calculator.desktop cwidget.h main.cppcalculator cwidget.cpp hello.pro Makefile/最后将“calculator”可执行文件和“calculator.desktop”桌面文件利用超级终端加载到开发板上即可(加载过程可参照用户手册)。

    注意事项

    本文(GT2440 加载可执行文件到开发板步骤.docx)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开