{"id":11816,"date":"2024-04-27T13:42:27","date_gmt":"2024-04-27T04:42:27","guid":{"rendered":"https:\/\/www.webcyou.com\/?p=11816"},"modified":"2024-04-27T13:42:27","modified_gmt":"2024-04-27T04:42:27","slug":"m1-mac%e3%81%a7%e3%80%81opengl-glut%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b3%e3%83%b3%e3%83%91%e3%82%a4%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=11816","title":{"rendered":"M1 Mac\u3067\u3001OpenGL GLUT\u3092\u4f7f\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b"},"content":{"rendered":"\n<p>\u3069\u3082\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u3001Rust Actix Web\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u98fd\u304d\u3066\u304d\u305f\u306e\u3067\u3001\u518d\u3073OpenGL\u306e\u958b\u767a\u3067\u3082\u3068\u3002<\/p>\n<p>\u3084\u306f\u308a\u3001\u3057\u3070\u3089\u304f\u958b\u767a\u3092\u96e2\u308c\u308b\u3068\u3059\u3050\u5fd8\u308c\u308b\u304a\u5e74\u9803\u306b\u306a\u308b\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3068\u5099\u5fd8\u9332\u7a0b\u5ea6\u306e\u8a18\u4e8b\u3067\u3059\u3002\u307e\u305f\u3001\u65b0\u898f\u306eWindows\u6a5f\u3082\u5c4a\u3044\u3066\u3001WSL2\u3001C\/C++\u74b0\u5883\u3001OpenGL\u74b0\u5883\u3068\u6574\u3048\u3066\u304d\u305f\u306e\u3067\uff08\u3061\u3087\u3063\u3068\u3069\u3046\u3057\u3088\u3046\u304b\u60a9\u3093\u3067\u306f\u3044\u308b\u3002\uff09\u305d\u3061\u3089\u3082\u3001\u305d\u306e\u3046\u3061\u307e\u3068\u3081\u3088\u3046\u304b\u3068\u3002<\/p>\n<p>\u00a0<\/p>\n<h4>GCC\u30b3\u30de\u30f3\u30c9\u3067OpenGL GLUT\u3092\u30b3\u30f3\u30d1\u30a4\u30eb<\/h4>\n<p>\u307e\u305a\u3001Mac OS X \u3067\u306f\u6a19\u6e96\u3067OpenGL\u3068GLUT \u304c\u4f7f\u3048\u3001Developer Tools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3082\u4e00\u5fdc\u63c3\u3046\u3002\u3068\u308a\u3042\u3048\u305a\u3001gcc\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u304c\u6574\u3063\u3066\u3044\u308c\u3070\u3001M1 Mac\u3067\u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">gcc -framework GLUT -framework OpenGL &lt;program file&gt; -o &lt;output file&gt;<\/pre>\n<p>\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u53ef\u80fd\u3002-o &lt;output file&gt; \u306f\u7701\u7565\u53ef\u80fd\u306a\u306e\u3067\u3001\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">gcc -framework GLUT -framework OpenGL program.c<\/pre>\n<p>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001a.out \u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u3001.\/a.out \u30b3\u30de\u30f3\u30c9\u5165\u529b\u3067\u5b9f\u884c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-11817\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2024\/04\/a-out-1024x904.png\" alt=\"\" width=\"383\" height=\"338\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2024\/04\/a-out-1024x904.png 1024w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2024\/04\/a-out-300x265.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2024\/04\/a-out-768x678.png 768w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2024\/04\/a-out.png 1224w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/p>\n<p>\u7121\u4e8b\u3001OpenGL GLUT\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u5b9f\u884c\u3067\u304d\u308b\u3002<\/p>\n<p>\u304c\u3001\u30cd\u30c3\u30c8\u3067\u4e0a\u304c\u3063\u3066\u3044\u305f\u308a\u3001\u66f8\u7c4d\u306b\u66f8\u304b\u308c\u3066\u3044\u305f\u308a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;GL\/glut.h&gt;<\/pre>\n<p>\u3053\u306e\u5f62\u3067GLUT\u3092include\u3055\u308c\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">fatal error: GL\/glut.h: No such file or directory\n    5 | #include &lt;GL\/glut.h&gt;\n      |          ^~~~~~~~~~~<\/pre>\n<p>header\u30d5\u30a1\u30a4\u30eb\u304c\u7121\u3044\u3088\u3068\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/p>\n<p>\u305d\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u3001header\u30d5\u30a1\u30a4\u30eb\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u308b\u5f62\u3068\u306a\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">mkdir \/usr\/local\/include\/GL\ncd \/usr\/local\/include\/GL\/\nsudo ln -s \/System\/Library\/Frameworks\/GLUT.framework\/Headers\/glut.h .\n<\/pre>\n<p>\u00a0<\/p>\n<p>\u6700\u8fd1\u3067\u306f\u3001Headers\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u304f\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u308c\u306a\u304b\u3063\u308a\u3059\u308b\u3002<\/p>\n<p>\u3069\u306e\u5834\u6240\u306b\u5b58\u5728\u3059\u308b\u306e\u304b\u3061\u3087\u3063\u3068\u63a2\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u56de\u907f\u7b56\u3068\u3057\u3066\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;GL\/glut.h&gt;<\/pre>\n<p>\u3092\u3001<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;GLUT\/glut.h&gt;<\/pre>\n<p>\u306b\u5909\u66f4\u3059\u308c\u3070\u3001\u7121\u4e8bGLUT\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3082include\u3055\u308c\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3067\u304d\u308c\u3070\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5909\u66f4\u305b\u305a\u305d\u306e\u307e\u307e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308c\u3070\u826f\u3044\u306a\u3068\u601d\u3063\u3066\u304a\u308a\u3001GLUT Headers\u306e\u884c\u65b9\u3092\u63a2\u3063\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u3054\u308d\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3067\u3059\u3002 \u6700\u8fd1\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f\u3001Rust Actix Web\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u958b\u767a\u3092\u884c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u98fd\u304d\u3066\u304d\u305f\u306e\u3067\u3001\u518d\u3073OpenGL\u306e\u958b\u767a\u3067\u3082\u3068\u3002 \u3084\u306f\u308a\u3001\u3057\u3070\u3089\u304f\u958b\u767a\u3092\u96e2\u308c\u308b\u3068\u3059\u3050\u5fd8\u308c\u308b\u304a\u5e74\u9803\u306b\u306a\u308b\u306e\u3067\u3001\u5fd8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11818,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200],"tags":[340,339,337,336,338,78,118],"class_list":["post-11816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-2","tag-2d","tag-3d","tag-glut","tag-opengl","tag-338","tag-78","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11816"}],"version-history":[{"count":1,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11816\/revisions"}],"predecessor-version":[{"id":11819,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11816\/revisions\/11819"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/media\/11818"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}