{"id":223,"date":"2017-11-19T23:28:32","date_gmt":"2017-11-19T15:28:32","guid":{"rendered":"https:\/\/damogame.cn\/?p=223"},"modified":"2017-11-19T23:28:32","modified_gmt":"2017-11-19T15:28:32","slug":"%e7%94%a8vs2015%e5%bc%80%e5%8f%91linux%e7%a8%8b%e5%ba%8f%e8%af%a6%e7%bb%86%e6%95%99%e7%a8%8b-%e9%85%8d%e7%bd%ae%e7%af%87","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/223","title":{"rendered":"\u7528VS2015\u5f00\u53d1Linux\u7a0b\u5e8f\u8be6\u7ec6\u6559\u7a0b-\u914d\u7f6e\u7bc7"},"content":{"rendered":"<p class=\"csdn_top\">\u539f\u521b\u00a0<span class=\"time\" style=\"font-size: 16px;\">2016\u5e7411\u670827\u65e5 15:42:43<\/span><\/p>\n<div class=\"article_bar clearfix\">\n<ul class=\"article_tags clearfix csdn-tracking-statistics\" data-mod=\"popu_377\">\n<li class=\"tit\">\u6807\u7b7e\uff1a<\/li>\n<li><a href=\"http:\/\/so.csdn.net\/so\/search\/s.do?q=visual%20studio&amp;t=blog\" target=\"_blank\" rel=\"noopener\">visual studio<\/a>\u00a0\/<\/li>\n<li><a href=\"http:\/\/so.csdn.net\/so\/search\/s.do?q=linux&amp;t=blog\" target=\"_blank\" rel=\"noopener\">linux<\/a><\/li>\n<\/ul>\n<ul class=\"right_bar\">\n<li><button class=\"btn-noborder\"><i class=\"icon iconfont icon-read\"><\/i><span class=\"txt\">6762<\/span><\/button><\/li>\n<\/ul>\n<\/div>\n<div id=\"article_content\" class=\"article_content csdn-tracking-statistics\" data-mod=\"popu_519\" data-dsm=\"post\">\n<div class=\"markdown_views\">\n<p>VS2015\u63a8\u51fa\u4e86\u8de8\u5e73\u53f0\u5f00\u53d1\uff0c\u5176\u4e2d\u5305\u62ec\u4e86\u5bf9Linux\u7a0b\u5e8f\u5f00\u53d1\u7684\u652f\u6301\uff0c\u6700\u8fd1\u521a\u597d\u9700\u8981\u5f00\u53d1Linux\u7a0b\u5e8f\uff0c\u5bf9\u5176\u8fdb\u884c\u4e86\u4e00\u4e9b\u7814\u7a76\u3002<\/p>\n<p>\u9996\u5148\u4ecb\u7ecd\u4e0b\u6d89\u53ca\u5230\u7684\u5f00\u53d1\u5de5\u5177<\/p>\n<h2 id=\"\u5f00\u53d1\u5de5\u5177\"><a name=\"t0\"><\/a>\u5f00\u53d1\u5de5\u5177<\/h2>\n<ul>\n<li>VS2015Update3\uff0c\u4e0b\u6587\u7b80\u79f0VS(\u53ef\u4ee5\u4e0b\u8f7d\u514d\u8d39\u793e\u533a\u7248)<\/li>\n<li>Visual C++ for Linux Development(VC_Linux.exe)\u00a0<a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/725025cf-7067-45c2-8d01-1e0fd359ae6e\/file\/206420\/7\/VC_Linux.exe?SRC=VSIDE\" target=\"_blank\" rel=\"noopener\">\u4e0b\u8f7d\u94fe\u63a5<\/a><\/li>\n<li>VMware (\u865a\u62df\u673a\u8f6f\u4ef6)<\/li>\n<li>ubuntu-16.04-desktop-amd64.iso Linux(\u865a\u62df\u673a\u955c\u50cf)<\/li>\n<\/ul>\n<p>\u865a\u62df\u673a\u8f6f\u4ef6\u548cLinux\u7cfb\u7edf\u955c\u50cf\u53ef\u4ee5\u9009\u62e9\u81ea\u5df1\u719f\u6089\u7684\u7248\u672c,\u4e0b\u6587\u7684\u4ecb\u7ecd\u5c06\u4ee5VMware\u548cubuntu\u7cfb\u7edf\u4e3a\u51c6\u3002<\/p>\n<h2 id=\"\u73af\u5883\u914d\u7f6e\"><a name=\"t1\"><\/a>\u73af\u5883\u914d\u7f6e<\/h2>\n<p><strong>\u5b89\u88c5\u5de5\u5177<\/strong><br \/>\n1. \u5b89\u88c5VS2015\u3002<br \/>\n2. \u5b89\u88c5VC_Linux.exe(\u6ce8\u610f\u6b64\u65f6\u8981\u5173\u95ed\u6240\u6709\u7684VS\u8fdb\u7a0b)<br \/>\n3. \u5b8c\u6210\u540e\u6253\u5f00VS, \u9009\u62e9\u65b0\u5efa\u9879\u76ee\uff0c\u5982\u679c\u80fd\u770b\u5230\u4e0b\u56fe\u7ea2\u6846\u90e8\u5206\u5185\u5bb9\uff0c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002\u00a0<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127141849188\" alt=\"\u5b89\u88c5\u6210\u529f\" \/><br \/>\n4. \u5b89\u88c5\u865a\u62df\u673a\u8f6f\u4ef6\u5e76\u521b\u5efaLinux\u865a\u62df\u673a\u3002<\/p>\n<p><strong>\u914d\u7f6e\u865a\u62df\u673a<\/strong><br \/>\n1. \u5c06\u865a\u62df\u673a\u7f51\u7edc\u8bbe\u7f6e\u4e3a\u6865\u63a5\u6a21\u5f0f(\u8fd9\u6837VS\u624d\u80fd\u548c\u865a\u62df\u673a\u8fdb\u884c\u7f51\u7edc\u901a\u4fe1)<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127142543615\" alt=\"\u8bbe\u7f6e\u7f51\u7edc\u6a21\u5f0f\" \/><br \/>\n2. \u8fdb\u5165\u865a\u62df\u673a\u4e2d\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u5b89\u88c5ssh-server(VS\u9700\u8981\u901a\u8fc7ssh\u548c\u865a\u62df\u673a\u8fdb\u884c\u901a\u4fe1)\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u952e\u5165<code>sudo apt-get install openssh-server<\/code>\u00a0\u6765\u5b89\u88c5<br \/>\n3. \u7ec8\u7aef\u952e\u5165\u00a0<code>ifconfig<\/code>\u547d\u4ee4\u67e5\u770b\u865a\u62df\u673aip\u5730\u5740\u3002<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127144418848\" alt=\"\u67e5\u770b\u865a\u62df\u673aip\u5730\u5740\" \/><\/p>\n<p><strong>\u914d\u7f6eVS<\/strong><br \/>\n\u6253\u5f00VS\uff0c\u83dc\u5355\u680f\u70b9\u51fb<strong>\u5de5\u5177-&gt;\u9009\u9879<\/strong>\uff0c\u5728\u5f39\u51fa\u5bf9\u8bdd\u6846\u4e2d\u5de6\u4fa7\u9009\u62e9<strong>Cross Platform<\/strong>, \u53f3\u4fa7\u70b9\u51fbAdd\uff0c\u5728\u5f39\u51fa\u6846\u4e2d\u914d\u7f6e\u5bf9\u5e94\u7684\u4fe1\u606f\u3002<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127150211247\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u70b9\u51fb<strong>Connect<\/strong>\uff0c\u82e5\u4fe1\u606f\u65e0\u8bef\u5e76\u4e14\u73af\u5883\u914d\u7f6e\u6b63\u786e\uff0c\u5219\u5bf9\u8bdd\u6846\u81ea\u52a8\u5173\u95ed\uff0c\u4ee3\u8868\u8fde\u63a5\u6210\u529f\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u4f7f\u7528VS\u5f00\u53d1Linux\u7a0b\u5e8f\u4e86\u3002<\/p>\n<h2 id=\"\u521b\u5efalinux\u9879\u76ee\"><a name=\"t2\"><\/a>\u521b\u5efaLinux\u9879\u76ee<\/h2>\n<p>\u9009\u62e9\u00a0<strong>\u65b0\u5efa\u9879\u76ee-&gt;Cross Platform-&gt;linux<\/strong><br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127150632440\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u53ef\u4ee5\u770b\u5230<strong>Blink<\/strong>\uff0c<strong>Console Application<\/strong>\uff0c<strong>Empty Project<\/strong>\u548c<strong>Makefile Project<\/strong>\u56db\u79cd\u9879\u76ee\u7c7b\u578b\uff0c\u5176\u4e2dBlink\u7528\u4e8e\u7ec8\u7aef\u8bbe\u5907\u7a0b\u5e8f\u5f00\u53d1\u3002<\/p>\n<p>\u9009\u62e9<strong>Console Application<\/strong>\uff0c\u9879\u76ee\u540d\u79f0\u6539\u4e3aVSLinuxTest\uff0c\u70b9\u51fb\u786e\u5b9a\uff0cVS\u4f1a\u9ed8\u8ba4\u751f\u6210main.cpp<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127151510123\" alt=\"\u521b\u5efaLinux\u9879\u76ee\" \/><\/p>\n<p>\u8fdb\u5165\u9879\u76ee\u5c5e\u6027\u914d\u7f6e\u9875\u9762\uff0c\u9009\u62e9<strong>Remote Setting<\/strong><br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127151734267\" alt=\"Linux\u9879\u76eeRemote Setting\" \/><\/p>\n<p>\u91cc\u9762\u5305\u542bLinux\u9879\u76ee\u6240\u9700\u7684Linux\u4e3b\u673a\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<ul>\n<li>Target machine : \u76ee\u6807\u4e3b\u673a\uff08\u672c\u6587\u4e2d\u4e3aubuntu\u865a\u62df\u673a\uff09\u76f8\u5173\u4fe1\u606f<\/li>\n<li>RemoteRoot Directory : VS\u4f1a\u5c06\u6240\u6709Linux\u7c7b\u578b\u9879\u76ee\u4e0a\u4f20\u5230\u76ee\u6807\u4e3b\u673a\u7684\u8be5\u76ee\u5f55\u4e0b(ubuntu\u5bf9\u5e94 \/home\/projects)<\/li>\n<li>Remote Project Directory\uff1a \u5f53\u524d\u9879\u76ee\u5bf9\u5e94\u7684\u76ee\u6807\u4e3b\u673a\u76ee\u5f55<\/li>\n<li>\u7f16\u8bd1\u5668\u548c\u94fe\u63a5\u5668\uff0c\u53ef\u9009\u62e9g++\u6216clang++<\/li>\n<\/ul>\n<p>\u5173\u95ed\u5c5e\u6027\u914d\u7f6e\u9875\u9762\uff0c\u6309F7\uff0c\u6210\u529f\u751f\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127153053315\" alt=\"\u751f\u6210\u9879\u76ee\" \/><\/p>\n<p>\u8fdb\u5165\u865a\u62df\u673a\uff0c\u53d1\u73b0\u5728\/home\u76ee\u5f55\u4e0b\u591a\u4e86\u4e00\u4e2aprojects\u76ee\u5f55\uff0c\u6253\u5f00\u540e\u4f1a\u53d1\u73b0VS\u5c06\u9879\u76ee\u7684\u4ee3\u7801\u548c\u76f8\u5173\u6587\u4ef6\u5728\u76ee\u6807\u673a\u5668\u4e0a\u8fdb\u884c\u4e86\u62f7\u8d1d\u3002<br \/>\n<img decoding=\"async\" title=\"\" src=\"http:\/\/img.blog.csdn.net\/20161127153614864\" alt=\"\u9879\u76ee\u62f7\u8d1d\" \/><\/p>\n<p><strong>\u8c03\u8bd5\u7a0b\u5e8f<\/strong><br \/>\n\u56de\u5230VS\uff0c\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u65ad\u70b9\uff0cF5\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u55ef\uff0c\u5c31\u548c\u8c03\u8bd5windows\u7a0b\u5e8f\u4e00\u6837(\u6ce8\u610fRelease\u6a21\u5f0f\u4e0b\u65e0\u6cd5\u8c03\u8bd5)<\/p>\n<p>\u66f4\u591a\uff0c\u8bf7\u671f\u5f85<strong>\u7528VS2015\u5f00\u53d1Linux\u7a0b\u5e8f\u8be6\u7ec6\u6559\u7a0b-\u5b9e\u8df5\u7bc7<\/strong>\uff0c\u540c\u6837\u53ef\u4ee5\u67e5\u770b<a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2016\/03\/30\/visual-c-for-linux-development\/\" target=\"_blank\" rel=\"noopener\">VS\u5b98\u65b9\u94fe\u63a5<\/a>\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u521b\u00a02016\u5e7411\u670827\u65e5 15:42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[118],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","tag-02-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}