{"id":4901,"date":"2013-10-30T23:36:45","date_gmt":"2013-10-30T15:36:45","guid":{"rendered":"https:\/\/www.chenqing.work\/?p=4901"},"modified":"2023-05-02T09:22:45","modified_gmt":"2023-05-02T01:22:45","slug":"centos-6-2-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85-codelite-5-3","status":"publish","type":"post","link":"https:\/\/www.chenqing.work\/?p=4901","title":{"rendered":"CentOS 6.2 \u7f16\u8bd1\u5b89\u88c5 codelite 5.3"},"content":{"rendered":"\n<p>\u200b<\/p>\n\n\n\n<p>\u8fd9\u4e24\u5929\u5b9e\u9a8c\u5ba4\u8981\u6c42\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e2acodelite\uff0c\u4e8e\u662f\u7531\u6211\u5bf9\u670d\u52a1\u5668\u4e0b\u624b\uff0c\u4e0a\u7f51\u770b\u4e86\u4e0b\u60b2\u5267\u7684\u53d1\u73b0codelite\u4e0d\u652f\u6301\u5728centos\u4e0a\u76f4\u63a5\u5b89\u88c5\uff0c\u53ea\u80fd\u7f16\u8bd1\u5b89\u88c5\uff0c\u7ecf\u8fc7\u4e00\u756a\u6298\u817e\u4e4b\u540e\uff0c\u6210\u529f\u7684\u88c5\u4e0a\u4e86\uff0c\u4e0b\u9762\u662f\u6211\u7684\u5b89\u88c5\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<p>1\u3001\u5148\u88c5\u4e2awget\uff08\u5207\u6362\u5230root\u4e0b\u5b89\u88c5\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nyum install -y wget\n<\/pre><\/div>\n\n\n<p>2\u3001\u4e0a\u5b98\u7f51\u4e0b\u4e2a\u6e90\u7801\u5305\uff08\u666e\u901a\u7528\u6237\u5c31\u884c\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwget http:\/\/downloads.sourceforge.net\/project\/codelite\/Releases\/codelite-5.3\/codelite-5.3-gtk.src.tar.gz\n<\/pre><\/div>\n\n\n<p>3\u3001\u89e3\u538b\u6e90\u7801\u538b\u7f29\u5305\uff0c\u5f97\u5230codelite-5.3\u76ee\u5f55<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntar -zxvf codelite-5.3-gtk.src.tar.gz\n<\/pre><\/div>\n\n\n<p>4\u3001\u8fdb\u5165\u76ee\u5f55\uff0c\u53d1\u73b0\u6709\u4e2aBuildInfo.txt\u6587\u4ef6<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncd codelite-5.3\n<\/pre><\/div>\n\n\n<p>\u6253\u5f00\u5b83<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nvim BuildInfo.txt\n<\/pre><\/div>\n\n\n<p>\u8fd9\u4e2a\u4e1c\u4e1c\u91cc\u9762\u5c31\u662f\u6307\u5bfc\u6211\u4eec\u5982\u4f55\u7f16\u8bd1\u5b89\u88c5\u8fd9\u4e2a\u6e90\u7801\u5305\u7684<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u6587\u4ef6\u5e94\u8be5\u662f\u8bf4\uff0c\u8981\u5b89\u88c5codelite\uff0c\u5148\u8981\u5b89\u88c5wxWidgets\uff08\u7248\u672c\u81f3\u5c11\u4e3a2.9.5\uff09\u3001gtk2\u5f00\u53d1\u5305\u3001cmake<br>5\u3001\u5148\u6765\u5b89\u88c5gtk2\u5f00\u53d1\u5305\uff0c\u8fd9\u4e2a\u6700\u7b80\u5355<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nyum install gtk2*\n<\/pre><\/div>\n\n\n<p>6\u3001\u56e0\u4e3a\u8981\u4f7f\u7528\u5230cmake\u7f16\u8bd1codelite\uff0c\u5148\u628agcc\u7b49\u5fc5\u5907\u7a0b\u5e8f\u5305\u88c5\u4e0a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nyum install -y gcc gcc-c++ make automake\n<\/pre><\/div>\n\n\n<p>7\u3001\u63a5\u7740\u5b89\u88c5cmake\uff0c\u6362\u4e2a\u8def\u5f84\uff0c\u5148\u4ece\u5b98\u7f51\u4e0a\u83b7\u53d6cmake\u6e90\u7801\u5305\uff0c<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwget http:\/\/www.cmake.org\/files\/v2.8\/cmake-2.8.12.tar.gz\n<\/pre><\/div>\n\n\n<p>8\u3001\u89e3\u538b\uff0c\u5f97\u5230cmake-2.8.12\u76ee\u5f55<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntar -zxvf cmake-2.8.12.tar.gz\n<\/pre><\/div>\n\n\n<p>9\u3001\u8fdb\u5165\u76ee\u5f55<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncd cmake-2.8.12\n<\/pre><\/div>\n\n\n<p>10\u3001\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n.\/bootstrap\n<\/pre><\/div>\n\n\n<p>11\u3001\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ngmake\n<\/pre><\/div>\n\n\n<p>12\u3001\u5b89\u88c5\uff08\u5207\u6362\u5230root\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ngmake install\n<\/pre><\/div>\n\n\n<p>13\u3001cmake\u88c5\u5b8c\u4e86\uff0c\u4e0b\u9762\u88c5wxWidgets\uff0c\u6362\u4e2a\u8def\u5f84\uff0c\u8fd8\u662f\u5148\u4e0a\u5b98\u7f51\u4e0b\u6e90\u7801\u5305<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwget http:\/\/sourceforge.net\/projects\/wxwindows\/files\/2.9.5\/wxWidgets-2.9.5.tar.bz2\n<\/pre><\/div>\n\n\n<p>14\u3001\u89e3\u538b\uff0c\u5f97\u5230wxWidgets-2.9.5\uff0c<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntar -jxvf wxWidgets-2.9.5.tar.bz2\n<\/pre><\/div>\n\n\n<p>15\u3001\u8fdb\u5165\u8be5\u76ee\u5f55<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncd wxWidgets-2.9.5\n<\/pre><\/div>\n\n\n<p>16\u3001\u4f9d\u6b21\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n.\/configure\nmake\nmake install\n<\/pre><\/div>\n\n\n<p>17\u3001\u5b89\u88c5\u5b8c\u540e\uff0c\u7ec8\u7aef\u51fa\u73b0\u63d0\u793a\uff0c\u8981\u6c42\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfLD_LIBRARY_PATH\uff0c\u5148\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nldconfig\n<\/pre><\/div>\n\n\n<p>18\u3001\u63a5\u7740\u8f93\u5165\u547d\u4ee4\uff0c\u5f97\u5230\u4e00\u5806\u8f93\u51fa<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n.\/wx-config --libs\n<\/pre><\/div>\n\n\n<p>19\u3001\u6253\u5f00\u6587\u4ef6\/etc\/profile<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nvim \/etc\/profile\n<\/pre><\/div>\n\n\n<p>20\u3001\u5f80\u91cc\u6dfb\u52a0\u4e00\u53e5\u8bdd\uff0c\u53cc\u5f15\u53f7\u91cc\u7684\u5185\u5bb9\u5c31\u662f\u7b2c18\u6b65\u4e2d\u5f97\u5230\u7684\u8f93\u51fa\uff0c\u4fdd\u5b58\u9000\u51fa<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nexport LD_LIBRARY_PATH=&quot;...&quot;\n<\/pre><\/div>\n\n\n<p>21\u3001\u63a5\u7740\u8f93\u5165\uff0c\u6548\u679c\u662f\u5728\u4e0d\u91cd\u542f\u7cfb\u7edf\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7fprofile\u4e2d\u88ab\u4fee\u6539\u7684\u5185\u5bb9\u751f\u6548<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsource \/etc\/profile\n<\/pre><\/div>\n\n\n<p>22\u3001\u5230\u6b64\uff0cBuildInfo.txt\u4e2d\u7684\u524d\u7f6e\u6761\u4ef6\u5df2\u7ecf\u90fd\u5b8c\u6210\uff0c\u6000\u7740\u6fc0\u52a8\u7684\u5fc3\u60c5\u518d\u6b21\u770b\u5411BuildInfo.txt\uff0c\u91cc\u9762\u6709\u63a5\u4e0b\u6765\u7684\u5b89\u88c5\u6d41\u7a0b<\/p>\n\n\n\n<p>23\u3001\u8fdb\u5165codelite-5.3\u76ee\u5f55\uff0c\u65b0\u5efa\u76ee\u5f55build-release<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nmkdir build-release\n<\/pre><\/div>\n\n\n<p>24\u3001\u8fdb\u5165build-release\u5b50\u76ee\u5f55<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncd build-release\n<\/pre><\/div>\n\n\n<p>25\u3001\u9ebb\u6e9c\u7684\u8f93\u5165\u547d\u4ee4\uff1acmake -G &#8220;Unix Makefiles&#8221; -DCMAKE_BUILD_TYPE=Release\uff0c\u62a5\u9519\uff0c\u8bf4\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u627e\u4e0d\u5230CMakeList.txt\uff0c\u8fd9\u4e2a\u6587\u4ef6\u5f88\u719f\uff0c\u5176\u5b9e\u5b83\u5c31\u5728codelite-5.3\u76ee\u5f55\u4e0b\uff0c\u90a3\u4e48\u6211\u4eec\u6307\u51fa\u5b83\u7684\u8def\u5f84\uff1acmake ..\/ -G &#8220;Unix Makefiles&#8221; -DCMAKE_BUILD_TYPE=Release\uff0c\u8fd9\u56de\u53c8\u62a5\u9519\uff0c\u63d0\u793a\u7f3a\u5c11libssh\uff0c\u7f3a\u5565\u8865\u5565\uff0c\u597d\u5427\uff0c\u6362\u4e2a\u8def\u5f84\uff0c\u4e0b\u4e2alibssh<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwget http:\/\/www.libssh.org\/files\/0.5\/libssh-0.5.3.tar.gz\n<\/pre><\/div>\n\n\n<p>26\u3001\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8fdb\u884c\u89e3\u538b\uff0c\u7f16\u8bd1\uff0c\u5b89\u88c5\uff08\u6ce8\u610f\uff0c\u5b89\u88c5\u7684\u65f6\u5019\u90fd\u8981\u5207\u6362\u5230root\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ntar -zxvf libssh-0.5.3.tar.gz\ncd libssh-0.5.3\nmkdir build\ncd build\ncmake ..\/ -DCMAKE_BUILD_TYPE=Debug\nmake\nmake install\n<\/pre><\/div>\n\n\n<p>27\u3001libssh\u641e\u5b9a\uff0c\u63a5\u7740\u6765\u5230codelite-5.3\/build\u4e0b\uff0c\u53c8\u6765\uff1acmake ..\/ -G &#8220;Unix Makefiles&#8221; -DCMAKE_BUILD_TYPE=Release\uff0c\u62a5\u9519\uff0c\u8fd9\u6b21\u7f3a\u5c11ssl\uff0c\u5c0f\u610f\u601d<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nyum install openssl openssl-devel\n<\/pre><\/div>\n\n\n<p>28\u3001\u518d\u6765<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncmake ..\/ -G &quot;Unix Makefiles&quot; -DCMAKE_BUILD_TYPE=Release\n<\/pre><\/div>\n\n\n<p>29\u3001\u8fd9\u6b21\u6210\u529f\u4e86\uff0c\u63a5\u7740<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nmake\n<\/pre><\/div>\n\n\n<p>30\u3001\u6700\u540e<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nmake install\n<\/pre><\/div>\n\n\n<p>31\u3001\u4e0b\u9762\u5c31\u5728CentOS\u4e0b\u4eab\u53d7codelite\u5e26\u6765\u7684\u6b22\u4e50\u4e86<\/p>\n\n\n\n<p>\u5b89\u88c5CMake\u53c2\u8003\u94fe\u63a5\uff1ahttp:\/\/www.cnblogs.com\/mophee\/archive\/2013\/03\/19\/2969456.html<br>\u5b89\u88c5wxWidgets\u53c2\u8003\u94fe\u63a5\uff1ahttp:\/\/blog.csdn.net\/howeverpf\/article\/details\/7834513 \u200b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u200b \u8fd9\u4e24\u5929\u5b9e\u9a8c\u5ba4\u8981\u6c42\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e2acodelite\uff0c\u4e8e\u662f\u7531\u6211\u5bf9\u670d\u52a1\u5668\u4e0b\u624b\uff0c\u4e0a\u7f51\u770b\u4e86\u4e0b\u60b2\u5267\u7684\u53d1\u73b0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[99],"class_list":["post-4901","post","type-post","status-publish","format-standard","hentry","category-code","tag-codelite"],"_links":{"self":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4901"}],"version-history":[{"count":4,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4901\/revisions"}],"predecessor-version":[{"id":8607,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4901\/revisions\/8607"}],"wp:attachment":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}