ãããŸã§ã®ãšããããã®æ¡åŒµæ©èœã¯ãã¿ãŒã²ããLinuxãã·ã³ã§ã®ãªã¢ãŒããã«ãã®ã¿ããµããŒãããŠããŸãã Linuxãã£ã¹ããªãã¥ãŒã·ã§ã³ã«å¶éã¯ãããŸããããç¹å®ã®ããŒã«ãã·ã¹ãã ã«ã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã ç¹ã«ãopenssh-serverãg ++ãgdbãããã³gdbserverãå¿ èŠã§ãã ä»»æã®ããã±ãŒãžãããŒãžã£ãŒã䜿çšããŠã€ã³ã¹ããŒã«ããŸãã ããšãã°ãDebianããŒã¹ã®ã·ã¹ãã ã§ã¯ã次ã®ã³ãã³ãã䜿çšã§ããŸãã
sudo apt-get install openssh-server g++ gdb gdbserver
ç®æ¬¡
- èšçœ®
- VSã§ã®æåã®Linuxãããžã§ã¯ã
- Linuxãããžã§ã¯ãã®ããããã£
- ã³ã³ãœãŒã«ãŠã£ã³ããŠ
- Linuxçšã®IoTãããžã§ã¯ã
- Linuxæ¡åŒµæ©èœã®VC ++ãä»ããŠIntel EdisonããŒããæäœããæ¹æ³
- ã¯ã©ã·ãã¯ã¢ããª
- Makefileãããžã§ã¯ããã³ãã¬ãŒã
- 䜿ãæ¹ã®ãã³ã
- 詳现ãªãã«ããã°
- æ¥ç¶ããããã¡ã€ã«ãååŸããå Žæ
- åé€ããããã¡ã€ã«ã®ã³ããŒã管çãã
- C / C ++ã³ã³ãã€ã©ãã¹ã®ãªãŒããŒã©ã€ã
- ãã«ãã€ãã³ã
- ãããã°ãªãã·ã§ã³
- 䟿å©ãªãªã³ã¯
èšçœ®
Linuxéçºæ¡åŒµæ©èœçšã®Visual C ++ãããŠã³ããŒãããããVisual Studio Extension Managerã䜿çšããŠã€ã³ã¹ããŒã«ããŸãã
éå§ããã«ã¯ãæ°ãããããžã§ã¯ããäœæãã [ãã³ãã¬ãŒã]> [Visual C ++]> [ã¯ãã¹ãã©ãããã©ãŒã ]> [Linux]ãéžæããŸãã
çŸåšã3ã€ã®ãã³ãã¬ãŒããå©çšå¯èœã§ãïŒç¹æ» ïŒIoTããã€ã¹ã®å Žå-Raspberry Piãªã©ïŒãã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ïŒã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ãã³ãŒãã®ã»ãšãã©ç©ºã®ãã¬ãŒã ã¯ãŒã¯ïŒãããã³ç©ºïŒãœãŒã¹ãã¡ã€ã«ãšèšå®ãèªåã§è¿œå ããããã®ç©ºã®ãã³ãã¬ãŒãïŒã
VSã§ã®æåã®Linuxãããžã§ã¯ã
ãŸããã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ãäœæããŸãã ãã®ãã³ãã¬ãŒãã«åºã¥ããŠãããžã§ã¯ããäœæããprintfè¡ã«ãã¬ãŒã¯ãã€ã³ããè¿œå ããŸãã 次ã«F5ãæŒããããªã¢ãŒãGDBãããã¬ãŒãã¿ã³ãã¯ãªãã¯ããŸãã ããã©ã«ãã§ã¯ãã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³çšã«debug / x64æ§æãéžæãããŸãã ãªã¢ãŒãã¿ãŒã²ããã³ã³ãã¥ãŒã¿ã®ã¢ãŒããã¯ãã£ãx86ãŸãã¯ARMã®å Žåããããã®èšå®ãå€æŽããå¿ èŠããããŸãã ãã®äŸã§ã¯ãx64 Ubuntuä»®æ³ãã·ã³ã䜿çšããŸãã
Linuxã³ã³ãã¥ãŒã¿ãŒçšã®ãœãªã¥ãŒã·ã§ã³ãæ§ç¯ããã®ã¯ãããåããŠãªã®ã§ãç°å¢ã¯æ¥ç¶æ å ±ãèŠæ±ããŸãã ãããžã§ã¯ãããã«ãããããšãããšã察å¿ãããã©ãŒã ãéããŸãã
ã¢ããªã³ã¯ã蚌ææžä»ãã®ãã¹ãã¬ãŒãºãä»ãããã®ãå«ãããã¹ã¯ãŒããŸãã¯èšŒææžã®æ¿èªããµããŒãããŸãã æåããæ¥ç¶æ å ±ã¯ãå°æ¥ã®æ¥ç¶ã®ããã«ä¿åãããŸãã ä¿åãããæ¥ç¶ã管çããã«ã¯ã ããŒã«âãªãã·ã§ã³âã¯ãã¹ãã©ãããã©ãŒã âLinuxãéžæããŸã ã ã¯ãããã¹ã¯ãŒããšãã¹ãã¬ãŒãºã¯æå·åããã圢åŒã§ä¿åãããŸãã ä»åŸã®æŽæ°ã§ã¯ãããŒã¿ãä¿åããã«æ¥ç¶ããæ©èœãè¿œå ããäºå®ã§ãã
æ¥ç¶åŸããœãŒã¹ãã¡ã€ã«ããªã¢ãŒãLinuxã³ã³ãã¥ãŒã¿ãŒã«ã³ããŒãããæ¡åŒµæ©èœãgccãå®è¡ããŠããããžã§ã¯ãããããã£ã§æå®ããããã©ã¡ãŒã¿ãŒã§ãã«ãããŸãã ã¢ã»ã³ããªãæ£åžžã«å®äºãããšãã³ãŒãã¯ãªã¢ãŒããã·ã³ã§å®è¡ããã以åã«èšå®ããããã¬ãŒã¯ãã€ã³ãã«å°éãããŸã§æ©èœããŸãã
Linuxãããžã§ã¯ãã®ããããã£
ãªã¢ãŒãLinuxã³ã³ãã¥ãŒã¿ãŒã®ã©ãã«ãã¡ã€ã«ããããã€ãããŠããããç解ããã«ã¯ããããžã§ã¯ãã®ããããã£ãèŠãŠãã ããã
ãªã¢ãŒãèšå®ã§ç€ºãããŠããããã«ãããã©ã«ãã§ã¯ã/ projects /ãã£ã¬ã¯ããªã¯ãªã¢ãŒãã³ã³ãã¥ãŒã¿ãŒã®ã«ãŒããã©ã«ããŒãšããŠäœ¿çšããããªã¢ãŒããããžã§ã¯ããã£ã¬ã¯ããªã®ååã¯ãããžã§ã¯ãã®ååã«å¯Ÿå¿ããŸãã ãªã¢ãŒãLinuxã³ã³ãã¥ãŒã¿ãŒã®ãã£ã¬ã¯ããªã®å 容ãèŠããšãmain.cppãšããã«ãããã»ã¹äžã«çæããããã¡ã€ã«ãã/ projects / ConsoleApplication1ãã©ã«ããŒã«ãããŸãã
ãäžè¬ãã»ã¯ã·ã§ã³ã«ã¯ãåºåãã£ã¬ã¯ããªãšäžéãã¡ã€ã«ãžã®ãã¹ã衚瀺ãããŸãã ããã«ãã芧ã®ãšãããã¢ããªã±ãŒã·ã§ã³æ§æã¿ã€ãããããžã§ã¯ãã«èšå®ãããŠããŸãã ãããã£ãŠãå®è¡å¯èœãã¡ã€ã«ã¯ãConsoleApplication1.outãšããååã§bin / x64 / Debug /ãã£ã¬ã¯ããªã«ä¿åãããŸãã 泚ïŒä»ã®2çš®é¡ã®æ§æ-éçã©ã€ãã©ãªãšåçã©ã€ãã©ãªã䜿çšã§ããŸãã
ã³ã³ãœãŒã«ãŠã£ã³ããŠ
ã³ã³ãœãŒã«ãŠã£ã³ããŠãããªã¢ãŒãã®å®è¡å¯èœãã¡ã€ã«ãæäœã§ããŸãã ãã®ãŠã£ã³ããŠã§ã¯ãããã°ã©ã ã®çµæã衚瀺ããå ¥åããŒã¿ãå ¥åã§ããŸãã ãã®ãŠã£ã³ããŠãã¢ã¯ãã£ãã«ããã«ã¯ã[ ãããã°]â [ Linuxã³ã³ãœãŒã«]ãéžæããŸãã ããã¯å®éã«ã©ã®ããã«èŠãããã§ãã
以äžã¯ç°¡åãªããã°ã©ã ã®ã³ãŒãã§ã-ããã䜿çšããŠèªåã§ã³ã³ãœãŒã«ãæäœããŸãã
#include <cstdio> void log(char filename[], char visitor[]) { FILE * pLog; pLog = fopen(filename, "a"); if (pLog != NULL) { fputs(visitor, pLog); fputs("\n", pLog); fclose(pLog); } } int main(int argc, char* argv[]) { if (argc != 2) { printf("Please pass filename as input parameter\n"); return 1; } char input[20]; printf("What IDE are you using?\n"); scanf("%19[0-9a-zA-Z ]", input); printf("%s! You can use that with me?!\n", input); log(argv[1], input); return 0; }
[ãããã°]ããŒãžã®ãããžã§ã¯ãããããã£ã®[ã³ãã³ãåŒæ°]ãã£ãŒã«ãã§ããã¡ã€ã«åãæå®ããŸãã äœããã®çç±ã§ããŒã ãã£ã¬ã¯ããªãé©åã§ãªãå Žåããã®ããŒãžã§äœæ¥ãã©ã«ããå€æŽããããšãã§ããŸãã
Linuxçšã®IoTãããžã§ã¯ã
ããã§ã¯ãã¢ãã®ã€ã³ã¿ãŒãããããã€ã¹ã§ããRaspberry Piã§ã®äœæ¥ãèŠãŠã¿ãŸãããã ãã®æ¡åŒµæ©èœã¯ãRaspbianãå®è¡ããŠãããã¹ãŠã®Piããã€ã¹ããµããŒãããŸãã Blinkãã³ãã¬ãŒãã§ã¯ãwiringPiã䜿çšããŸãããã®ãããªã·ã¹ãã ããªãå Žåã¯ãaptãŸãã¯ãœãŒã¹ã³ãŒãããã€ã³ã¹ããŒã«ã§ããŸãã æ¥ç¶ãè¿œå ããã«ã¯ã ããŒã«âãªãã·ã§ã³ãéžæããæ€çŽ¢ãã£ãŒã«ãã«Linuxãšå ¥åããŸãã [è¿œå ]ãã¯ãªãã¯ããŠãRaspberry Piããã€ã¹ã«æ¥ç¶ããŸãã
ãããžã§ã¯ãããããã£ãéãã[ãã«ãã€ãã³ã]ã»ã¯ã·ã§ã³ã§ã[ãªã¢ãŒããã¹ããã«ãã€ãã³ã]ã«ããŽãªãèŠã€ããŸãã
ãããã®ãã©ã¡ãŒã¿ãŒã§ã¯ãã¢ã»ã³ããªã®å®äºåŸã«ãªã¢ãŒãLinuxã³ã³ãã¥ãŒã¿ãŒã§ã³ãã³ãã®å®è¡ãæå®ã§ããŸãã ãã®ãã³ãã¬ãŒãã¯ãæåã¯LEDã€ã³ãžã±ãŒã¿ãŒã®GPIOãã³ããšã¯ã¹ããŒãããããã«æ§æãããŠããŸã-ããã«ãããå®è¡å¯èœãã¡ã€ã«ãã«ãŒããšããŠå®è¡ããå¿ èŠããªããªããŸãã
次ã«ç€ºãããã«ããã³ã€ã³ãžã±ãŒã¿ãŒãRaspberry Piã®ãã³17ã«æ¥ç¶ããŸãã
main.cppãéããæåã®digitalWriteã¹ããŒãã¡ã³ãã®åŸã«é 延åŒã³åºãã®ãã¬ãŒã¯ãã€ã³ããèšå®ããŸãã F5ãæŒããŸãã ãã¬ãŒã¯ãã€ã³ãã«å°éãããšãå®è¡ãäžæåæ¢ããŸãã ãã®å ŽåãLEDãç¹ç¯ããŸãã 次ã®digitalWriteåŒã³åºããŸã§ã³ãŒããç¶ããŸãã ãã®äžã®LEDãæ¶ç¯ããŸãã
Linuxæ¡åŒµæ©èœã®VC ++ãä»ããŠIntel EdisonããŒããæäœããæ¹æ³
Linuxæ¡åŒµæ©èœã®VC ++ãä»ããŠIntel EdisonããŒããæäœããããšã¯ãä»ã®Linuxã·ã¹ãã ã䜿çšããã®ãšå®è³ªçã«åãã§ãã ãŸãã Intelã®æ瀺ã«åŸã£ãŠããŒããæ§æããå¿ èŠããããŸãã EdisonãWi-Fiãããã¯ãŒã¯ã«æ¥ç¶ããããæ¥ç¶ãããŒãžã£ãŒã䜿çšããŠEdisonã«æ¥ç¶ã§ããŸãã Edisonã«çŽæ¥æ¥ç¶ããå¿ èŠãããå Žåã¯ãUSBçµç±ã§ã€ãŒãµãããçµç±ã§Edisonã«æ¥ç¶ããæé ã䜿çšããŠãã ãã -æ¥ç¶ãããŒãžã£ãŒã¯ãã®ãªãã·ã§ã³ããµããŒãããŠããŸãã
Edisonã§ã¯ãã»ã³ãµãŒããã®ããŒã¿ãåŠçããIoTã¢ããªã±ãŒã·ã§ã³ã®äœæãç°¡åã«éå§ã§ããŸãã Arduinoæ¡åŒµã«ãŒããªã©ã®ããã€ã¹ã䜿çšãããšãSeeve Studios Groveæ¡åŒµã«ãŒããªã©ã®è¿œå ã¢ãžã¥ãŒã«ãæ¥ç¶ã§ããŸãã ãã®æ¡åŒµããŒãã¯ããã¬ããããŒãã«æ¥ç¶ããããã®é ç·ãå¿é ããããšãªããå©çšå¯èœãªå€ãã®Groveã»ã³ãµãŒãæäœããã®ã«åœ¹ç«ã¡ãŸããã³ãŒããããã«æžãå§ããããšãã§ããŸãã Intelã¯UPMã»ã³ãµãŒã©ã€ãã©ãªããªãªãŒã¹ããŸãããããã«ãããã¿ã¹ã¯ãããã«ç°¡åã«ãªããŸãããã°ããŒããå«ãå¹ åºãã»ã³ãµãŒããµããŒãããŸãã
ç»åã¯ãæ¥ç¶ãããã°ããŒãæ¡åŒµããŒããšæ¥ç¶ããã枩床ã»ã³ãµãŒãåããArduinoåè·¯å ã®Edisonèšç®ã¢ãžã¥ãŒã«ã瀺ããŠããŸãã
Visual Studioã§æ°ãããããžã§ã¯ããäœæããŸãã [ VC ++]â [ ã¯ãã¹ãã©ãããã©ãŒã ]â[Linux]â[空ã®ãããžã§ã¯ã]ãéžæããŸãã Edisonåãã®ãœãªã¥ãŒã·ã§ã³ãæ§ç¯ããå Žåããœãªã¥ãŒã·ã§ã³ãã©ãããã©ãŒã ãšããŠx86ãéžæããŠãã ããã C ++ãã¡ã€ã«ããããžã§ã¯ãã«è¿œå ããŸãã Intelã®Grove Temperature Sampleã®ã³ãŒãã䜿çšããŸãã UPMã©ã€ãã©ãªã¯ãEcisonã§ããã©ã«ãã§äœ¿çšãããYocto Linuxã€ã¡ãŒãžã«å«ãŸããŠãããããè¿œå ã§ã€ã³ã¹ããŒã«ããå¿ èŠã¯ãããŸããã é©åãªãã¡ã€ã«ã®å Žæã§includeãªãã·ã§ã³ãå€æŽããŸãã
#include <upm/grove.h>
ãã®åŸãã³ãŒããçµã¿ç«ãŠãŠå®è¡ã§ããŸãã Visual Studioãããã°ã¢ãŒãã§ãã®äŸãå®è¡ããçµæã次ã«ç€ºããŸãã ãããããåºåã®æåã®è¡ã«æ··ä¹±ããŠããã§ãããã å®éããã®ã¿ã€ãã®ã»ã³ãµãŒããããŒã¿ãèªã¿åãããšããæåã®è©Šã¿ã§ã¯ãéåžžãå®å šã«æ£ç¢ºãªçµæãåŸãããŸããã
IntelliSenseãæå¹ã«ããã«ã¯ã以äžã®æé ã«åŸã£ãŠãã ããã EdisonããããŒã«ã«ç°å¢ã«ãã©ã°ã€ã³ãã³ããŒããå¿ èŠããããŸãã ãããŸã§ã®ãšãããIntelliSenseã¯ãã®äŸã«è¡šç€ºããããšã©ãŒãåŠçããŠããŸãã å°æ¥ã®ã¢ããããŒãã§ã¯ãããã¯ä¿®æ£ãããŸãã
ã¯ã©ã·ãã¯ã¢ããª
ããã§ãã¢ãã¿ãŒã®ãªãã·ã¹ãã ãLinuxãå®è¡ããç¹æ®ãªããã€ã¹çšã®ã¢ããªã±ãŒã·ã§ã³ã®äœæãæ€èšããŸããã ãããããã¹ã¯ãããPCã¯ã©ãã§ããããã ç¹å¥ãªãã®ãçšæããŸããã Linuxãã¹ã¯ãããã§OpenGLã¢ããªã±ãŒã·ã§ã³ãèµ·åããŸãã ãŸããLinux PCãOpenGLãœãªã¥ãŒã·ã§ã³ãéçºããããã«é©åã«æ§æãããŠããããšã確èªããŸãã 次ã®aptããã±ãŒãžã䜿çšããŸããïŒlibgles1-mesaãlibgles1-mesa-devãfreeglut3ãfreeglut3-devã
次ã«ã空ã®Linuxãããžã§ã¯ããäœæããOpenGLã®Julien Guertaultãã¥ãŒããªã¢ã«ã®ãªã³ã¯ããSpinning CubeãœãŒã¹ã³ãŒããããŠã³ããŒãããŸãã ã¢ãŒã«ã€ãã解åããmain.cããããžã§ã¯ãã«è¿œå ããŸãã IntelliSenseãã¯ãããžã䜿çšããã«ã¯ãOpenGLããããŒãã¡ã€ã«ãVC ++ãã£ã¬ã¯ããªã«è¿œå ããå¿ èŠããããŸãã OpenGLã¬ãžã¹ããªããããŠã³ããŒãã§ããŸã ã ããã§ãããžã§ã¯ãã®ããããã£ãéãããèµ·ååã³ãã³ãããã£ãŒã«ãã«ãexport DISPLAY =ïŒ0.0ããšå ¥åããŸãã
[ãªã³ã«ãŒå ¥å]ãã£ãŒã«ãã§ãã©ã€ãã©ãªã®äŸåé¢ä¿ãæå®ããŸãïŒãm; GL; GLU; glutãã
ãªã¢ãŒãæ¥ç¶èšå®ã§æ£ããã³ã³ãã¥ãŒã¿ãŒãæå®ãããŠããããšã確èªããŠãã ããã
F5ãæŒããŸãã
èå³æ·±ãçµæãåŸãã«ã¯ããã¥ãŒãã®å転ãæå®ãããŠããè¡80ïŒã¢ã«ãã¡å€ãå€æŽããŠã¿ãŠãã ããïŒããŸãã¯æŒãããããŒã®å€ã衚瀺ã§ããKeyboardFuncã®åŒã³åºãã«ãã¬ãŒã¯ãã€ã³ããé 眮ã§ããŸãã
Makefileãããžã§ã¯ããã³ãã¬ãŒã
Makefileãããžã§ã¯ããã³ãã¬ãŒãã䜿çšãããšããªã¢ãŒãã³ã³ãã¥ãŒã¿ãŒã§å€éšãã«ãã·ã¹ãã ïŒmakeãgmakeãCMakeãbashã¹ã¯ãªãããªã©ïŒã䜿çšã§ããŸãã ããã¯æ¬¡ã®ããã«æ©èœããŸããC++ãããžã§ã¯ãããããã£ããŒãžã§ããŒã«ã«Intellisenseãã¹ãæ§æãããªã¢ãŒãã¢ã»ã³ããªããããã£ããŒãžã§ãªã¢ãŒãã³ã³ãã¥ãŒã¿ãŒã§ã¢ã»ã³ããªãéå§ããã³ãã³ãïŒã»ãã³ãã³ã§åºåãããïŒãè¿œå ã§ããŸãã ãã®äŸã§ã¯ããã«ãã¹ã¯ãªããããããªã¢ãŒããã£ã¬ã¯ããªã«ç§»åããŠå®è¡ããŸãã
ãã£ã¬ã¯ããªæ§é ã«åºã¥ããŠãœãŒã¹ãã¡ã€ã«ã«åºã¥ããŠã¡ã€ã¯ãã¡ã€ã«ãããžã§ã¯ããçæã§ããè€æ°ã®bashã¹ã¯ãªãããçµã¿åãããŸãã ãããã®ã·ããªãªã§ã¯ãLinuxã³ã³ãã¥ãŒã¿ãŒã®ãœãŒã¹ã³ãŒãã¯ãWindowsãããããããã£ã¬ã¯ããªã«ãããšæ³å®ãããŠããŸãã ãã¡ã€ã«ããªã¢ãŒãã§ã³ããŒããªãããã«ããããžã§ã¯ãããããã£ã«æ°ãããã©ã°ãèšå®ããŸãã ãã®ãªãã·ã§ã³ããã¹ãŠã®ã¿ã¹ã¯ã«é©ããŠãããšã¯èããããŸãããã倧èŠæš¡ãªãããžã§ã¯ãã®åºçºç¹ãšããŠé©åã§ãã
䜿ãæ¹ã®ãã³ã
ãã®ã»ã¯ã·ã§ã³ã®ãã³ãã¯ãæ¡åŒµæ©èœãããæå¹ã«æŽ»çšããã®ã«åœ¹ç«ã¡ãŸãã
詳现ãªãã«ããã°
ã©ã®åŒæ°ãGCCã«æž¡ããããã«ã€ããŠãå€ãã®è³ªåããããŸããã ã¢ã»ã³ããªäžã«è¡šç€ºãããåºåã¯å¿ èŠãªæ å ±ãæäŸããŸããããä¿®æ£ããã«ã¯2ã€ã®æ¹æ³ããããŸãã ã¯ã€ãã¯å ¥åããã¯ã¹ã§ãverbosityããšããåèªãæ€çŽ¢ãããã[ ããŒã«]â [ ãªãã·ã§ã³]â[ãããžã§ã¯ããšãœãªã¥ãŒã·ã§ã³]â[ãã«ããšå®è¡]ãéžæããŸã ã MSBuildãããžã§ã¯ãã®åºåã®è©³çŽ°åºŠãæ§æããã«ã¯ã蚺æãéžæããŸãã 次ã«ãã¢ã»ã³ããªäžã®åºåãŠã£ã³ããŠã«ãæãå®å šãªæ å ±ã衚瀺ãããŸãã ãããã£ãŠãããã°ã©ã ã®ã¢ã»ã³ããªäžã«GCCã«æž¡ãããåŒæ°ãæ£ç¢ºã«èŠã€ããããšãã§ããŸãã ãã®æ å ±ã¯ãããã°ã©ã ãæ£ããåäœããªãå Žåã«åœ¹ç«ã¡ãŸãã
æ¥ç¶ããããã¡ã€ã«ãååŸããå Žæ
誰ããIntelliSenseãæããŠããŸãããLinuxã·ã¹ãã ããã®æ¥ç¶ãã¡ã€ã«ã®åæã¯ãŸã å®è£ ãããŠããŸããã 誰ãããããã®ãã¡ã€ã«ãç¬èªã®æ¹æ³ã§è»¢éããŠã³ããŒããŸãããããã¯è¯ãããšã§ãã éåžžã«ç°¡åãªæ¹æ³ã«ã€ããŠèª¬æããŸãïŒ PSCPçµç±ã§ãã©ã«ããŒå šäœãããŒã«ã«Windowsã·ã¹ãã ã«ã³ããŒããã ãã§ã ã
pscp -r root@192.168.2.15:/usr/include .
ããã§ãããžã§ã¯ãããããã£ãéããVC ++ãã£ã¬ã¯ããªã»ã¯ã·ã§ã³ã«ç§»åããŠãããŒã«ã«ãã¹ãè¿œå ããŸãã
åé€ããããã¡ã€ã«ã®ã³ããŒã管çãã
ãã¡ã€ã«ããã³ãããžã§ã¯ãã¬ãã«ã§ããã¡ã€ã«ããªã¢ãŒãã§ã³ããŒãããã©ãããæå®ã§ããŸãã ããã«ãããæ¢åã®ãªãœãŒã¹ãããŒã«ã«ã§ç §åããç·šéããã³ãããã°çšã«ãããžã§ã¯ãã«è¿œå ããã ãã§ãæ¢åã®ã¢ã»ã³ããªã¡ã«ããºã ã䜿çšã§ããŸãã
C / C ++ã³ã³ãã€ã©ãã¹ã®ãªãŒããŒã©ã€ã
[ããããã£ããŒãž]ãŠã£ã³ããŠã§ããªã¢ãŒãã³ã³ãã¥ãŒã¿ãŒã§äœ¿çšãããã³ã³ãã€ã©ã³ãã³ãããªãŒããŒã©ã€ãã§ããŸãã ãã®ãããå¿ èŠã«å¿ããŠãç¹å®ã®ããŒãžã§ã³ã®GCCãŸãã¯å¥ã®ã³ã³ãã€ã©ïŒclangãªã©ïŒãéžæã§ããŸãã ãã«ãã¹ãšäœ¿çšå¯èœãªã³ãã³ãã®äž¡æ¹ãæå®ã§ããŸãã
ãã«ãã€ãã³ã
ãããžã§ã¯ãããããã£ã®[ãã«ãã€ãã³ã]ã»ã¯ã·ã§ã³ã§ã¯ãæ°ããã¿ã€ãã®ã€ãã³ãã䜿çšã§ããŸããã¢ã»ã³ããªãšã¢ã»ã³ããªã®åã«ããªã¬ãŒãããã¢ã»ã³ããªã€ãã³ãã®ä»»æã®ãã¡ã€ã«ãã³ããŒããæ段ããããŸãã ãããã®ããŒã«ã䜿çšãããšãããã»ã¹ãæè»ã«å¶åŸ¡ã§ããŸãã
ãããã°ãªãã·ã§ã³
ãã®æ¡åŒµæ©èœã¯gdbserverã ãã§ãªããgdbã¢ãŒãããµããŒãããŸããããã«ãããWindowsã®ãªã¢ãŒãã¿ãŒã²ããã«é©ãããã€ããªgdbã¯ã©ã€ã¢ã³ããã¡ã€ã«ããªãå Žåã«äºææ§ãé«ããããšãã§ããŸãã
ããã«ããããã¬ãŒã³ãã³ãèªäœããªãŒããŒã©ã€ãã§ããŸãã ããã¯ãVSã§æ§ç¯ãããŠããªãå€éšããã°ã©ã ã®ãããã°ã«åœ¹ç«ã¡ãŸãã
ãããžã§ã¯ãããããã£ã®[ãããã°]ããŒãžã§ããããã¬ãŒãéå§ããåã«ãããã¬ãŒã«æž¡ãè¿œå ã®gdbã³ãã³ããæå®ã§ããŸãã ããã¯ãããšãã°ãAzure IoTãããžã§ã¯ããéçºããå Žåã«åœ¹ç«ã¡ãŸãã Raspberry Piã§Azure IoT C SDKã䜿çšãããšããããã°ãéå§ãããšãã«èª€ã£ãäŸå€ãã¹ããŒãããå ŽåããããŸãã ãã®çç±ã¯ãlibcryptoãšgdbã®çžäºäœçšã®ç¹æ§ã§ãã ãã®åé¡ã«é¢ããè°è«ã¯ããã§å©çšå¯èœã§ã ã åã«ãããã°ãç¶è¡ããããäœæ¥ãéå§ããåã«ãããã¬ãŒã«ç¹å¥ãªåœä»€ãæž¡ãããšã«ããããã®åé¡ãå®å šã«åé¿ããããšãã§ããŸãã