ããŒãã¬ãŒãC ++ SDK
ããŒãã¬ãŒãSDKã®èåŸã«ããèãæ¹ã¯ã次ã®ããã«èãããŸãã ãã®ã¢ã€ãã¢ã¯æ°ãããã®ã§ã¯ãããŸããããéåžžã«éèŠã§ãã ç°ãªãããã°ã©ãã³ã°èšèªãšAPIã䜿çšãã代ããã«ããµããŒããããŠãããã¹ãŠã®ãã©ãããã©ãŒã ã§åãã³ãŒããã³ã³ãã€ã«ããŠå®è¡ã§ããŸãã ãã®æ±çšæ§ã¯ãåã¿ãŒã²ãããã©ãããã©ãŒã ã®APIã®æœè±¡åå±€ã®åœ¹å²ãæããC / C ++ããŒã¹ã®APIã®ãããã§å®çŸãããŠããŸãã
Marmalade SDKã¯ãã¯ãã¹ãã©ãããã©ãŒã ã¢ããªã±ãŒã·ã§ã³éçºããŒã«ãããã§ãã ããŸããŸãªç°å¢ã§åäœããŸãããWindowsã䜿çšããŸãã ããŒãã¬ãŒãã«ã¯ãããŸããŸãªãã©ãããã©ãŒã ã§ã¢ããªã±ãŒã·ã§ã³ãéçºããã¹ããå±éããããã®äžé£ã®ã©ã€ãã©ãªãã³ãŒããµã³ãã«ãããŒã«ãå«ãŸããŠããŸãã ç¹ã«ãAndroid x86ã§ã ããã±ãŒãžã¯ããææžåãããŠããŸã ã
äºåæºå
以äžã§ã¯ãWindowsç°å¢ã§ã®Marmalade SDKã®äœ¿çšã«ã€ããŠèª¬æããŸãã Mac OSã䜿çšããŠããå Žåã¯ãããã¥ã¡ã³ãã®ãã®ã»ã¯ã·ã§ã³ãåç §ããŠãã ããã
ãã®ãããMarmalade SDKãã€ã³ã¹ããŒã«ããåã«æºåããå¿ èŠããããŸãã ã€ãŸããããã«äœæ¥ãé²ããã«ã¯ã次ã®ãã®ãå¿ èŠã§ãã
- Windows 7以é
- Java JRE 5以éã
- Microsoft Visual Studio 2008 SP1 / 2010/2012/2013/2015ïŒC ++ïŒãããŸããŸãªãªãã·ã§ã³ãé©åã§ããããã±ãŒãžã®-ããã³ExpressããŒãžã§ã³ãå«ã¿ãŸãã
- SconsïŒC ++ïŒãZeroBrane StudioïŒLuaïŒ;
- Androidéçºç°å¢ã GoogleããããŠã³ããŒããããã Intel INDEã®äžéšãšããŠå
¥æã§ããŸãã
- Android NDK Intel INDEãã€ã³ã¹ããŒã«ããå ŽåãNDKã¯ãã§ã«ã·ã¹ãã ã«ååšããŸãã
- Apache AntïŒãªãã·ã§ã³ïŒã
äœæ¥ã®åã«ãç°å¢å€æ°ã確èªãã䟡å€ããããŸããäžèšã®ããŒã«ãã€ã³ã¹ããŒã«ãããšãã«ç°å¢å€æ°ãæ£ããæ§æãããŠããªãå Žåã¯ããããä¿®æ£ããŠãã ããã
- ANDROID_SDK_ROOTå€æ°ã«ã¯ãAndroid SDKãã©ã«ããŒãžã®ãã«ãã¹ãå«ãŸããŠããå¿
èŠããããŸãã ãã®å ŽåãSDKã¯Intel INDEã®äžéšãšããŠã€ã³ã¹ããŒã«ããããã®å€æ°ã¯æ¬¡ã®ããã«ãªããŸããCïŒ\ Intel \ INDE \ IDEintegration \ SDK
- ANDROID_NDK_ROOTå€æ°ã¯ãããããAndroid NDKãã©ã«ããŒãæããŠããå¿
èŠããããŸãã ç§ãã¡ã®å Žåãããã¯CïŒ\ Intel \ INDE \ IDEintegration \ NDKã§ã
- JAVA_HOMEå€æ°ã«ã¯ãJAVA JDKãžã®ãã¹ãå«ãŸããŠããŸãã ç§ãã¡ã®å Žåãããã¯CïŒ\ Program Files \ Java \ jdk1.7.0_79ã§ãã
- ANT_HOMEå€æ°ã¯ãApache ANTãã©ã«ããŒãæããŠããå¿
èŠããããŸãã ããšãã°ã次ã®ããã«ãªããŸããCïŒ\ ant \ apache-ant-1.9.6
- Pathå€æ°ã«ã¯ããšããããJDKãJDK binãNDKãANT binãAndroid SDKããŒã«ãAndroid SDKãã©ãããã©ãŒã ããŒã«ãžã®ãã¹ãå«ãŸããŠããå¿ èŠããããŸãã ãã¹ã¯ã»ãã³ãã³ã§åºåãããŸãã
ç°å¢å€æ°ãç·šéãããšãã¯ããã¹ã®æ«å°Ÿã«ç¹æ®æåãã\ããªã©ã®åºåãæåããªãããã«æ³šæããŠãã ããã
äºåãã¬ãŒãã³ã°ãå®äºããã®ã§ã Marmalade SDKãããŠã³ããŒãããŸã ã ç¹ã«ãããŒãã¬ãŒãã³ã¢ã«èå³ããããŸãã ããã±ãŒãžãããŠã³ããŒãããããã®ãªã³ã¯ãæäŸãããåã«ããµã€ãã«ç»é²ããå¿ èŠããããŸãã ã€ã³ã¹ããŒã«åŸãå®éšãéå§ããã«ã¯ãç»é²æã«æå®ããé»åã¡ãŒã«ã«éä¿¡ãããã©ã€ã»ã³ã¹ã³ãŒããå ¥åããå¿ èŠããããŸãã
Marmalade SDKã䜿çšããAndroid x86éçº
Marmalade SDKã«ä»å±ã®HelloWorldãµã³ãã«ãããžã§ã¯ããæ€èšããŠãã ããã ç§ãã¡ã®å Žåããããžã§ã¯ãã¯ããã«ãããŸãïŒCïŒ\ Marmalade \ 8.0 \ examples \ HelloWorldã
HelloWorldãµã³ãã«ãã©ã«ããŒã®å 容
ãã®ãã©ã«ããŒã«ã¯ã2ã€ã®ãã¢ãããžã§ã¯ãçšã®MKBããã³CPPãã¡ã€ã«ãå«ãŸããŠããŸãã 圌ãã¯ãããŒãã¬ãŒããäžçã«æšæ¶ã§ããããŸããŸãªæ¹æ³ã瀺ããŠããŸãã åããããžã§ã¯ãã«é¢é£ãããã¡ã€ã«ã®ååã¯åãã§ãã
MKBãã¡ã€ã«ã«ã¯ãããžã§ã¯ãæ å ±ãå«ãŸããŠããŸãã ããªãã¡ïŒ
- ã³ã³ãã€ã«ãªãã·ã§ã³
- 䜿çšæžã¿ã©ã€ãã©ãªã«é¢ããæ å ±
- ãœãŒã¹ãã¡ã€ã«æ å ±
- ã°ã©ãã£ãã¯ããµãŠã³ãããã®ä»ã®ãªãœãŒã¹ã«é¢ããããŒã¿
- ãããžã§ã¯ãå±éãªãã·ã§ã³
MKBãã¡ã€ã«ã®è©³çŽ°ã¯ãããã¥ã¡ã³ãã«èšèŒãããŠããŸã ã CPPãã¡ã€ã«ã¯ãC ++ã§èšè¿°ããããããžã§ã¯ããœãŒã¹ã³ãŒãã§ãã
ããŒãã¬ãŒããããžã§ã¯ããæäœããã«ã¯ã3ã€ã®æ¹æ³ããããŸãã ãã¹ãŠãMKBãã¡ã€ã«ã«é¢é£ä»ããããŠããŸãã 1ã€ç®ã¯äœ¿çšããIDEã®ãããžã§ã¯ããèªåçã«äœæãããšãã«äœ¿çšããã2ã€ç®ã¯ã³ãã³ãã©ã€ã³ããŒã«ã䜿çšãã3ã€ç®ã¯Marmalade Hubã®äœ¿çšã«åºã¥ããŠããŸãã
Visual Studioã§Marmaladeãããžã§ã¯ããæäœãã
ãã¡ã€ã«IwGxHelloWorld.mkbãããã«ã¯ãªãã¯ããŸãã ã³ãã³ãã©ã€ã³ã€ã³ã¿ãŒãã§ã€ã¹ãéãããŒãã¬ãŒãã¯å€ãã®äœæ¥ãè¡ããæçµçã«ãã®ãã¡ã€ã«ã®é£ã«ããã€ãã®æ°ãããã©ã«ããŒã衚瀺ãããVisual Studioã§IwGxHelloWorld_vc14ãããžã§ã¯ããéããŸãã
Visual Studioã§ãããžã§ã¯ããéã
ãããžã§ã¯ããã³ã³ãã€ã«ããMarmalade x86ã·ãã¥ã¬ãŒã¿ãŒã§å®è¡ããŸãã ãããè¡ãã«ã¯ãã¡ãã¥ãŒã³ãã³ãDebug> IwGxHelloWorld_vc14 Properties ...ãå®è¡ããŸãã
IwGxHelloWorld_vc14ããããã£ããŒã
衚瀺ããããŠã£ã³ããŠã§ã[æ§æãããŒãžã£ãŒ]ãã¿ã³ãã¯ãªãã¯ããŸãã
æ§æãããŒãžã£ãŒãã¿ã³
次ã«ããæ§æããã£ãŒã«ãã§ããx86ãããã°ããªãã·ã§ã³ãéžæããŸãã éãããã¿ã³ãã¯ãªãã¯ããŸãã
ãããžã§ã¯ãæ§æã®ã»ããã¢ãã
Visual Studioã®ã¡ã€ã³ãŠã£ã³ããŠã«æ»ããã¡ãã¥ãŒã³ãã³ã[ãããã°]> [ãããã°ã®éå§]ãå®è¡ããŸãã
ããŒã ã¯ãããžã§ã¯ãã®ãããã°ãéå§ããŸãã
èŠåãŠã£ã³ããŠã衚瀺ããããããã®äžã®[ã¯ã]ãã¿ã³ãã¯ãªãã¯ããŸãã
èŠåãŠã£ã³ããŠ
ãããã°æ å ±ããªãããšãéç¥ãããŠã£ã³ããŠã衚瀺ããããã[ã¯ã]ãã¯ãªãã¯ããŸãã ããã§ãåºåãŠã£ã³ããŠã§ãããžã§ã¯ãã®èµ·åæºåããã»ã¹ãç£èŠããã ãã§ãåŸ ã€ã ãã§ãã ãã¹ãŠãæ£åžžã«å®è¡ãããå ŽåãMarmalade x86 SimulatorãŠã£ã³ããŠãéããHello Worldãå®è¡ãããŸãã
HelloWorldãããžã§ã¯ãããšãã¥ã¬ãŒã¿ã§æ£åžžã«èµ·åããŸããã
ã³ãã³ãã©ã€ã³ãããããžã§ã¯ããæ§ç¯ãã
Marmalade SDKã«ã¯ãã³ãã³ãã©ã€ã³ããMKBãã¡ã€ã«ãåŠçããããã«åŒã³åºãããšãã§ããmkb.batããããã¡ã€ã«ãå«ãŸããŠããŸãã ããã«ãããäœæ¥ãã¹ããŒãã¢ããã§ããŸãã MKBãã¡ã€ã«ã®ååãHello.mkbã§ãããšããŸãã ãã®ãã¡ã€ã«ããããã©ã«ããŒã«ç§»åãã以äžã®ã³ãã³ãã䜿çšããŠããµããŒããããŠãããã¹ãŠã®ãã©ãããã©ãŒã ã®ãããžã§ã¯ããåæ§ç¯ããŸãã
>>mkb.bat Hello.mkb âexecute ârebuild
ç¹å®ã®ãã©ãããã©ãŒã ïŒãã®å Žåã¯Android x86ïŒã®MKBãã¡ã€ã«ã®ãªãã·ã§ã³ã»ã¯ã·ã§ã³ã§äœæ¥ããå¿ èŠãããå Žåã¯ã以äžãè¿œå ã§ããŸãã
option { android-x86 }
ãããžã§ã¯ãã®ãããã°ããŒãžã§ã³ãšãªãªãŒã¹ããŒãžã§ã³ããã«ãããã«ã¯ããããã次ã®ã³ãã³ãã䜿çšã§ããŸãã
>> mkb.bat Hello.mkb --execute --debug >> mkb.bat Hello.mkb --execute --release
ã³ãã³ãã©ã€ã³ããmkb.batãèµ·åããã«ã¯ãã€ã³ã¹ããŒã«ãããMarmaladeã®ã³ããŒã®bin s3eãã©ã«ããŒãžã®ãã¹ãPathç°å¢å€æ°ã«è¿œå ããå¿ èŠããããŸãã ããšãã°ããã¹ã¯æ¬¡ã®ããã«ãªããŸããCïŒ\ Marmalade \ 8.0 \ s3e \ binã
ããŒãã¬ãŒãããã䜿çšãã
Marmalade SDKãã€ã³ã¹ããŒã«ãããšãMarmalade Hubãã·ã¹ãã ã«ã€ã³ã¹ããŒã«ãããŸãã ããã¯ãããžã§ã¯ãèªååããŒã«ãããã§ãã ãããå®è¡ããæåã®ããŒãžã§[æ°ãããããžã§ã¯ãã®äœæ]ã³ãã³ããéžæããŸãã
ããŒãã¬ãŒãããã§æ°ãããããžã§ã¯ããäœæãã
æ°ãããããžã§ã¯ããäœæããããã®ãŠã£ã³ããŠã衚瀺ãããŸãïŒ
æ°ãããããžã§ã¯ããäœæããããã®ãŠã£ã³ããŠ
ããã§ã¯ã次ã®ãã£ãŒã«ãã«èå³ããããŸãã
- [ã¿ã€ã]ãã£ãŒã«ãã§ã[Core C ++]ãéžæããŸãã
- [åå]ãã£ãŒã«ãã«ããããžã§ã¯ãã®ååãå ¥åããŸãã
- [å Žæ]ãã£ãŒã«ãã§ããããžã§ã¯ããã£ã¬ã¯ããªãæå®ããŸãã
- [ãã³ãã¬ãŒã]ãã£ãŒã«ãã§ã空ã®C ++ãã³ãã¬ãŒããéžæããŸãã
ãããã®èšå®ãå®äºãããã[äœæ]ãã¿ã³ãã¯ãªãã¯ããŸãã ãããžã§ã¯ããäœæãããMarmalade HubãŠã£ã³ããŠã«æ°ããããã¯ããŒã¯ãéããŸãã
ããŒãã¬ãŒããããŠã£ã³ããŠã®æ°ãããããžã§ã¯ã
Android x86ãã©ãããã©ãŒã ã«é¢å¿ãããã®ã§ã[å±éã®äœæ]ãã¿ã³ãã¯ãªãã¯ãã衚瀺ããããŠã£ã³ããŠã§å±éãã©ã¡ãŒã¿ãŒãæ§æããŸãã
ãããžã§ã¯ãå±éãªãã·ã§ã³ã®èšå®
ã€ãŸããPlatformãã£ãŒã«ãã§AndroidãéžæãããµããŒããããŠããã¢ãŒããã¯ãã£ã®ãªã¹ãã§GCC X86 ANDROIDã瀺ããŸãã [次ãž]ãã¿ã³ãã¯ãªãã¯ããŸãã 次ã®ãŠã£ã³ããŠã§ãããã±ãŒãžã®ååãšããŒãžã§ã³ã瀺ãããã«æ±ããããŸãã ããã©ã«ãå€ã¯å€æŽããŸãããäœæãã¿ã³ãã¯ãªãã¯ããŠãã ããã
ç®çã®ã¢ãŒããã¯ãã£ã®ãããžã§ã¯ããäœæãããŸãã ããã§ããšãã¥ã¬ãŒã¿ã§å®è¡ã§ããããã«ãªããŸããããã®ããã«ã¯ã[ãããžã§ã¯ã]ã¿ããéžæãããšãã«äœ¿çšå¯èœãªã·ãã¥ã¬ãŒã¿ãã¿ã³ã§ããŸãã¯ããã€ã¹ã§[å®è¡]ãã¿ã³ã䜿çšããŸãã ãã¡ãããé©åãªã¢ãŒããã¯ãã£ã®Androidããã€ã¹ãã³ã³ãã¥ãŒã¿ãŒã«æ¥ç¶ãããŠããŠãã¢ããªã±ãŒã·ã§ã³ã®USBãããã°ã®æºåãã§ããŠããããšãæ¡ä»¶ãšããŸãã
ããã€ã¹ã«ãããžã§ã¯ããå±éããŠå®è¡ããã«ã¯ïŒãã®å Žåãããã¯Intel Atom Z3530 CPUããŒã¹ã®ASUS Fonepad 8ã¿ãã¬ããã§ãïŒã[ããã€ã¹ã«ã€ã³ã¹ããŒã«ããŠå®è¡]ãã¿ã³ãã¯ãªãã¯ããŸãã ãããžã§ã¯ããæ£åžžã«ã€ã³ã¹ããŒã«ããã³èµ·åãããå Žåãç·è²ã§è¡šç€ºãããã¹ããŒã¿ã¹ããŒã®ã¡ãã»ãŒãžããããã確èªã§ããŸãã
Androidããã€ã¹ã§ãããžã§ã¯ããæ£åžžã«ã€ã³ã¹ããŒã«ããŠå®è¡ãã
ããŒãã¬ãŒããããžã§ã¯ããããã€ã¹ã§éå§ãããŸãã
Marmalade SDKã䜿çšããŠäœæãããã¢ããªã±ãŒã·ã§ã³ãããã€ã¹ã§å®è¡ãããŠããŸã
ãããžã§ã¯ã.SOããã³.OBJãã€ããªã¯ãCïŒ\ MarmaladeTest \ HelloWorld \ build_helloworld_vc14 \ Debug_HelloWorld_vc14_gcc_x86_androidã«ãããŸãã ãããã¯ãããããHelloWorld.soãšHelloWorld.objã§ãã
çæããããããžã§ã¯ãAPKãã¡ã€ã«ïŒHelloWorld.apkïŒã¯ãCïŒ\ MarmaladeTest \ HelloWorld \ deployments \ HelloWorld.0.gcc_x86_androidã«ãããŸãã Marmalade SDK 8.0ã¯ãAndroidãã©ãããã©ãŒã ã®ç¹å®ã®ããŒãžã§ã³çšã®åå¥ã®APKãã¡ã€ã«ã®äœæãšãããŸããŸãªãã©ãããã©ãŒã çšã®ã©ã€ãã©ãªã®ããŒãžã§ã³ãå«ããŠãããŒãµã«ãã¡ã€ã«ïŒèèªãã€ããªïŒã®äž¡æ¹ããµããŒãããŠããŸãã Google Playã«ãããžã§ã¯ããé 眮ãããšã ããŸããŸãªãã©ãããã©ãŒã çšã® APKãã¡ã€ã«ã®ããŸããŸãªããŒãžã§ã³ãããŠã³ããŒãã§ããŸãã
ã²ãŒã ãšã³ãžã³ShiVa3D
泚ïŒããã§èª¬æãããŠããã®ãšåãããŒãžã§ã³ã®ãšã³ãžã³ãé¢é£ããŠããããããã¹ãŠããã®ãŸãŸã«ããŸããã çŽ æã®ãã¶ã€ã³ãšè¡šç€ºããããã«å€æŽããŸããã
ShiVa3Dã¯ã3次å ã²ãŒã ãéçºããããã®ããŒã«ã®ã»ããã§ãã ãã®äžã®ãã¹ãŠããã®ç®æšãç®æããŠããŸãã ç¹ã«ãWebãã²ãŒã ã³ã³ãœãŒã«ãã¢ãã€ã«ããã€ã¹çšã®ã²ãŒã ãã¢ããªã±ãŒã·ã§ã³ãäœæããããã«èšèšãããã°ã©ãã£ã«ã«ãšãã£ã¿ãŒãè£ åãããŠããŸãã ã€ãŸããShiVa3Dã䜿çšããŠãWindowsãMac OSãLinuxãiPhoneãiPadãBlackBerry Tablet OS / BlackBerry 10ãAndroidãPalm OSãWiiãWebOSåãã®ã¢ããªã±ãŒã·ã§ã³ãäœæã§ããŸãããããã¯ãã¹ã¿ã³ãã¢ãã³ã¢ããªã±ãŒã·ã§ã³ããã³Webãã©ãŠã¶ãŒã§å®è¡ãããã¢ããªã±ãŒã·ã§ã³ã§ãã
ãšã³ãžã³ã¯OpenGLãOpenGL ESããŸãã¯DirectXã䜿çšããŠãããã°ã©ã ã«ããã°ã©ãã£ãã¯åºåãå®è¡ã§ããŸãã ShiVa3Dã¯ãæ¥çæšæºãšãªã£ããã©ã°ã€ã³ãç¹ã«NVIDIA PhysXãFMODãµãŠã³ããšARToolKitãæäœããããã®ã©ã€ãã©ãªããµããŒãããŠããŸãã
ShiVa3D Web Editionã¯ãå®éšã«äœ¿çšã§ããå®å šãªç¡æããŒãžã§ã³ã§ãã
åè¿°ã®ãšãã£ã¿ãŒã«å ããŠãShiVa3Dã¯ãWindowsãMac OSãLinuxãiPhoneãiPodãiPadãAndroidãBlackBerry QNXãPalmã®ãšãã£ã¿ãŒã§äœæããããããžã§ã¯ããäœæããããã®ããŒã«ã§ããShiVa3DãªãŒãµãªã³ã°ããŒã«ãæäŸããŸãã
ShiVa3Dãã€ã³ã¹ããŒã«ãã
ShiVa3Dãã€ã³ã¹ããŒã«ããåã«ãæºåããå¿ èŠããããŸãã äžè¬çã«ã以äžã®è¿œå ããŒã«ã®ãªã¹ãã¯ãMarmalade SDKã®ã€ã³ã¹ããŒã«ã®æºåã§äžã§æ€èšãããã®ã«å¯Ÿå¿ããŠããŸãããShiVa3Dã«åºæã®ç¹å¥ãªèŠä»¶ãããã€ããããŸãã ã€ãŸãã次ã®ãã®ãå¿ èŠã«ãªããŸãã
- Windows 7以é
- Androidéçºç°å¢
- Android NDK;
- Cygwin ãã®ã¢ããªã±ãŒã·ã§ã³ã䜿çšãããšãLinuxã¹ã¿ã€ã«ã®äœæ¥ç°å¢ãWindowsã§æŽçã§ããŸãã Cygwinãã€ã³ã¹ããŒã«ãããšãã次ã®ããã±ãŒãžãéžæããŠã€ã³ã¹ããŒã«ããå¿ èŠããããŸãïŒautoconfãautomakeãbinutilsãgcc-coreãgcc-g ++ãgcc4-coreãgcc4-g ++ãgdbãpcreãpcre-develãgawkãmakeãpython å¿ ãGNUããŒãžã§ã³ã®makeãéžæããŠãã ãããéžæããªããšãNDKã䜿çšããŠãããžã§ã¯ãããã«ãã§ããŸããã
- Java JDK;
- Apache Ant;
- Microsoft Visual Studio C ++;
ç°å¢å€æ°ã確èªãã䟡å€ããããŸããäžèšã®ããŒã«ãã€ã³ã¹ããŒã«ãããšãã«ç°å¢å€æ°ãæ£ããæ§æãããŠããªãå Žåã¯ããããä¿®æ£ããŠãã ããã
- ANDROID_SDK_ROOTå€æ°ã«ã¯ãAndroid SDKãã©ã«ããŒãžã®ãã«ãã¹ãå«ãŸããŠããå¿
èŠããããŸãã ãã®å ŽåãSDKã¯Intel INDEã®äžéšãšããŠã€ã³ã¹ããŒã«ããããã®å€æ°ã¯æ¬¡ã®ããã«ãªããŸããCïŒ\ Intel \ INDE \ IDEintegration \ SDK
- ANDROID_NDK_ROOTå€æ°ã¯ãããããAndroid NDKãã©ã«ããŒãæããŠããå¿
èŠããããŸãã ç§ãã¡ã®å Žåãããã¯CïŒ\ Intel \ INDE \ IDEintegration \ NDKã§ã
- ANT_HOMEå€æ°ã¯ãApache ANTãã©ã«ããŒãæããŠããå¿
èŠããããŸãã ããšãã°ã次ã®ããã«ãªããŸããCïŒ\ ant \ apache-ant-1.9.6
- Pathå€æ°ã«ã¯ããšããããJDKãJDK binãNDKãCygwin binãANT binãAndroid SDKããŒã«ãAndroid SDKãã©ãããã©ãŒã ããŒã«ãžã®ãã¹ãå«ãŸããŠããå¿ èŠããããŸãã ãã¹ã¯ã»ãã³ãã³ã§åºåãããŸãã
ç°å¢å€æ°ãç·šéãããšãã¯ããã¹ã®æ«å°Ÿã«ç¹æ®æåãã\ããªã©ã®åºåãæåããªãããšã確èªããå¿ èŠãããããšãæãåºããŠãã ããã
ããã§ShiVa3DãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ããæºåãã§ããŸããã ç¹ã«ãShiVa3D Web Editionã«é¢å¿ããããŸãã
ããã±ãŒãžã«ã¯å€ãã®äŸãå«ãŸããŠããŸããæåã®å®éšã§ã¯ããã®ãã¡ã®1ã€ãããŠã³ããŒãã§ããŸãã ãããè¡ãã«ã¯ãShiVa Editorãèµ·åããåŸãã¡ã€ã³ãŠã£ã³ããŠã®[ã²ãŒã ãšãã£ã¿ãŒ]ã»ã¯ã·ã§ã³ã«ãã[ã²ãŒã ãéã]ãŸãã¯[ãããããã]ãã¿ã³ã䜿çšããå¿ èŠããããŸãã ã²ãŒã ãããžã§ã¯ãã®ãªã¹ããå«ã[éã]ãŠã£ã³ããŠãéããŸãã å®éšçšã®ã²ãŒã ãããžã§ã¯ããèŠã€ãããšä»®å®ããŠãShiVa3Dãšãã£ã¿ãŒã䜿çšããŠãããžã§ã¯ãããšã¯ã¹ããŒãããæé ãæ€èšããŠãã ããã
ãããžã§ã¯ããSTKãã¡ã€ã«ã«ãšã¯ã¹ããŒã
ã³ãã³ãGeneral> Game Editor> Game> Exportãå®è¡ããŠããšã¯ã¹ããŒãæé ãéå§ããŸãã
ShiVa3Dã§ãããžã§ã¯ãã®ãšã¯ã¹ããŒãæé ãéå§ãã
ãšã¯ã¹ããŒããããã¢ããªã±ãŒã·ã§ã³ã®ååïŒååïŒãšããŒãžã§ã³ïŒããŒãžã§ã³ïŒãå ¥åããŠã衚瀺ããããŠã£ã³ããŠã®ãã£ãŒã«ãã«å ¥åããŸãã ãšã¯ã¹ããŒãã®çµæãšããŠååŸããããã¡ã€ã«ã®å Žæãæå®ããŸãã ãã®å Žåããã©ã«ããŒDïŒ\ ShiVa3D_prog \ game_exportã䜿çšãããŸãã ä»ã®ãã©ã«ãã䜿çšã§ããŸãã
ãšã¯ã¹ããŒãèšå®ãæ§æãã
åºåã¯åäžã®STKãã¡ã€ã«ã§ããå¿ èŠããããã©ã³ã¿ã€ã ããã±ãŒãžãã©ã°ããããæ åœããããšã«æ³šæããŠãã ããã
ShiVa 3DãªãŒãµãªã³ã°ããŒã«ã䜿çšããŠã¢ããªã±ãŒã·ã§ã³ãã³ã³ãã€ã«ãã
ãããžã§ã¯ãããšã¯ã¹ããŒãããåŸãShiVa EditorãéããŠãShiVa 3DãªãŒãµãªã³ã°ããŒã«ãèµ·åããŸãã
ShiVa 3DãªãŒãµãªã³ã°ããŒã«ãŠã£ã³ããŠ
ãŠã£ã³ããŠã®å·ŠåŽã§ãAndroidã¢ã€ãã ãããã«ã¯ãªãã¯ããŠéžæããŸãã
AndroidãéžæããåŸã®ShiVa 3DãªãŒãµãªã³ã°ããŒã«ãŠã£ã³ããŠ
åã«ãšã¯ã¹ããŒãããã¢ããªã±ãŒã·ã§ã³ãã€ã³ããŒãããŸãã ãããè¡ãã«ã¯ããã®ãŠã£ã³ããŠã®é©åãªãã£ãŒã«ãã«å ¥åããç®çã®ãã¡ã€ã«ãžã®ãã¹ã瀺ããŸãã ããã§ãã¢ããªã±ãŒã·ã§ã³ã¢ã€ã³ã³ã®ç»åãéå§ç»é¢ã®ç»åãè¿œå ã§ããŸãã
ãã¡ã€ã«ãéžæããŠãããžã§ã¯ããäœæããŸã
ãŠã£ã³ããŠã®å³äžã«ãã[èšå®]ãã¿ã³ãã¯ãªãã¯ãããšãèšå®ç»é¢ãéããŸãã
èšå®ãŠã£ã³ããŠ
ãã®ãŠã£ã³ããŠã®é©åãªãã£ãŒã«ãã§ãã¢ããªã±ãŒã·ã§ã³ã®æºåã«å¿ èŠãªããŸããŸãªãœãããŠã§ã¢ããŒã«ãžã®ãã¹ãæå®ããå¿ èŠããããŸãã ãã®äžã«ã¯ãCygwinãAndroid NDKãªã©ããããŸãã
ããŒã¿å ¥åãå®äºãããã[OK]ãã¯ãªãã¯ããShiVa 3DãªãŒãµãªã³ã°ããŒã«ã®ã¡ã€ã³ãŠã£ã³ããŠã«æ»ã£ãŠã[ã¹ããã2ïŒãªãŒãµãªã³ã°]ã¿ããã¢ã¯ãã£ãã«ããŸãã
[ã¹ããã2ïŒãªãŒãµãªã³ã°]ã¿ãã«ç§»åãã
ããã«ã¢ããªã±ãŒã·ã§ã³ããã±ãŒãžã®ååãå ¥åããŸãã
ã¹ããã2ã®äœ¿çšïŒãªãŒãµãªã³ã°ã¿ã
[ã¹ããã3ïŒãã«ã]ã¿ãã«ç§»åããŸãã ããã§ãã¢ã»ã³ããªãã©ã¡ãŒã¿ãèšå®ã§ããŸãã ããªãã¡-Androidã®æå°ããŒãžã§ã³ãã¿ãŒã²ãããã©ãããã©ãŒã ïŒãã®å Žåã¯x86ïŒãåºåãã£ã¬ã¯ããªã
[ã¹ããã3ïŒãã«ã]ã¿ãã§ã¢ããªã±ãŒã·ã§ã³ã®ãã«ããªãã·ã§ã³ãæ§æãã
é©åãªå€ãèšå®ããããç»é¢ã®å³äžã«ãã[ãã«ã]ãã¿ã³ãã¯ãªãã¯ããŸãã ãã¹ãŠããŸãããã°ãã·ã¹ãã ã¯ãããå ±åããŸãã
ã¢ããªã±ãŒã·ã§ã³ã®æ£åžžãªã³ã³ãã€ã«
ShiVa3Dã䜿çšããå ŽåãGUIããŒã«ã§ããShiVa 3DãªãŒãµãªã³ã°ããŒã«ã®äœ¿çšã«å¶éãããŸãã ã³ãã³ãã©ã€ã³ãµããŒãã¯ããã§ã¯æäŸãããŸããã x86ãã©ãããã©ãŒã çšã«èšèšãããã¢ããªã±ãŒã·ã§ã³ãæºåããããã®ãªãŒãµãªã³ã°ããŒã«ã®èšå®ã«ã€ããŠãããã«è©³ããæ€èšããŠã¿ãŸãããã
x86çšã®ShiVa 3DãªãŒãµãªã³ã°ããŒã«ã®æ§æ
- ShiVa Editorã§ã¢ããªã±ãŒã·ã§ã³ãäœæãããšã¯ã¹ããŒãããŸãã ãããžã§ã¯ããã¡ã€ã«åã«ç¹ã«æ³šæããŠãã ããã ã©ãã³ã¢ã«ãã¡ãããã®å€§æåãšå°æåïŒazãŸãã¯AZïŒãæ°åïŒ0-9ïŒãã¢ã³ããŒã¹ã³ã¢ïŒ_ïŒãå«ããããšãã§ããŸãã ãã¡ã€ã«åã®ä»ã®æåã¯ãã³ã³ãã€ã«æ®µéã§ãšã©ãŒã«ãªããŸãã ã²ãŒã ãããžã§ã¯ãã¯ãæåã«ShiVa Editorã䜿çšããŠãšã¯ã¹ããŒããã次ã«ShiVa Authoring Toolã䜿çšããŠåŠçããå¿
èŠãããããšãèæ
®ããããšãéèŠã§ãã
- ShiVa 3DãªãŒãµãªã³ã°ããŒã«ãéããAndroidã¢ã€ãã ãããã«ã¯ãªãã¯ããŸãã ããããã¯ãäžèšã®ã¬ã€ããããã€ãã®éããšãšãã«äœ¿çšã§ããŸãã ã€ãŸãããã¹ããã2ïŒãªãŒãµãªã³ã°ãã¿ããéããŠãããšããããã«ããªãŒãµãªã³ã°ã®çš®é¡ããã£ãŒã«ãã衚瀺ãããŸãã
ãªãŒãµãªã³ã°ã¿ã€ããã£ãŒã«ã
ããã©ã«ãã§ã¯ããã®ãã£ãŒã«ãã¯APKããã±ãŒãžã«èšå®ãããŠããŸãã ããã€ã¹ã«ããã«ã€ã³ã¹ããŒã«ã§ããã¢ããªã±ãŒã·ã§ã³ã®APKããã±ãŒãžã ãã§ååãªå Žåã¯ããã®ãã£ãŒã«ãã®å€ãå€æŽããªãã§ãã ããã
ãããã®èšå®ã§ã¯ãè¿œå ã®ãã¡ã€ã«ã¯åä¿¡ãããªãããšã«æ³šæããŠãã ããã ãã¡ããããããã¯ããã±ãŒãžãçµã¿ç«ãŠãããã»ã¹ã«ååšããŸãããäžæãã©ã«ããŒã«ä¿åãããäžèŠã«ãªã£ãå Žåã¯åé€ãããŸãã
APKããã±ãŒãžã§ã¯ãªããœãŒã¹ãã¡ã€ã«ãå¿ èŠãªå Žåã¯ã[äœæã®çš®é¡]ãã£ãŒã«ãã§[ãããžã§ã¯ã]ãéžæããŸãã ãã®çµæããããžã§ã¯ãã®ãœãŒã¹ãã¡ã€ã«ãå«ãZIPãã¡ã€ã«ãçæãããŸãããAPKãã¡ã€ã«ã¯äœæãããŸããã
ã³ã³ãã€ã«äžã«çæããããã¡ã€ã«ïŒAPKãŸãã¯ZIPïŒãæ ŒçŽããããã©ã«ããŒã¯ã[åºåãã©ã«ããŒ]ãã£ãŒã«ãã®[ã¹ããã3ïŒãã«ã]ã¿ãã§èšå®ãããŸãã ãã®ãã£ãŒã«ãã«å°éããã«ã¯ãã¹ã¯ããŒã«ããŒã䜿çšããå¿ èŠããããŸãã
ãã£ãŒã«ãåºåãã©ã«ããŒ
ãã®ãã£ãŒã«ãã«å ¥åããã«ã¯ãå³åŽã®ãã©ã«ãã¢ã€ã³ã³ã䜿çšããŠç®çã®ãã£ã¬ã¯ããªãèŠã€ããããæåã§ãã«ãã¹ãå ¥åããŸãã
ãããžã§ã¯ãã®ã¿ãŒã²ããã³ã³ãã€ã«ãã©ãããã©ãŒã ãéžæããã«ã¯ã[ã¹ããã3ïŒãã«ã]ã¿ãã®[CPUãµããŒã]ãã£ãŒã«ãã䜿çšããŸãã [åºåãã©ã«ããŒ]ãã£ãŒã«ãã®äžã«ãããŸãã ããã©ã«ãã§ã¯ãããã©ã«ãã«èšå®ãããŠããŸãã ãã©ã°ã©ãx86ã«èå³ããããŸãã
ã¿ãŒã²ãããã©ãããã©ãŒã ã®éžæ
ã¢ããªã±ãŒã·ã§ã³ãåäœããããã«å¿ èŠãªAndroidã®æå°ããŒãžã§ã³ãæ§æããæå°OSãµããŒããã£ãŒã«ãã§9æªæºã®APIããŒãžã§ã³ãèšå®ãããšããšã©ãŒãçºçããå ŽåããããŸãã
Android APIã®æå°ããŒãžã§ã³ã®éžæ
ãããžã§ã¯ãã®ã³ã³ãã€ã«ããçãããã¡ã€ã«ã«ã€ããŠ
å ã»ã©èª¬æããããšããã¹ãŠèæ ®ããåŸãShiVa3Dã²ãŒã ãx86ãã©ãããã©ãŒã çšã«ã³ã³ãã€ã«ããæºåãæŽããŸããã åºåã§äœãèµ·ãããã¯ãéžæãããªãŒãµãªã³ã°ã¿ã€ãã®ãªãã·ã§ã³ïŒAPKããã±ãŒãžãŸãã¯ãããžã§ã¯ãã«ãã£ãŠç°ãªããŸãã ãã ãããããã®å Žåãããã¡ã€ã«ã¯æå®ãããåºåãã£ã¬ã¯ããªã«ãããŸãã ãã©ã«ããŒã¯æ¬¡ã®ã¢ãã¬ã¹ã«ãããŸãïŒDïŒ\ ShiVa3D_prog \ authoring_tool_outputã
APKããã±ãŒãžãªãã·ã§ã³ãéžæãããšã1ã€ã®.apkãã¡ã€ã«ãå«ãŸããŸãã
DïŒ\ ShiVa3D_prog \ authoring_tool_output \ FistApp_1-debug.apk
[ãããžã§ã¯ã]ãéžæãããšããã¡ã€ã«ã1ã€ã«ãªããŸãããä»åã¯æ¡åŒµå.zipãä»ããŸãã
DïŒ\ ShiVa3D_prog \ authoring_tool_output \ FistApp_1_Android.zip
ãã®ã¢ãŒã«ã€ãã«ã¯ããã€ããªããããã§ã¹ããã¡ã€ã«ãã¡ã€ã¯ãã¡ã€ã«ããªãœãŒã¹ãããã³ãããžã§ã¯ããã«ããã¡ã€ã«ãå«ãŸããŠããŸãã
çµè«
ãã®ã¬ã€ãã§ã¯ãAndroid x86ãã©ãããã©ãŒã ãäžå¿ã«ãMarmalade SDKããã³ShiVa 3Dã䜿çšããæåã®ã¹ããããå®è¡ããæ¹æ³ãåŠã³ãŸããã ç¬èªã®ã¢ãã€ã«ã²ãŒã ã®äœæãæ€èšããŠããå Žåãããããããããã®ããŒã«ã®1ã€ããŸãã«å¿ èŠãªãã®ã«ãªãã§ãããã
å ã®èšäºã¯ãã¡ãã§ãã