当前位置: 首页 > news >正文

怎样建立微网站wordpress 导航网站模板

怎样建立微网站,wordpress 导航网站模板,建网站公司专业,仿简书wordpress博客主题Qt 5.7.0 编写的程序需要部署到一台没有安装Qt的目标机器上#xff0c;程序采用C与QML混合编程#xff0c;QML做界面#xff0c;C写逻辑。 环境说明 开发环境 Ubuntu 16.04.1 LTS 运行环境 CentOS 7.2.1511 下面描述这个手工操作的发布过程。 1、在开发环境中采用Re…Qt 5.7.0 编写的程序需要部署到一台没有安装Qt的目标机器上程序采用C与QML混合编程QML做界面C写逻辑。 环境说明 开发环境    Ubuntu 16.04.1 LTS 运行环境    CentOS 7.2.1511 下面描述这个手工操作的发布过程。 1、在开发环境中采用Release方式编译程序生成执行程序qtest 2、在目标环境中从开发环境拷贝执行程序并尝试执行./qtest 报错error while loading shared libraries: libQt5Quick.so.5: cannot open shared object file: No such file or directory 解决从开发环境中拷贝需要的动态库文件放在与执行程序相同的路径下并设置环境变量LD_LIBRARY_PATH export LD_LIBRARY_PATH.:$LD_LIBRARY_PATH 再次执行./qtest 3、运行时还会提示其他的动态库文件缺失根据提示再次拷贝相应的文件 可以在开发环境中使用ldd命令查看执行程序依赖的Qt动态库文件ldd qtest | grep libQt打包拷贝。 4、再次执行报错 This application failed to start because it could not find or load the Qt platform plugin xcb in . 解决在执行程序所在的当前路径下创建子目录并从开发环境中Qt安装目录下的plugins子目录中拷贝动态库文件 mkdir platforms scp 开发环境:/path_to_Qt/plugins/platforms/libqxcb.so platforms/ 重要!!! 根据ldd libqxcb.so的输出拷贝需要的几个库文件如libQt5DBus.so.5 libQt5XcbQpa.so.5放在与执行程序相同的路径下 5、再次执行报错 qrc:/main.qml:1:1: module QtQuick is not installed qrc:/main.qml:4:1: module QtQuick.Controls is not installed qrc:/main.qml:3:1: module QtQuick.Window is not installed qrc:/main.qml:2:1: module QtQuick.Layouts is not installed ... 解决从开发环境中拷贝Qt安装目录下的qml子目录并设置环境变量 scp -rp 开发环境:/path_to_Qt/qml ./ export QML2_IMPORT_PATH./qml 6、再次执行报错 qrc:/main.qml:4:1: plugin cannot be loaded for module QtQuick.Controls: Cannot load library qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: (libQt5QuickTemplates2.so.5: cannot open shared object file: No such file or directory) qrc:/main.qml:4:1: plugin cannot be loaded for module QtQuick.Controls: Cannot load library qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: (libQt5QuickControls2.so.5: cannot open shared object file: No such file or directory) qrc:/main.qml:3:1: plugin cannot be loaded for module QtQuick.Controls: Cannot load library qml/QtQuick/Controls/libqtquickcontrolsplugin.so: (libQt5Widgets.so.5: cannot open shared object file: No such file or directory) 解决根据提示从开发环境拷贝缺失的动态库文件 7、再次执行报错 qrc:/main.qml:14:5: QML Image: Error decoding: qrc:/png/1/back.jpg: Unsupported image format 解决从开发环境中拷贝图像格式解析插件 mkdir imageformats scp 开发环境:/path_to_Qt/plugins/imageformats/libqjpeg.so imageformats/ 8、再次执行报错 QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled QXcbIntegration: Cannot create platform offscreen surface, neither GLX nor EGL are enabled failed to acquire GL context to resolve capabilities, using defaults.. QXcbConnection: XCB error: 147 (Unknown), sequence: 171, resource id: 0, major code: 140 (Unknown), minor code: 20 QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)  解决从开发环境中拷贝所需的glx/egl插件 mkdir xcbglintegrations scp 开发环境:/path_to_Qt/plugins/xcbglintegrations/libqxcb-egl-integration.so xcbglintegrations scp 开发环境:/path_to_Qt/plugins/xcbglintegrations/libqxcb-glx-integration.so xcbglintegrations 9、搞定 总结 目标环境需要四类文件 1、一组动态库文件放在执行程序所在目录下 2、一组插件放在执行程序所在目录下的子目录中 3、一个qml子目录 4、两个环境变量LD_LIBRARY_PATH QML2_IMPORT_PATH ———————————————— 版权声明本文为CSDN博主「justkk」的原创文章遵循CC 4.0 BY-SA版权协议转载请附上原文出处链接及本声明。 原文链接https://blog.csdn.net/justkk/article/details/52921899
http://www.zqtcl.cn/news/132110/

相关文章:

  • 新网站关键词怎么优化深圳公司网站推广
  • 新加坡购物网站排名英文版wordpress安装
  • 哪个网站做ppt能赚钱企查查企业信息
  • 学校建设网站的意义wordpress 鸟
  • 一个ip做网站网站建设基础课件
  • 包装设计十大网站连云港网站建设开发
  • 川沙网站建设网站推广服务外包有哪些渠道
  • 哪些网站可以做招商广告手机怎么创网站免费
  • 换物网站为什么做不起来网站开发工具的功能包括
  • 引导式网站君和网站建设
  • 西柏坡门户网站建设规划书自己做照片书的网站
  • 做网站横幅的图片多大公司做自己的网站平台台
  • 百度网站建设工资给城市建设提议献策的网站
  • 如何进入网站管理页面维护网站需要多少钱
  • 深圳住房和城乡建设局网站阿里云学生免费服务器
  • 如何做的网站手机可以用吗绵阳优化网站排名
  • 营销网站建设大全wordpress wp_register
  • 公司做年审在哪个网站网络seo专员招聘
  • 宿州网站建设费用网站快速建设入门教程
  • 怎么自己做网站加盟网站建设意义模板
  • 网站开发怎样实现上传视频教程内容导购网站模板
  • 济南做网站建设的公司广告公司资质
  • 域名分类网站微擎 wordpress
  • 公司产品营销策划安徽seo
  • 网站 平均加载时间百度搜索竞价推广
  • 赛车网站开发淄博网站建设及托管
  • 过时的网站湖州公司网站建设
  • 环球设计网站网站建设的面试要求
  • 百度公司网站排名怎么做潮阳网站开发
  • 杨和网站建设国内外建筑设计网站