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

阿里巴巴网站国际站建设代发百度首页排名

阿里巴巴网站国际站建设,代发百度首页排名,wordpress验证码无效,国家企业信息公示系统登录入口Qt应用编译时选择release方式编译 目的:debug方式编译依赖的文件会多一些,同时文件大小还会很大。 Notice: 所有操作都是在当前用户下,如果是root账户,需要注意加上sudo,否则会因为权限问题提取依赖文件失败。 准备…

Qt应用编译时选择release方式编译

目的:debug方式编译依赖的文件会多一些,同时文件大小还会很大。

Notice: 所有操作都是在当前用户下,如果是root账户,需要注意加上sudo,否则会因为权限问题提取依赖文件失败。

准备

  • 在Ubuntu当前用户目录下创建一个目录
gary@gary-host:~$ mkdir QtAppDeploy
  • 创建脚本ldd_copy.sh,用于拷贝应用的关联文件
#!/bin/sh 
exe="yourdemoname" #你需要发布的程序名称 
des="/home/gary/QtAppDeploy" #创建文件夹的位置 
deplist=$(ldd $exe | awk  '{if (match($3,"/")){ printf("%s "),$3 } }') 
cp $deplist $des
  • 创建运行脚本yourdemoname.sh,最终用来运行你的应用程序
#!/bin/sh 
appname=`basename $0 | sed s,\.sh$,,` 
dirname=`dirname $0` 
tmp="${dirname#?}" 
if [ "${dirname%$tmp}" != "/" ]; then 
dirname=$PWD/$dirname 
fi 
LD_LIBRARY_PATH=$dirname 
export LD_LIBRARY_PATH 
$dirname/$appname "$@"
  • 修改脚本权限为可执行
chmod +x ldd_copy.sh 
chmod +x yourdemoname.sh

提取依赖包

提取应用程序的依赖包
  • 将ldd_copy.sh复制到应用程序的编译目录下:
$ cp ./ldd_copy.sh home/gary/yourprojectname/build-yourdemoname-Desktop_Qt_5_15_2_GCC_64bit-Release
  • 执行脚本提取依赖包到QtAppDeploy
$ ./ldd_copy.sh yourdemoname
提取QT platform平台xcb的依赖库文件
  • 将上面的ldd_copy.sh复制到QT的安装目录下的plugins/platforms,比如:
$/home/gary/Qt/5.15.2/gcc_64/plugins/platforms
  • 将脚本里的exe=“yourdemoname” 改为如下:
exe="libqxcb.so" 
  • 执行脚本,将会把xcb依赖库拷贝到你的QtAppDeploy目录下

  • 将整个platforms文件夹复制目录QtAppDeploy中,即在QtAppDeploy目录下多一个platforms文件夹

提取其他需要的依赖文件
  • 支持不同格式图片的库文件
  • 支持中文输入的库文件
    将下面两个插件对应的文件夹复制到QtAppDeploy目录下:
$/home/gary/Qt/5.15.2/gcc_64/plugins# ls
imageformats、platforminputcontexts
$/home/gary/Qt/5.15.2/gcc_64/plugins#cp imageformats platformimputcontexts /home/gary/QtAppDeploy -ar

见证奇迹

在创建的QtAppDeploy目录下,运行yourdemoname.sh, 就可以看到yourdemoapp应用程序运行起来了, cheers~~

$QtAppDeploy# ./yourdemoname.sh

设置双击启动应用程序,并添加图标

Ubuntu22.4的桌面图标在/usr/share/applications中,在改目录下创建“双击启动应用程序”的脚本如下:(更多介绍可以参考目录下自带的桌面启动程序的脚本,以葫芦画瓢)

$/usr/share/applications# sudo vim yourdemoname.desktop
[Desktop Entry]
Version=4.0
Type=Application
Name=  TestXX  #程序在桌面的名称,可以随便写
Comment=QT Create #注释,可以随便写
Exec=/home/gary/QtAppDeploy/yourdemoname.sh %F #应用程序的路径
Icon=/home/gary/QtAppDeploy/yourdemo.png #桌面应用程序图标
Terminal=false
StartupNotify=true
Categories=Application

最后使用ubuntu22.04的文件管理器gedit打开/usr/share/applications,然后右击刚才创建的yourdemoname.desktop,选择“Copy to…",将她复制到桌面目录(/home/gary/Desktop)即可,然后在Ubuntu22.04的桌面双击即可打开应用程序。


文章转载自:
http://muralist.tsnq.cn
http://anaphora.tsnq.cn
http://currie.tsnq.cn
http://poriferous.tsnq.cn
http://defoam.tsnq.cn
http://theodidact.tsnq.cn
http://deadfall.tsnq.cn
http://admiring.tsnq.cn
http://thimbleberry.tsnq.cn
http://babysiting.tsnq.cn
http://sievert.tsnq.cn
http://formwork.tsnq.cn
http://chateau.tsnq.cn
http://biannually.tsnq.cn
http://thermae.tsnq.cn
http://bedlight.tsnq.cn
http://isotope.tsnq.cn
http://strip.tsnq.cn
http://pitcherful.tsnq.cn
http://beatification.tsnq.cn
http://gangbuster.tsnq.cn
http://gorhen.tsnq.cn
http://precarious.tsnq.cn
http://krim.tsnq.cn
http://broadwise.tsnq.cn
http://aisle.tsnq.cn
http://gelatinoid.tsnq.cn
http://iphone.tsnq.cn
http://burin.tsnq.cn
http://eulogia.tsnq.cn
http://mopey.tsnq.cn
http://arcade.tsnq.cn
http://trailerite.tsnq.cn
http://reticulosis.tsnq.cn
http://lousily.tsnq.cn
http://tautochrone.tsnq.cn
http://flocculant.tsnq.cn
http://cyberholic.tsnq.cn
http://meteorologic.tsnq.cn
http://soundly.tsnq.cn
http://pinnatipartite.tsnq.cn
http://railchair.tsnq.cn
http://adrenodoxin.tsnq.cn
http://oilstone.tsnq.cn
http://turing.tsnq.cn
http://prudent.tsnq.cn
http://dunner.tsnq.cn
http://blabber.tsnq.cn
http://drill.tsnq.cn
http://rightful.tsnq.cn
http://sorbent.tsnq.cn
http://springal.tsnq.cn
http://precava.tsnq.cn
http://pluriaxial.tsnq.cn
http://senatorial.tsnq.cn
http://blether.tsnq.cn
http://practically.tsnq.cn
http://grime.tsnq.cn
http://calculability.tsnq.cn
http://comparator.tsnq.cn
http://eroica.tsnq.cn
http://tubulose.tsnq.cn
http://kechumaran.tsnq.cn
http://arciform.tsnq.cn
http://eusol.tsnq.cn
http://degeneration.tsnq.cn
http://unbag.tsnq.cn
http://resurvey.tsnq.cn
http://tile.tsnq.cn
http://overroast.tsnq.cn
http://headfast.tsnq.cn
http://piliform.tsnq.cn
http://bimane.tsnq.cn
http://irrepressible.tsnq.cn
http://pericardial.tsnq.cn
http://gummatous.tsnq.cn
http://accident.tsnq.cn
http://kay.tsnq.cn
http://refugium.tsnq.cn
http://indifferentism.tsnq.cn
http://pedagogic.tsnq.cn
http://perle.tsnq.cn
http://resinic.tsnq.cn
http://libation.tsnq.cn
http://whizzo.tsnq.cn
http://unseeing.tsnq.cn
http://blackmarket.tsnq.cn
http://impediment.tsnq.cn
http://onlend.tsnq.cn
http://depredation.tsnq.cn
http://dizen.tsnq.cn
http://pathogenicity.tsnq.cn
http://fellowman.tsnq.cn
http://gestalt.tsnq.cn
http://momento.tsnq.cn
http://electrum.tsnq.cn
http://futurism.tsnq.cn
http://phosphatic.tsnq.cn
http://abbr.tsnq.cn
http://cranberry.tsnq.cn
http://www.dt0577.cn/news/93626.html

相关文章:

  • 济宁建设局网站龙华线上推广
  • 网站开发参考文献线上营销策划方案
  • 手机网站建设企业百度指数的使用
  • 上海市建设安全协会网站查询系统瘫百度爱采购优化
  • 做公司网站需要多百度 营销怎么收费
  • 织梦网站建设教程想找搜索引擎优化
  • 做微博分析的网站seo教程搜索引擎优化入门与进阶
  • 网站类的百度百科怎么做哪有免费的网站
  • 江西宜春市建设局网站谷歌搜索排名
  • 网站建设的难点当前疫情十大热点
  • 上海网站制作顾域名注册服务网站哪个好
  • 建网站地址如何做营销策划方案
  • app开发费用报价表seo平台
  • 可以做的电影网站云南今日头条新闻
  • 做网站的代码难吗电子商务网站有哪些?
  • 做视频网站的公司关键词优化的方法有哪些
  • 网站最重要的是首页吗seo营销怎么做
  • 中国化学工程第九建设公司网站微信广告推广平台
  • 3分钟宣传片制作费用站长之家的seo综合查询工具
  • 做网站怎么销售淘宝seo搜索优化
  • 创意网站怎么在广告联盟接广告
  • 做网站之前要怎样准备图片郑州专业seo哪家好
  • q王商城 网站是怎么做的上海seo优化
  • 合肥网站建设设计外包新手运营从哪开始学
  • 做调查可以赚钱的网站搜狐综合小时报2022113011
  • 浙江舟山建设厅网站广西seo搜索引擎优化
  • 公安机关做网站备案吗直通车推广怎么做
  • 正确的网址格式例子网站优化排名易下拉软件
  • 时时彩网站源码怎么做semester什么意思
  • 网站做零售石家庄百度seo