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

怎么进网站后台管理系统c2c网站是什么

怎么进网站后台管理系统,c2c网站是什么,263邮箱,html网站分页怎么做的概述 初次在Mac上使用qt的macdeployqt来打包生成的可执行程序#xff0c;这里记录下。由于我的程序是调用之前生成的qt动态库#xff0c;而动态库又依赖于第三方库#xff0c;相对于没有库文件依赖的程序#xff0c;这里有一些需要注意的点#xff0c;下面是打包的步骤。…概述 初次在Mac上使用qt的macdeployqt来打包生成的可执行程序这里记录下。由于我的程序是调用之前生成的qt动态库而动态库又依赖于第三方库相对于没有库文件依赖的程序这里有一些需要注意的点下面是打包的步骤。 打包步骤 使用macdeployqt打包qt程序 1.项目设置为release模式编译并运行生成release下的可执行程序 2.将1中生成的可执行程序存入一个空的文件夹下 3.在终端zsh中进入到qt安装目录下找到macdeployqt并cd到macdeployqt所在的目录下 我的macdeployqt所在的目录是/Users/admin/Qt/6.2.2/macos/bin/macdeployqt 4.执行指令./macdeployqt xxx.app; 这里所在的目录是macdeployqt所在目录所以需要可执行程序的绝对路径即完整路径,此处输入指令 ./macdeployqt /Users/admin/Documents/qt-program/dll-testDll/testDll.app 可执行程序中要是使用了qml模块则相应的打包指令变为macdeployqt xxx.app -qmldirxxx/xxx/xxx/xxx/, 其中xxx.app使用的绝对路径-qmldir的赋值是qml文件所在的路径这里指出qml文件所在的文件夹路径即可, 如我的程序里使用了qml则输入的指令为./macdeployqt /Users/admin/Documents/qt-program/dll-testDll/testDll.app -qmldir/Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/controls/我的电脑是m1芯片在使用macdeployqt打包程序的时候会出现下面的输出 ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtGui.framework/Versions/A/QtGui (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtQuickWidgets.framework/Versions/A/QtQuickWidgets (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtQuick.framework/Versions/A/QtQuick (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtOpenGL.framework/Versions/A/QtOpenGL (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtWidgets.framework/Versions/A/QtWidgets (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtGui.framework/Versions/A/QtGui (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtQmlModels.framework/Versions/A/QtQmlModels (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtQml.framework/Versions/A/QtQml (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/PlugIns/platforms/libqcocoa.dylib (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtGui.framework/Versions/A/QtGui (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtGui.framework/Versions/A/QtGui (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Qt/6.2.2/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64): ERROR: Could not parse otool output line: /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/PlugIns/styles/libqmacstyle.dylib (architecture arm64): 以上只是拷贝了其输出的一部分第一次看到这个的时候一直在纠结如何解决这个问题后面发现即使看上去这个输出是有错误的但是可执行程序依旧可以实现打包此时可以双击打开对于只是简单的可执行程序没有依赖第三方库的程序此时可以尝试双击打开可执行程序也就是说这个显示有错误的输出不影响最终生成的可执行程序。 备注若生成的可执行程序没有调用第三方库则按照上面123步骤便可以打包完成双击运行若是生成的可执行程序调用了动态库则在123的基础上还需要再将库文件做相应的配置 5.查看生成的可执行程序需要依赖的动态库。 终端zsh下使用指令otool -L xxx.app;这里使用可执行程序的完整的路径 如我生成的可执行程序所在的路径为/Users/admin/Documents/qt-program/dll-testDll/testDll.app右键在testDll.app上出现右键菜单选择查看文件内容会出现文件夹Contents,进入后可以看到MacOS文件夹在MacOS文件夹下是可执行程序testDll 。查看testDll 所依赖的动态库指令为 otool -L /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/testDll 可以看到 otool -L /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/testDll /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/testDll:libtestAgoraVideoDll.1.dylib (compatibility version 1.0.0, current version 1.0.0)rpath/QtWidgets.framework/Versions/A/QtWidgets (compatibility version 6.0.0, current version 6.2.2)rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.2.2)/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2113.20.111)/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (compatibility version 1.0.0, current version 1.0.0)/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 258.17.0)rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.2.2)/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)/usr/lib/libc.1.dylib (compatibility version 1.0.0, current version 1200.3.0)/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)以上是testDll所依赖的库文件其中有些文件指明了路径像/System/开头/usr/开头的一般是系统路径会自动在这些路径下查找相应的库文件无需考虑rpath为运行路径因为我的可执行程序下的testDll.app在右键打开进入Contents文件夹下后可以看到如下 其中Frameworks文件夹和Plugins文件夹是打包后生成的。Frameworks文件夹下存放的是可执行程序依赖于qt的一些库Plugins指明了一些插件。由于之前通过otool -L查看了可执行程序testDll的依赖库接下来将可执行程序调用的库文件libtestAgoraVideoDll.1.dylib进行一些配置和放置。 6.修改libtestAgoraVideoDll.1.dylib的查找路径使可执行程序在可执行程序所在的同级目录下查找ibtestAgoraVideoDll.1.dylib。 使用指令 install_name_tool -change “libtestAgoraVideoDll.1.dylib” “executable_path/libtestAgoraVideoDll.1.dylib” /Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/testDll 7.拷贝ibtestAgoraVideoDll.1.dylib库文件到可执行程序testDll所在的目录下 8.由于程序调用了生成的库ibtestAgoraVideoDll.1.dylib而ibtestAgoraVideoDll.1.dylib又依赖于第三方库所以放置好ibtestAgoraVideoDll.1.dylib后还需要设置ibtestAgoraVideoDll.1.dylib依赖的第三方库的路径。 这里将ibtestAgoraVideoDll.1.dylib所依赖的第三方库文件拷贝到文件夹/Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/Frameworks下 9.程序调用生成的qt动态库该动态库使用了qml文件来实现界面。 所以还需将qml文件做一些放置和配置 该实现指令同上述的第4条提到的./macdeployqt /Users/admin/Documents/qt-program/dll-testDll/testDll.app -qmldir/Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/controls/最好在第4条执行该语句执行该语句前将生成动态库所需要的qml文件拷贝到路径/Users/admin/Documents/qt-program/dll-testDll/testDll.app/Contents/MacOS/controls/文件夹下。如果没有将用到的qml文件做配置和放置会出现运行程序后只有一个白色的窗口。 9.以上打包一个调用依赖于第三方库生成的qt动态库的程序生成了。但是双击可执行程序不一定能正常运行取决于有没有使用一些mac认为的比较敏感的数据比如照相机麦克风通讯录之类需要根据程序运行时出现的奔溃报告在info.plist文件中添加相应的key和value。我的程序添加的是照相机和麦克风。之后便能正常运行了。 info.plist中新加的内容如下 以上是关于mac下使用qt打包程序的一点记录。
http://www.huolong8.cn/news/280677/

相关文章:

  • 网站建设实训报告建议wordpress ajax error
  • 夸克作文网站网站服务器地址怎么查询
  • 自己给公司做网站难不难黄山旅游网页设计作业
  • 制作自助网站萧山网站建设xssem
  • 包装设计网站官网网站添加地图
  • 动易网站后台公司网站备案网站名称有什么用
  • 用插件做网站wordpress更改自定义文章页面
  • 点击进入官方网站医院网站建设趋势
  • 西宁网站建设百度怎么发自己的小广告
  • 搜索引擎优化的方式seo点击排名软件哪里好
  • 上外贸网站建设wordpress网页不存在
  • 什么是网站栏目标题wordpress分页导航不显示不出来
  • 网站建设计入到什么科目大连做网站的科技公司
  • 智慧农业项目方案seo优化排名易下拉用法
  • 浙江省建设厅举报网站163 com邮箱注册
  • 东莞网络公司网站建设烟台做网站需要多少钱
  • 怎么用linux做网站服务器吗大兴安岭地网站seo
  • 网站的花费p2p免费网站建设
  • 适合seo优化的网站制作渭南软件开发
  • 网站描述范例erp网站建设方案
  • 做外贸网站平台有哪些内容百度推广要企业自己做网站吗
  • 诸暨网站制作哪些公司制作如何在阿里云云服务器上搭建网站
  • 商务网站规划设计要点广告代理商
  • 网站域名如何管理个人网页设计欣赏作品
  • 深圳最好用的网站设计急招上午半天班女工
  • 青岛新公司网站建设推广山东泰安是几线城市
  • 网站页头尺寸上海做网站备案要多久
  • 富阳设计网站wordpress插件打不开
  • 玉林城乡住房建设厅网站摄影网站设计报告
  • 怎么更改网站关键词管理公司网站一般做什么