{"id":527,"date":"2013-12-03T03:29:39","date_gmt":"2013-12-02T18:29:39","guid":{"rendered":"http:\/\/bellsprite.com\/?p=527"},"modified":"2013-12-03T03:29:39","modified_gmt":"2013-12-02T18:29:39","slug":"cocos2dx%e5%bc%80%e5%8f%91%e5%85%a5%e9%97%a8%ef%bc%881%ef%bc%89","status":"publish","type":"post","link":"https:\/\/bellsprite.com\/?p=527","title":{"rendered":"cocos2dx\u5f00\u53d1\u5165\u95e8\uff081\uff09"},"content":{"rendered":"<p>\n\t\u770b\u5b98\u65b9\u6559\u7a0b\uff0c\u5b98\u65b9\u6559\u6211\u5b89\u88c5visual studio\u7684\u521b\u5efa\u9879\u76ee\u6a21\u677f\uff0c\u53ef\u6211\u4e0b\u8f7d\u56de\u6765\u7684cocos2dx\u91cc\u6839\u6ca1\u6709\u6ca1\u6709\u90a3\u4e2a\u5b89\u88c5\u7528bat\u3002\n<\/p>\n<p>\n\t\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\u662f\u8981\u7528tools\/project_creator<span style=\"line-height:1.5;\">\u91cc\u7684python\u6587\u4ef6\u751f\u6210\u7a7a\u9879\u76ee\u3002<\/span>\n<\/p>\n<p>\n\t<span style=\"line-height:1.5;\">\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\u7528\u6cd5\uff0c\u76f4\u63a5\u8fd0\u884c\u90a3\u4e2apython\u6587\u4ef6\u52a0\u9002\u5f53\u53c2\u6570\uff0c\u7ed3\u679c\u51fa\u73b0\u4e86\u8be1\u5f02\u7684\u6587\u4ef6\u5939\u6743\u9650\u95ee\u9898\uff0c\u6587\u4ef6\u5939\u5220\u4e0d\u6389\u4e86\u3002\u7528windows\u7684python\u548ccygwin\u7684python\u90fd\u662f\u8fd9\u4e2a\u7ed3\u679c\u3002<\/span>\n<\/p>\n<p>\n\t\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\u89e3\u51b3\u65b9\u6848\uff0cchmod 777 -R cocos2dx\u76ee\u5f55\uff0c\u89e3\u9664\u6743\u9650\u9650\u5236\u3002\u539f\u6765\u5220\u4e0d\u6389\u7684\u6587\u4ef6\u5939\u4e5f\u80fd\u5220\u4e86\uff0c\u521b\u5efa\u65b0\u9879\u76ee\u4e5f\u6b63\u5e38\u4e86\uff0c\u5f00\u5fc3\u3002\n<\/p>\n<p>\n\t<span style=\"line-height:1.5;\">\u7a7a\u9879\u76ee\u91cc\u6709\u5404\u79cd\u5e73\u53f0\u7684\u6a21\u677f\u3002\u5148\u770b\u4e86\u4e00\u4e2awin32\u7684\uff0csln\u6253\u5f00\u76f4\u63a5\u8fd0\u884c\u5c31\u662f\u6e38\u620f\u753b\u9762\uff0c\u5f88\u987a\u5229\u3002<\/span>\n<\/p>\n<p>\n\t\u518d\u53bb\u770bandroid\u7684\u3002\u628a\u9879\u76ee\u5bfc\u5165eclipse\uff0c\u62a5\u9519\u627e\u4e0d\u5230cocos2dx\u7684\u5e93\u3002\n<\/p>\n<p>\n\t\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\uff0c\u8981\u628acocos2dx\/platform\/android\/java\u4e5f\u5bfc\u5165\u5230eclipse\u91cc\u624d\u80fd\u627e\u5230\u5e93\uff0c\u7406\u7531\u4e0d\u8be6\uff0c\u53cd\u6b63\u4e0d\u62a5\u9519\u5c31\u597d\u3002\n<\/p>\n<p>\n\t\u63a5\u7740\u662f\u4e0d\u80fd\u8fd0\u884c\uff0c\u8bf4Unable to execute dex: java.nio.BufferOverflowException\u4ec0\u4e48\u7684\u3002\n<\/p>\n<p>\n\t\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\uff0c\u6709\u8bf4\u6539\u6539\u914d\u7f6e\u5c31\u80fd\u4fee\u590d\u7684\uff0c\u6539\u4e86\u8be5\uff0c\u6ca1\u4fee\u590d\u3002\u6709\u8bf4\u4e0b\u8f7d\u4e00\u4e2asupport\u4ec0\u4e48\u4e1c\u897f\u7684\u53ef\u4ee5\u4fee\u590d\uff0c\u4e0b\u4e86\uff0c\u4e5f\u6ca1\u4fee\u590d\u3002\u6700\u540e\u4e0d\u5f97\u5df2\uff0c\u7528\u4e86\u6700\u5927\u52a8\u5e72\u6208\u7684\u529e\u6cd5\uff0c\u5378\u8f7d\u4e86build-tool 19\uff0c\u5b89\u88c5\u4e8618.1.1\uff0c\u4e0d\u62a5\u9519\u4e86\u3002\n<\/p>\n<p>\n\t\u542f\u52a8\u865a\u62df\u673a\uff0c\u8fd0\u884c\u7a7a\u9879\u76ee\uff0cGLES\u5d29\u6e83\u3002\n<\/p>\n<p>\n\t\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\uff0c\u597d\u50cf\u6a21\u62df\u5668\u5bf9GLES2.0\u652f\u6301\u4e0d\u597d\uff0capk\u81ea\u5df1\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002\u4e8e\u662f\u62ff\u5e73\u677f\u6765\u5b89\u88c5\u7a7a\u9879\u76ee\u7684apk\u6587\u4ef6\uff0c\u6b63\u786e\u8fd0\u884c\uff0c\u4e0d\u8fc7\u753b\u9762\u4e0d\u62c9\u4f38\u800c\u662f\u5267\u4e2d\uff0c\u561b\u8fd9\u4e2a\u4ee5\u540e\u6162\u6162\u5b66\u3002\n<\/p>\n<p>\n\t\u5728\u7f51\u4e0a\u7a0d\u5fae\u626b\u4e86\u4e00\u773c\uff0c\u4f3c\u4e4e\u53ef\u4ee5\u8ba9\u7535\u8111\u7684\u6a21\u62df\u5668\u4e5f\u652f\u6301GLES2.0\uff0c\u9700\u8981\u8bbeGPU\u52a0\u901f\uff0c\u8fd8\u662f\u4ec0\u4e48x86\u6a21\u62df\u5668\u554a\uff0c\u6ca1\u4ed4\u7ec6\u770b\u3002\u6211\u60f3\u65e2\u7136\u662f\u8de8\u5e73\u53f0\uff0c\u5e94\u8be5\u53ef\u4ee5\u5728win32\u9879\u76ee\u4e0b\u5f00\u53d1\uff0c\u7136\u540e\u53d1\u5e03\u5230\u5176\u4ed6\u5e73\u53f0\u5427\u3002\u6bd5\u7adf\u7528visual studio\u5f00\u53d1\u6700\u987a\u624b\u3002\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u5230\u8fd9\u91cc\uff0c\u8fd8\u4e0d\u592a\u6e05\u695a\u600e\u4e48\u4e2a\u5f00\u53d1\u6a21\u5f0f\u3002\u5982\u679c\u662f\u6211\u5728win32\u7684\u9879\u76ee\u91cc\u5f00\u53d1\uff0c\u5b8c\u4e86\u628a\u4ee3\u7801\u590d\u5236\u7c98\u8d34\u5230android\u7684\u7a7a\u9879\u76ee\u91cc\uff0c\u53ef\u90a3android\u65b9\u9762\u7684\u914d\u7f6e\u6587\u4ef6\u4ec0\u4e48\u7684\u600e\u4e48\u529e\u5462\u3002\u914d\u7f6e\u8fd8\u662f\u7a7a\u58f3\u7684\uff0c\u6e90\u6587\u4ef6\u662fwin32\u9879\u76ee\u91cc\u62ff\u6765\u7684\u3002\u5982\u679c\u6211\u7528\u4e86\u4e00\u4e9b\u5916\u9762\u7684\u5e93\u4ec0\u4e48\u7684\uff0c\u8fd9\u600e\u4e48\u65e0\u4ee3\u4ef7\u79fb\u690d\u5230android\u9879\u76ee\u91cc\uff1f\n<\/p>\n<p>\n\t\u4eca\u5929\u592a\u665a\u4e86\uff0c\u51cc\u66683\u70b9\u534a\u4e86\u90fd\uff0c\u5c31\u5230\u8fd9\u513f\u5427\u3002\n<\/p>\n<p>\n\t\u660e\u5929\u5982\u679c\u6709\u673a\u4f1a\uff0c\u7ee7\u7eed\u770b\u90a3\u4e2a\u4ececocos2d\u79fb\u690d\u8fc7\u6765\u7684\u6559\u7a0b\u3002\n<\/p>\n<p>\n\t\u4e2d\u6587\u7248\uff1a<a href=\"http:\/\/cocos2d.cocoachina.com\/resource\/show?nid=82\">http:\/\/cocos2d.cocoachina.com\/resource\/show?nid=82<\/a>\n<\/p>\n<p>\n\t\u82f1\u6587\u7248\uff1a<a href=\"http:\/\/www.cocos2d-x.org\/news\/18\">http:\/\/www.cocos2d-x.org\/news\/18<\/a>\n<\/p>\n<p>\n\t\u4ee3\u7801\uff1a<a href=\"https:\/\/github.com\/flyingpacer\/Cocos2dxSimpleGame\">https:\/\/github.com\/flyingpacer\/Cocos2dxSimpleGame<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u770b\u5b98\u65b9\u6559\u7a0b\uff0c\u5b98\u65b9\u6559\u6211\u5b89\u88c5visual studio\u7684\u521b\u5efa\u9879\u76ee\u6a21\u677f\uff0c\u53ef\u6211\u4e0b\u8f7d\u56de\u6765\u7684cocos2dx\u91cc\u6839\u6ca1\u6709\u6ca1\u6709\u90a3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"views":118763,"_links":{"self":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=527"}],"version-history":[{"count":1,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}