{"id":12608,"date":"2024-03-26T14:54:48","date_gmt":"2024-03-26T06:54:48","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608"},"modified":"2024-03-26T15:33:16","modified_gmt":"2024-03-26T07:33:16","slug":"qt-linux-%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e6%89%93%e5%8c%85","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608","title":{"rendered":"Qt Linux \u73af\u5883\u4e2d\u5e94\u7528\u7a0b\u5e8f\u6253\u5305"},"content":{"rendered":"<p><a href=\"https:\/\/blog.csdn.net\/JOBbaba\/article\/details\/124289626\">https:\/\/blog.csdn.net\/JOBbaba\/article\/details\/124289626<\/a><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#%E6%89%93%E5%8C%85%E5%9F%BA%E6%9C%AC%E6%B5%81%E7%A8%8Bexe%E4%B8%BA%E4%BE%8B\" title=\"\u6253\u5305\u57fa\u672c\u6d41\u7a0b(exe\u4e3a\u4f8b)\">\u6253\u5305\u57fa\u672c\u6d41\u7a0b(exe\u4e3a\u4f8b)<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#%E5%85%B7%E4%BD%93%E6%AD%A5%E9%AA%A4\" title=\"\u5177\u4f53\u6b65\u9aa4\">\u5177\u4f53\u6b65\u9aa4<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#1%E6%89%BE%E4%BE%9D%E8%B5%96%E5%BA%93\" title=\"1.\u627e\u4f9d\u8d56\u5e93\">1.\u627e\u4f9d\u8d56\u5e93<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#1-1\" title=\"1-1)\">1-1)<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#1-2\" title=\"1-2)\">1-2)<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#1-3\" title=\"1-3)\">1-3)<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#2%E5%88%B6%E4%BD%9C%E5%8F%AF%E6%89%A7%E8%A1%8C%E7%A8%8B%E5%BA%8F%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC\" title=\"2.\u5236\u4f5c\u53ef\u6267\u884c\u7a0b\u5e8f\u8fd0\u884c\u811a\u672c\">2.\u5236\u4f5c\u53ef\u6267\u884c\u7a0b\u5e8f\u8fd0\u884c\u811a\u672c<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=12608\/#3%E8%BF%90%E8%A1%8C%E7%A8%8B%E5%BA%8F\" title=\"3.\u8fd0\u884c\u7a0b\u5e8f\">3.\u8fd0\u884c\u7a0b\u5e8f<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E6%89%93%E5%8C%85%E5%9F%BA%E6%9C%AC%E6%B5%81%E7%A8%8Bexe%E4%B8%BA%E4%BE%8B\"><\/span>\u6253\u5305\u57fa\u672c\u6d41\u7a0b(exe\u4e3a\u4f8b)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u751f\u6210 release \u7248\u672c\u7684\u53ef\u6267\u884c\u6587\u4ef6 .exe\uff1b<br \/>\n\u627e\u5230\u6240\u6709\u7684\u52a8\u6001\u94fe\u63a5\u5e93 dll\uff1b<br \/>\n\u5c06\u6240\u6709\u7684 dll \u4ee5\u53ca\u4f9d\u8d56\u7684\u5404\u79cd\u6587\u4ef6\u548c\u53ef\u6267\u884c\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u751f\u6210\u6700\u7ec8\u7684\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6<br \/>\n\u8fd9\u6837\u5373\u53ef\u5728\u4e3a\u672a\u5b89\u88c5Qt\u7684\u673a\u5668\u4e0a\u4f7f\u7528\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%85%B7%E4%BD%93%E6%AD%A5%E9%AA%A4\"><\/span>\u5177\u4f53\u6b65\u9aa4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u627e\u5230\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u8f93\u51fa\u76ee\u5f55\uff0c\u627e\u5230\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5047\u5982\u6587\u4ef6\u540d\u4e3a\uff1aqmlvideo\u3002<br \/>\n\u65b0\u5efa\u4e00\u4e2a\u7a7a\u6587\u4ef6\u5939\uff0c\u7528\u6765\u653e\u6253\u5305\u540e\u7684\u7a0b\u5e8f\u6587\u4ef6\u3002\u5047\u5982\u65b0\u6587\u4ef6\u5939\u4e3aNewPro\uff0c\u5c06\u53ef\u6267\u884c\u6587\u4ef6qmlvideo\u590d\u5236\u5230NewPro\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1%E6%89%BE%E4%BE%9D%E8%B5%96%E5%BA%93\"><\/span>1.\u627e\u4f9d\u8d56\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"1-1\"><\/span>1-1)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u8f93\u5165<code>ldd qmlvideo<\/code>\uff0c\u67e5\u627e\u4f9d\u8d56\u5e93\u3002<br \/>\nRelease\u6587\u4ef6\u5939\u4e2d\u65b0\u5efacopylib.sh\uff0c\u8bbe\u7f6e\u6743\u9650chmod 777 copylib.sh\uff0c\u8fd0\u884c.\/copylib.sh qmlvideo, \u5728Release\u4e2d\u751f\u6210\u4e86lib\u6587\u4ef6\u5939\u3002<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\n\nLibDir=$PWD&quot;\/lib&quot;\nTarget=$1\n\nlib_array=($(ldd $Target | grep -o &quot;\/.*&quot; | grep -o &quot;\/.*\/[^[:space:]]*&quot;))\n\n$(mkdir $LibDir)\n\nfor Variable in ${lib_array[@]}\ndo\n    cp &quot;$Variable&quot; $LibDir\ndone\n#$<\/code><\/pre>\n<p><strong>\u5c06lib\u4e2d\u6240\u6709\u6587\u4ef6\u590d\u5236\u5230\u65b0\u6587\u4ef6\u5939NewPro\u4e2d<\/strong>\uff0c\u6b64\u65f6\uff0cNewPro\u6587\u4ef6\u5939\u7684\u5185\u5bb9\u4e3a\u53ef\u6267\u884c\u6587\u4ef6qmlvideo \u548clib\u4e2d\u7684\u6240\u6709\u52a8\u6001\u5e93\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"1-2\"><\/span>1-2)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u8865\u5145\u52a8\u6001\u5e93\uff0c\u56e0\u4e3a\u540e\u7eed\u53ef\u80fd\u4f1a\u53d1\u751f\u201cxcb&quot;\u9519\u8bef\uff1b\u8fdb\u5165Qt\u5b89\u88c5\u76ee\u5f55\u6587\u4ef6\u5939\uff0c\u4f9d\u6b21\u8fdb\u5165\u201c\u7248\u672c\u53f7\u201d-&gt;\u201cgcc_64\u201d-&gt;&quot;plugins&quot;\u4e2d(\u6211\u8fd9\u91cc\u662fQt5.14.1\/5.14.1\/gcc_64\/plugins\/)\uff0c\u590d\u5236platforms\u6587\u4ef6\u5939\u5230NewPro\u6587\u4ef6\u5939\u4e0b<\/p>\n<p>\u5c06copylib.sh\u590d\u5236\u5230NewPro\/platforms\u6587\u4ef6\u5939\u4e2d\uff0c\u8fd0\u884c\uff1a.\/copylib libqxcb.so\u547d\u4ee4\uff0c\u540c\u6837\u751f\u6210lib\u6587\u4ef6\u5939(\u8fd9\u91cc\u662flibqxcb\u7684\u4f9d\u8d56\u5e93\uff0c\u82e5\u7f3a\u5c11\uff0c\u5c06\u89e6\u53d1\u201cxcb\u201d\u9519\u8bef)\uff0c\u5c06lib\u6587\u4ef6\u5939\u4e0b\u6240\u6709\u6587\u4ef6\u62f7\u5230NewPro\u76ee\u5f55\u4e0b\uff0c\u9047\u5230\u6587\u4ef6\u51b2\u7a81\u9009\u62e9\u5168\u90e8\u66ff\u6362\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"1-3\"><\/span>1-3)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>export QT_DEBUG_PLUGINS=1<br \/>\n\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u811a\u672cqmlvideo.sh<br \/>\n\u5982\u6709not found\u7684\u4f9d\u8d56\u5e93\uff0c\u518d\u53bbQt\u5b89\u88c5\u8def\u5f84\u4e0b\u7684platforms\u4e2d\u627e\u5230\u590d\u5236\u8fc7\u6765\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2%E5%88%B6%E4%BD%9C%E5%8F%AF%E6%89%A7%E8%A1%8C%E7%A8%8B%E5%BA%8F%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC\"><\/span>2.\u5236\u4f5c\u53ef\u6267\u884c\u7a0b\u5e8f\u8fd0\u884c\u811a\u672c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728NewPro\u76ee\u5f55\u4e0b\uff0c\u521b\u5efa\u811a\u672c\u6587\u4ef6xxx.sh(<strong>xxx\u4e3a\u53ef\u6267\u884c\u7a0b\u5e8f\u540d<\/strong>\uff0c\u6211\u8fd9\u91cc\u662fqmlvideo.sh),\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/sh\nappname=`basename $0 | sed s,\\.sh$,,`\n\ndirname=`dirname $0`\ntmp=&quot;${dirname#?}&quot;\n\nif [ &quot;${dirname%$tmp}&quot; != &quot;\/&quot; ]; then\ndirname=$PWD\/$dirname\nfi\nLD_LIBRARY_PATH=$dirname\nexport LD_LIBRARY_PATH\n$dirname\/$appname &quot;$@&quot;<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"3%E8%BF%90%E8%A1%8C%E7%A8%8B%E5%BA%8F\"><\/span>3.\u8fd0\u884c\u7a0b\u5e8f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5c06NewPro\u6587\u4ef6\u5939\u62f7\u8d1d\u5230\u4e00\u53f0\u540c\u7cfb\u7edf\u6ca1\u6709Qt\u73af\u5883\u7684\u7535\u8111\u4e0a\uff0c\u8fdb\u5165NewPro\u76ee\u5f55\u540e\uff0c\u8fd0\u884c\uff1a.\/qmlvideo.sh\u547d\u4ee4\u5373\u53ef\u542f\u52a8\u7a0b\u5e8f\u3002<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"12608\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>https:\/\/blog.csdn.net\/JOBbaba\/article\/details\/1242 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[966],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/12608"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12608"}],"version-history":[{"count":13,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/12608\/revisions"}],"predecessor-version":[{"id":12623,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/12608\/revisions\/12623"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12608"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}