{"id":51525,"date":"2024-10-08T19:22:14","date_gmt":"2024-10-08T11:22:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/51525\/"},"modified":"2024-11-14T10:42:53","modified_gmt":"2024-11-14T02:42:53","slug":"ubuntu-17-10-%e5%ae%89%e8%a3%9d-qt-5-10-%e7%92%b0%e5%a2%83%e8%88%87-qt-creator-4-5-%e9%96%8b%e7%99%bc%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/51525\/","title":{"rendered":"Ubuntu 17.10 \u5b89\u88dd Qt 5.10 \u74b0\u5883\u8207 Qt Creator 4.5 \u958b\u767c\u5de5\u5177"},"content":{"rendered":"<h1 id=\"ubuntu-17-10-%e5%ae%89%e8%a3%9d-qt-5-10-%e7%92%b0%e5%a2%83%e8%88%87-qt-creator-4-5-%e9%96%8b%e7%99%bc%e5%b7%a5%e5%85%b7-gfsUVlCdIN\">Ubuntu 17.10 \u5b89\u88dd Qt 5.10 \u74b0\u5883\u8207 Qt Creator 4.5 \u958b\u767c\u5de5\u5177<\/h1>\n<p>\u5728\u958b\u767c\u8de8\u5e73\u53f0\u61c9\u7528\u7a0b\u5f0f\u6642\uff0cQt \u662f\u4e00\u500b\u975e\u5e38\u53d7\u6b61\u8fce\u7684\u6846\u67b6\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 Ubuntu 17.10 \u4e0a\u5b89\u88dd Qt 5.10 \u74b0\u5883\u53ca Qt Creator 4.5 \u958b\u767c\u5de5\u5177\uff0c\u8b93\u60a8\u80fd\u5920\u5feb\u901f\u958b\u59cb\u958b\u767c\u5de5\u4f5c\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e9%9c%80%e6%b1%82-gfsUVlCdIN\">\u7cfb\u7d71\u9700\u6c42<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u7b26\u5408\u4ee5\u4e0b\u9700\u6c42\uff1a<\/p>\n<ul>\n<li>Ubuntu 17.10 \u4f5c\u696d\u7cfb\u7d71<\/li>\n<li>\u81f3\u5c11 2GB \u7684 RAM<\/li>\n<li>\u8db3\u5920\u7684\u786c\u789f\u7a7a\u9593\uff08\u5efa\u8b70\u81f3\u5c11 5GB\uff09<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d-qt-5-10-%e7%92%b0%e5%a2%83-gfsUVlCdIN\">\u5b89\u88dd Qt 5.10 \u74b0\u5883<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88dd Qt 5.10\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<h3 id=\"1-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-gfsUVlCdIN\">1. \u66f4\u65b0\u7cfb\u7d71<\/h3>\n<pre><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d%e5%bf%85%e8%a6%81%e7%9a%84%e4%be%9d%e8%b3%b4%e5%8c%85-gfsUVlCdIN\">2. \u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305<\/h3>\n<p>\u5728\u5b89\u88dd Qt \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5b89\u88dd\u4e00\u4e9b\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff1a<\/p>\n<pre><code>sudo apt install build-essential libgl1-mesa-dev<\/code><\/pre>\n<h3 id=\"3-%e4%b8%8b%e8%bc%89-qt-%e5%ae%89%e8%a3%9d%e7%a8%8b%e5%bc%8f-gfsUVlCdIN\">3. \u4e0b\u8f09 Qt \u5b89\u88dd\u7a0b\u5f0f<\/h3>\n<p>\u524d\u5f80 Qt \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 Qt 5.10 \u7684\u5b89\u88dd\u7a0b\u5f0f\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f09\uff1a<\/p>\n<pre><code>wget https:\/\/download.qt.io\/official_releases\/qt\/5.10\/5.10.0\/qt-unified-linux-x64-online.run<\/code><\/pre>\n<h3 id=\"4-%e8%a8%ad%e5%ae%9a%e5%9f%b7%e8%a1%8c%e6%ac%8a%e9%99%90-gfsUVlCdIN\">4. \u8a2d\u5b9a\u57f7\u884c\u6b0a\u9650<\/h3>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u70ba\u5b89\u88dd\u7a0b\u5f0f\u8a2d\u5b9a\u57f7\u884c\u6b0a\u9650\uff1a<\/p>\n<pre><code>chmod +x qt-unified-linux-x64-online.run<\/code><\/pre>\n<h3 id=\"5-%e5%9f%b7%e8%a1%8c%e5%ae%89%e8%a3%9d%e7%a8%8b%e5%bc%8f-gfsUVlCdIN\">5. \u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f\u4e26\u6309\u7167\u6307\u793a\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<pre><code>.\/qt-unified-linux-x64-online.run<\/code><\/pre>\n<p>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u60a8\u53ef\u4ee5\u9078\u64c7\u5b89\u88dd Qt 5.10 \u53ca\u5176\u76f8\u95dc\u7684\u6a21\u7d44\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d-qt-creator-4-5-gfsUVlCdIN\">\u5b89\u88dd Qt Creator 4.5<\/h2>\n<p>\u5b89\u88dd\u5b8c Qt 5.10 \u5f8c\uff0c\u63a5\u4e0b\u4f86\u5b89\u88dd Qt Creator 4.5 \u958b\u767c\u5de5\u5177\uff1a<\/p>\n<h3 id=\"1-%e4%b8%8b%e8%bc%89-qt-creator-gfsUVlCdIN\">1. \u4e0b\u8f09 Qt Creator<\/h3>\n<p>\u60a8\u53ef\u4ee5\u5f9e Qt \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 Qt Creator \u7684\u5b89\u88dd\u5305\uff1a<\/p>\n<pre><code>wget https:\/\/download.qt.io\/official_releases\/qtcreator\/4.5\/4.5.0\/qtcreator-linux-x64-4.5.0.run<\/code><\/pre>\n<h3 id=\"2-%e8%a8%ad%e5%ae%9a%e5%9f%b7%e8%a1%8c%e6%ac%8a%e9%99%90-gfsUVlCdIN\">2. \u8a2d\u5b9a\u57f7\u884c\u6b0a\u9650<\/h3>\n<p>\u540c\u6a23\u5730\uff0c\u70ba\u5b89\u88dd\u7a0b\u5f0f\u8a2d\u5b9a\u57f7\u884c\u6b0a\u9650\uff1a<\/p>\n<pre><code>chmod +x qtcreator-linux-x64-4.5.0.run<\/code><\/pre>\n<h3 id=\"3-%e5%9f%b7%e8%a1%8c%e5%ae%89%e8%a3%9d%e7%a8%8b%e5%bc%8f-gfsUVlCdIN\">3. \u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f<\/h3>\n<p>\u57f7\u884c\u5b89\u88dd\u7a0b\u5f0f\u4e26\u6309\u7167\u6307\u793a\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<pre><code>.\/qtcreator-linux-x64-4.5.0.run<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae-qt-%e7%92%b0%e5%a2%83-gfsUVlCdIN\">\u914d\u7f6e Qt \u74b0\u5883<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u555f\u52d5 Qt Creator\uff0c\u4e26\u5728\u9996\u6b21\u555f\u52d5\u6642\u914d\u7f6e Qt \u74b0\u5883\u3002\u60a8\u9700\u8981\u9078\u64c7\u5df2\u5b89\u88dd\u7684 Qt \u7248\u672c\uff0c\u4e26\u8a2d\u7f6e\u7de8\u8b6f\u5668\u548c\u5de5\u5177\u93c8\u3002<\/p>\n<h3 id=\"1-%e8%a8%ad%e5%ae%9a-qt-%e7%89%88%e6%9c%ac-gfsUVlCdIN\">1. \u8a2d\u5b9a Qt \u7248\u672c<\/h3>\n<p>\u5728 Qt Creator \u4e2d\uff0c\u524d\u5f80\u300c\u5de5\u5177\u300d&gt;\u300c\u9078\u9805\u300d&gt;\u300cKits\u300d\uff0c\u7136\u5f8c\u6dfb\u52a0\u5df2\u5b89\u88dd\u7684 Qt \u7248\u672c\u3002<\/p>\n<h3 id=\"2-%e8%a8%ad%e5%ae%9a%e7%b7%a8%e8%ad%af%e5%99%a8-gfsUVlCdIN\">2. \u8a2d\u5b9a\u7de8\u8b6f\u5668<\/h3>\n<p>\u5728\u540c\u4e00\u500b\u9078\u9805\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8a2d\u5b9a GCC \u6216 Clang \u7de8\u8b6f\u5668\uff0c\u78ba\u4fdd\u5b83\u5011\u5df2\u6b63\u78ba\u5b89\u88dd\u4e26\u53ef\u7528\u3002<\/p>\n<h2 id=\"%e9%96%8b%e5%a7%8b%e9%96%8b%e7%99%bc-gfsUVlCdIN\">\u958b\u59cb\u958b\u767c<\/h2>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9a5f\u5f8c\uff0c\u60a8\u5c31\u53ef\u4ee5\u958b\u59cb\u4f7f\u7528 Qt Creator \u958b\u767c\u61c9\u7528\u7a0b\u5f0f\u4e86\u3002\u60a8\u53ef\u4ee5\u5275\u5efa\u65b0\u7684\u5c08\u6848\uff0c\u9078\u64c7\u5408\u9069\u7684\u6a21\u677f\uff0c\u4e26\u958b\u59cb\u7de8\u5beb\u4ee3\u78bc\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-gfsUVlCdIN\">\u7e3d\u7d50<\/h2>\n<p>\u672c\u6587\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 Ubuntu 17.10 \u4e0a\u5b89\u88dd Qt 5.10 \u74b0\u5883\u8207 Qt Creator 4.5 \u958b\u767c\u5de5\u5177\u3002\u9019\u4e9b\u5de5\u5177\u5c07\u5e6b\u52a9\u60a8\u5feb\u901f\u958b\u767c\u8de8\u5e73\u53f0\u61c9\u7528\u7a0b\u5f0f\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u958b\u767c\u74b0\u5883\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u4f86\u90e8\u7f72\u60a8\u7684\u61c9\u7528\u7a0b\u5f0f\uff0c\u4eab\u53d7\u66f4\u9ad8\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install Qt 5.10 and Qt Creator 4.5 on Ubuntu 17.10 for efficient application development with step-by-step guidance.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-51525","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=51525"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51525\/revisions"}],"predecessor-version":[{"id":51526,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/51525\/revisions\/51526"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=51525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=51525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=51525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}