今天就跟大家聊聊有关手动部署QtSylixOS的方法是什么,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
这里介绍了QtSylixOS相关库文件和应用程序手动部署的方法。
实际开发过程中,有些板卡无网络功能,此时需要手动对QtSylixOS的库文件和应用程序进行部署。
小编介绍的是通过U盘或SD卡将QtSylixOS部署到以Nand Flash为根文件系统的设备中。
QtSylixOS部署的文件都位于Qt安装路径的"Qt\qtcreator-3.4.0\SylixOS\sdk"中,如图 2.1所示。
图 2.1 QtSylixOS安装目录下的sdk文件夹
以armv7架构的处理器为例,其使用的sdk版本为armv7-sylixos-qt-4.8.7。如图 2.2所示,在"Qt\qtcreator-3.4.0\SylixOS\sdk\fs"目录下有需要部署的文件。
图 2.2需要部署的fs目录
fs目录对应目标板卡上的"/"目录,所以fs目录下的apps,etc,qt分别与目标板卡上的"/apps","/etc","/qt"目录对应。
3. 部署步骤
首先将U盘或SD卡接入PC,拷贝fs目录至U盘或SD中。
应用程序运行时会依赖Base工程中如表 3.1所示的文件。
表 3.1 Base工程需要拷贝的库文件
名称 | 路径 |
libcextern.so | Base/libcextern/Release/strip/libcextern.so |
env | Base/libsylixos/Release/strip/env |
libvpmpdm.so | Base/libsylixos/Release/strip/libvpmpdm.so |
xinput.ko | Base/libsylixos/Release/strip/xinput.ko |
xsiipc.ko | Base/libsylixos/Release/strip/xsiipc.ko |
在fs同目录下建立base文件夹,将以上文件拷贝至base文件夹中。
以上两步结束后,U盘或SD卡目录下应该有如图 3.1所示的两个文件夹。
图 3.1拷贝结束后的目录
在fs目录同一层级中,创建copy.sh脚本文件,并在copy.sh中键入如程序清单 4.1所示的内容。
将U盘或SD卡接入目标板卡,SylixOS会自动做挂载。
进入挂载后的U盘或SD卡目录,一般为/media/sdcardX(X为0…n)或/media/udiskX(X为0…n),使用shfile copy.sh命令执行拷贝脚本。
程序清单 4.1拷贝脚本
mkdir /apps mkdir /apps/mousecalibration cp –rf fs/apps/mousecalibration/mousecalibration /apps/mousecalibration/. mkdir /etc cp –rf fs/etc/fs_init.sh /etc/fs_init.sh cp –rf fs/etc/fs_no_symlink_init.sh /etc/fs_no_symlink_init.sh cp –rf fs/etc/pointercal /etc/pointercal cp –rf fs/etc/qtcp_4.8.7.sh /etc/qtcp_4.8.7.sh cp –rf fs/etc/qtenv.sh /etc/qtenv.sh cp –rf fs/etc/qtln_4.8.7.sh /etc/qtln_4.8.7.sh cp –rf fs/etc/startup.sh /etc/startup.sh mkdir /qt mkdir /qt/lib mkdir /qt/lib/fonts cp –rf fs/qt/lib/fonts/DejaVuSans.ttf /qt/lib/fonts/DejaVuSans.ttf cp –rf fs/qt/lib/libQt3Support.so.4.8.7 /qt/lib/libQt3Support.so.4.8.7 cp –rf fs/qt/lib/libQtCLucene.so.4.8.7 /qt/lib/libQtCLucene.so.4.8.7 cp –rf fs/qt/lib/libQtCore.so.4.8.7 /qt/lib/libQtCore.so.4.8.7 cp –rf fs/qt/lib/libQtDeclarative.so.4.8.7 /qt/lib/libQtDeclarative.so.4.8.7 cp –rf fs/qt/lib/libQtDesigner.so.4.8.7 /qt/lib/libQtDesigner.so.4.8.7 cp –rf fs/qt/lib/libQtDesignerComponents.so.4.8.7 /qt/lib/. cp –rf fs/qt/lib/libQtGui.so.4.8.7 /qt/lib/libQtGui.so.4.8.7 cp –rf fs/qt/lib/libQtHelp.so.4.8.7 /qt/lib/libQtHelp.so.4.8.7 cp –rf fs/qt/lib/libQtMultimedia.so.4.8.7 /qt/lib/libQtMultimedia.so.4.8.7 cp –rf fs/qt/lib/libQtNetwork.so.4.8.7 /qt/lib/libQtNetwork.so.4.8.7 cp –rf fs/qt/lib/libQtScript.so.4.8.7 /qt/lib/libQtScript.so.4.8.7 cp –rf fs/qt/lib/libQtScriptTools.so.4.8.7 /qt/lib/libQtScriptTools.so.4.8.7 cp –rf fs/qt/lib/libQtSerialPort.so.1.0.0 /qt/lib/libQtSerialPort.so.1.0.0 cp –rf fs/qt/lib/libQtSql.so.4.8.7 /qt/lib/libQtSql.so.4.8.7 cp –rf fs/qt/lib/libQtSvg.so.4.8.7 /qt/lib/libQtSvg.so.4.8.7 cp –rf fs/qt/lib/libQtTest.so.4.8.7 /qt/lib/libQtTest.so.4.8.7 cp –rf fs/qt/lib/libQtWebKit.so.4.9.4 /qt/lib/libQtWebKit.so.4.9.4 cp –rf fs/qt/lib/libQtXml.so.4.8.7 /qt/lib/libQtXml.so.4.8.7 cp –rf fs/qt/lib/libQtXmlPatterns.so.4.8.7 /qt/lib/libQtXmlPatterns.so.4.8.7 cp –rf fs/qt/lib/libqwt.so.6.1.2 /qt/lib/libqwt.so.6.1.2 cp –rf base/libvpmpdm.so /lib/libvpmpdm.so mkdir /lib/modules/ mkdir /usr/bin cp –rf base/xinput.ko /lib/modules/xinput.ko cp –rf base/xsiipc.ko /lib/modules/xsiipc.ko cp –rf base/env /usr/bin/env cp –rf base/libcextern.so /lib/libcextern.so mkdir /qt/plugins/ mkdir /qt/plugins/accessible cp –rf fs/qt/plugins/accessible/libqtaccessiblecompatwidgets.so /qt/plugins/accessible/. cp –rf fs/qt/plugins/accessible/libqtaccessiblewidgets.so /qt/plugins/accessible/. mkdir /qt/plugins/bearer cp –rf fs/qt/plugins/accessible/libqgenericbearer.so /qt/plugins/bearer/. mkdir /qt/plugins/designer cp –rf fs/qt/plugins/accessible/libcontainerextension.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libcustomwidgetplugin.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libqdeclarativeview.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libqt3supportwidgets.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libqwebview.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libtaskmenuextension.so /qt/plugins/designer/. cp –rf fs/qt/plugins/accessible/libworldtimeclockplugin.so /qt/plugins/designer/. mkdir /qt/plugins/iconengines cp –rf fs/qt/plugins/iconengines/libqsvgicon.so /qt/plugins/iconengines/. mkdir /qt/plugins/p_w_picpathformats cp –rf fs/qt/plugins/p_w_picpathformats/libqgif.so /qt/plugins/libqgif/. cp –rf fs/qt/plugins/p_w_picpathformats/libqico.so /qt/plugins/libqico/. cp –rf fs/qt/plugins/p_w_picpathformats/libqjpeg.so /qt/plugins/libqjpeg/. cp –rf fs/qt/plugins/p_w_picpathformats/libqmng.so /qt/plugins/libqmng/. cp –rf fs/qt/plugins/p_w_picpathformats/libqsvg.so /qt/plugins/libqsvg/. cp –rf fs/qt/plugins/p_w_picpathformats/libqtga.so /qt/plugins/libqtga/. cp –rf fs/qt/plugins/p_w_picpathformats/libqtiff.so /qt/plugins/libqtiff/. mkdir /qt/plugins/qmltooling cp –rf fs/qt/plugins/qmltooling/libqmldbg_inspector.so /qt/plugins/qmltooling/. cp –rf fs/qt/plugins/qmltooling/libqmldbg_tcp.so /qt/plugins/qmltooling/. mkdir /qt/qml/ mkdir /qt/qml/Qt/ mkdir /qt/qml/Qt/labs/ mkdir /qt/qml/Qt/labs/folderlistmodel cp –rf fs/qt/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so /qt/qml/Qt/labs/folderlistmodel/. cp –rf fs/qt/qml/Qt/labs/folderlistmodel/qmldir /qt/qml/Qt/labs/folderlistmodel/. mkdir /qt/qml/Qt/labs/gestures cp –rf fs/qt/qml/Qt/labs/gestures/libqmlgesturesplugin.so /qt/qml/Qt/labs/gestures/. cp –rf fs/qt/qml/Qt/labs/gestures/qmldir /qt/qml/Qt/labs/gestures/. mkdir /qt/qml/Qt/labs/particles cp –rf fs/qt/qml/Qt/labs/particles/libqmlparticlesplugin.so /qt/qml/Qt/labs/particles/. cp –rf fs/qt/qml/Qt/labs/particles/qmldir /qt/qml/Qt/labs/particles/. mkdir /qt/qml/QtWebKit/ cp –rf fs/qt/qml/QtWebKit/libqmlwebkitplugin.so /qt/qml/QtWebKit/. cp –rf fs/qt/qml/QtWebKit/qmldir /qt/qml/QtWebKit/.
看完上述内容,你们对手动部署QtSylixOS的方法是什么有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注亿速云行业资讯频道,感谢大家的支持。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。