{"id":4139,"date":"2015-09-29T02:29:05","date_gmt":"2015-09-28T17:29:05","guid":{"rendered":"http:\/\/mirror.boy.jp\/?p=2299"},"modified":"2015-09-29T02:29:05","modified_gmt":"2015-09-28T17:29:05","slug":"raspberry-pi2-openframeworks-tips","status":"publish","type":"post","link":"https:\/\/inage.ksd6700.net\/?p=4139","title":{"rendered":"Raspberry Pi2 &amp; openFrameworks TIPS"},"content":{"rendered":"<h3 class=\"entry-title public \"><strong><a href=\"https:\/\/github.com\/jvcleave\/ofxRPiCameraVideoGrabber\" data-pjax=\"#js-repo-pjax-container\">ofxRPiCameraVideoGrabber<\/a><\/strong><\/h3>\n<p>Sample\u3092make\u3059\u308b\u3068<\/p>\n<pre class=\"crayon-plain-tag\">could not convert &lsquo;ofGLProgrammableRenderer::TYPE&rsquo; from &lsquo;const string {aka const std::basic_string&amp;lt;char&amp;gt;}&rsquo; to &lsquo;std::shared_ptr&amp;lt;ofBaseRenderer&amp;gt;&rsquo; ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);<\/pre>\n<p>\u3068\u3067\u308b\u3002<\/p>\n<p><a href=\"http:\/\/forum.openframeworks.cc\/t\/could-not-convert-ofglprogrammablerenderer-type-error-on-linux-using-master\/18717\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306bmain.cpp\u3092\u4ee5\u4e0b\u306b\u5909\u66f4<\/p>\n<pre class=\"crayon-plain-tag\">int main{\r\n\r\nofGLESWindowSettings settings;\r\n\r\nsettings.width = &lt;span class=&quot;hljs-number&quot;&gt;1280&lt;\/span&gt;;\r\n\r\nsettings.height = &lt;span class=&quot;hljs-number&quot;&gt;720&lt;\/span&gt;;\r\n\r\nsettings.setGLESVersion(&lt;span class=&quot;hljs-number&quot;&gt;2&lt;\/span&gt;);\r\n\r\nofCreateWindow(settings);\r\n\r\nofRunApp( &lt;span class=&quot;hljs-keyword&quot;&gt;new&lt;\/span&gt; testApp());\r\n\r\n}<\/pre>\n<p>\u3067make\u6210\u529f\u3057\u305f<\/p>\n<h3>make\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u3092\u697d\u306b\u3059\u308b<\/h3>\n<p>make\u3059\u308b\u6642\u306b\u3044\u3061\u3044\u3061\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u3059\u308b\u306e\u304c\u9762\u5012\u304f\u3055\u3044\u306e\u3067<\/p>\n<pre class=\"crayon-plain-tag\">cd\r\nls -a<\/pre>\n<p>\u3067\u8868\u793a\u3055\u308c\u308b<\/p>\n<pre class=\"crayon-plain-tag\">.profile<\/pre>\n<p>\u306b<\/p>\n<pre class=\"crayon-plain-tag\">nano .profile<\/pre>\n<p>\u3057\u3066nano\u3067\u30aa\u30fc\u30d7\u30f3\u3057\u3066<\/p>\n<pre class=\"crayon-plain-tag\">export MAKEFLAGS=-j4 PLATFORM_VARIANT=rpi2<\/pre>\n<p>\u3068\u66f8\u304d\u8fbc\u3080\u3068<\/p>\n<p>openFrameworks\u306eExample\u30d5\u30a9\u30eb\u30c0\u7b49\u3067<\/p>\n<pre class=\"crayon-plain-tag\">make<\/pre>\n<p>\u3059\u308b\u3060\u3051\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u8d70\u308b\uff01<\/p>\n<h3><span style=\"font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace; font-size: 12px; line-height: 16.65999984741211px; white-space: pre; background-color: #f9f9f9;\">GPIO\u306e\u756a\u53f7\u3092\u8868\u793a<\/span><\/h3>\n<\/p>\n<pre class=\"crayon-plain-tag\">gpio readall<\/pre>\n<p>openFrameworks\u304b\u3089gpio\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001wiringPi\u3092\u4f7f\u3046\u3088\u3046\u3067\u3059\u3002GPIO\u306e\u756a\u53f7\u306f\u3001Raspberry Pi\u3068wiringPi\u3067\u5272\u5f53\u304c\u9055\u3046\u3088\u3046\u3067\u756a\u53f7\u3092\u8abf\u3079\u3066\u308b\u4e2d\u3067\u3001\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<\/p>\n<h3>\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308bI2C\u30c7\u30d0\u30a4\u30b9\u3092\u63a2\u3059<\/h3>\n<\/p>\n<pre class=\"crayon-plain-tag\">i2cdetect -y 1<\/pre>\n<\/p>\n<h3>addon\u306e\u8ffd\u52a0<\/h3>\n<p>addon\u30d5\u30a9\u30eb\u30c0\u306b\u3066<\/p>\n<pre class=\"crayon-plain-tag\">git clone \u4f7f\u3044\u305f\u3044ofxAddon\u306e\u30ea\u30dd\u30b8\u30c8\u30eaURL<\/pre>\n<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306eaddons.make\u306bAddon\u540d\u3092\u8a18\u5165<\/p>\n<pre class=\"crayon-plain-tag\">ofxAddon<\/pre>\n<\/p>\n<h3>debug<\/h3>\n<p>Program received signal SIGILL, Illegal instruction \u3068\u51fa\u3066\u8d77\u52d5\u6642\u306b\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u554f\u984c\u3002gdb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u53d6\u308a\u6562\u3048\u305a\u56de\u907f\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"crayon-plain-tag\">handle SIGILL nostop\r\nhandle SIGINT nonstop<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ofxRPiCameraVideoGrabber Sample&#12434;mak &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/posts\/4139"}],"collection":[{"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4139"}],"version-history":[{"count":5,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/posts\/4139\/revisions"}],"predecessor-version":[{"id":4168,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=\/wp\/v2\/posts\/4139\/revisions\/4168"}],"wp:attachment":[{"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inage.ksd6700.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}