{"id":283318,"date":"2016-12-30T20:20:03","date_gmt":"2016-12-30T17:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283318"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283318","title":{"rendered":"\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u043a\u0440\u043e\u0441\u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043d\u0430 Raspberry PI"},"content":{"rendered":"<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438, \u043a\u0440\u043e\u0441\u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0449\u0443\u044e CMake \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 c++ \u0441 OpenGL \u043d\u0430 Raspberry PI. \u0417\u0430\u043e\u0434\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043b\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0432 \u0441\u0435\u0431\u0435 \u043f\u0438\u0442\u043e\u043d\u0430 \u0438 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u043e\u0442\u043d\u0438 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 ram \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0435. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0446\u0435\u043b\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043b\u0438 \u044f \u043c\u0438\u043c\u043e \u0431\u043e\u043b\u0435\u0435 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>TLDR: drone \u043a\u043b\u0430\u0441\u0441\u043d\u044b\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 github\/bitbucket \u2014 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u0438\u043b\u0434\u044b\/\u0442\u0435\u0441\u0442\u044b\/\u0434\u0435\u043f\u043b\u043e\u0439. \u041f\u0440\u044f\u043c\u043e \u043a\u0430\u043a \u0432 Travis, \u043d\u043e self-hosted.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0432 \u0433\u0443\u0433\u043b \u044f \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0431\u0438\u043b\u0434 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0445 \u043c\u043e\u0438\u043c \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430: <\/p>\n<p>  <\/p>\n<ul>\n<li>drone.io<\/li>\n<li>concourse.ci<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u042f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 drone.io. \u0412\u044b\u0431\u0438\u0440\u0430\u043b \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u043c\u043e\u0433\u0443. <\/p>\n<p>  <\/p>\n<p>\u0423 drone \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438, 0.4 \u0438 0.5. 0.5 \u2014 \u044d\u0442\u043e \u0431\u0435\u0442\u0430, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u0435\u0439, \u043d\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u0445 \u0444\u0438\u0447\u0435\u0439 \u044f \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0430\u0433 \u0432 0.4 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 0.5 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u2014 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0447\u0435\u0440\u0435\u0437 UI \u043b\u0438\u0448\u0438\u0442\u044c \u0441\u0435\u0431\u044f \u0444\u043b\u0430\u0436\u043a\u0430 Administrator. <\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"http:\/\/readme.drone.io\/\">http:\/\/readme.drone.io\/<\/a> \u2014 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u0438 0.4. \u0414\u043b\u044f 0.5 \u2014 <a href=\"http:\/\/readme.drone.io\/0.5\/\">http:\/\/readme.drone.io\/0.5\/<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0437 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u2014 drone \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a github, bitbucket, gogs. \u041f\u0440\u0438\u0447\u0451\u043c \u043e\u0434\u0438\u043d \u0438\u043d\u0441\u0442\u0430\u043d\u0441 drone \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c. \u042d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 drone, \u0431\u043b\u0430\u0433\u043e \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043e\u043d\u0438 \u043d\u0435 \u0442\u0440\u0430\u0442\u044f\u0442 \u043b\u0438\u0448\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.<br \/>  \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043e\u0434\u0438\u043d drone \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 bitbucket, \u043e\u0434\u0438\u043d \u2014 \u0432 gogs \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>  <\/p>\n<p>\u042f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b drone \u0447\u0435\u0440\u0435\u0437 docker \u043e\u0431\u0440\u0430\u0437, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0442\u0430\u043a:<br \/>  \u0417\u0430\u043f\u0443\u0441\u043a:<\/p>\n<p>  <\/p>\n<pre><code>docker run -d \\   -e REMOTE_DRIVER=bitbucket \\   -e &quot;REMOTE_CONFIG=https:\/\/bitbucket.org?client_id=***&amp;client_secret=***&quot; \\   -e DRONE_DATABASE_DRIVER=sqlite3 \\   -e DRONE_DATABASE_CONFIG=\/var\/lib\/drone\/drone.sqlite \\   -v \/var\/lib\/drone_bitbucket:\/var\/lib\/drone \\   -v \/var\/run\/docker.sock:\/var\/run\/docker.sock \\   -p 81:8000 \\   --restart=always \\   --name=drone_bitbucket \\   drone\/drone:0.4<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0432\u0441\u0451 \ud83d\ude42 <\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 drone \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440:<br \/>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/ztasLa6.png\" alt=\"Login\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435 drone \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0437\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 bitbucket, \u0438 \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0445\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0432\u0441\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443:<br \/>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/MF3cbzX.png\" alt=\"repos\"\/><\/p>\n<p>  <\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Active \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u043e, \u0432\u0441\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432 Available.<br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0438\u0442\u0431\u0430\u043a\u0435\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/zDQaoWa.png\" alt=\"activate\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435, \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \ud83d\ude42 <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 drone \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u044c\u0441\u044f \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e.<br \/>  \u0412 \u043a\u043e\u0440\u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0444\u0430\u0439\u043b .drone.yml, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.<br \/>  \u0417\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0442\u044d\u0433 \u0434\u043e\u043a\u0435\u0440 \u043e\u0431\u0440\u0430\u0437\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438.<br \/>  \u0412\u0435\u0441\u044c .drone.yml \u0434\u043b\u044f raspberry \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <\/p>\n<p>  <\/p>\n<pre><code>build:   image: notfl3\/cross_raspberry_pi   commands:     - cmake -D CMAKE_BUILD_TYPE=Debug  -D CMAKE_TOOLCHAIN_FILE=\/Toolchain-RaspberryPi.cmake .     - make  publish:   sftp:     host:      port: 22     username: ...     password: ...     destination_path: ...     files:       - ...<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0430\u043c\u044b\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043c\u0435\u0441\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0435\u0440-\u043e\u0431\u0440\u0430\u0437\u0430, \u043c\u043e\u0433\u0443\u0449\u0435\u0433\u043e \u0432 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0434\u043b\u044f Raspberry.<br \/>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445, \u044f \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u0432\u043e\u0439 (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0433\u043b\u044f\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u0434\u043e\u043a\u0435\u0440 \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0439).<br \/>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043d \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a: <\/p>\n<p>  <\/p>\n<pre><code>FROM debian:sid  RUN apt-get update RUN apt-get install -y git RUN apt-get install -y cmake  ENV CROSS_TRIPLE arm-linux-gnueabihf  RUN mkdir -p \/rpi\/tools &amp;&amp; cd \/rpi\/tools &amp;&amp; git init &amp;&amp; git remote add -f origin https:\/\/github.com\/raspberrypi\/tools &amp;&amp; \\     git config core.sparseCheckout true &amp;&amp; echo &quot;arm-bcm2708\/gcc-linaro-${CROSS_TRIPLE}-raspbian-x64&quot; &gt;&gt; .git\/info\/sparse-checkout &amp;&amp; \\     git pull --depth=1 origin master  RUN mkdir -p \/rpi\/rootfs\/opt  COPY lib\/ \/rpi\/rootfs\/lib\/ COPY usr\/ \/rpi\/rootfs\/usr\/ COPY opt\/vc\/ \/rpi\/rootfs\/opt\/vc\/  COPY Toolchain-RaspberryPi.cmake \/Toolchain-RaspberryPi.cmake  RUN mkdir -p \/build WORKDIR \/build<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043c\u043e\u0435\u0433\u043e Dockerfile, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u2014 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043e\u0434\u043d\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043a \/usr, \/lib, \/opt \u0432\u0437\u044f\u0442\u044b\u0445 \u0441 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e Raspbian&#8217;a \u0438 \u0444\u0430\u0439\u043b\u043e\u043c Toolchain-RaspberryPi.cmake.<br \/>  \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>docker build . -t notfl3\/cross_raspberry_pi<\/code> drone \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u0431\u0438\u043b\u0434\u044b. <\/p>\n<p>  <\/p>\n<p>\u0421\u0430\u043c\u0430 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/cmake.org\/cmake\/help\/v3.6\/manual\/cmake-toolchains.7.html\">\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c CMake&#8217;\u0430<\/a>, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 \u2014 \u044f \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u0439 Toolchain.cmake \u0444\u0430\u0439\u043b \u0434\u043b\u044f gcc \u0438\u0437 raspberry-tools, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043d \u0442\u0430\u043a: <\/p>\n<p>  <\/p>\n<pre><code>SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_VERSION 1)  # Where is the target environment SET(CMAKE_FIND_ROOT_PATH \/rpi\/rootfs)  # Specify the cross compiler SET(CMAKE_C_COMPILER \/rpi\/tools\/arm-bcm2708\/gcc-linaro-arm-linux-gnueabihf-raspbian-x64\/bin\/arm-linux-gnueabihf-gcc &quot;--sysroot=${CMAKE_FIND_ROOT_PATH}&quot;) SET(CMAKE_CXX_COMPILER \/rpi\/tools\/arm-bcm2708\/gcc-linaro-arm-linux-gnueabihf-raspbian-x64\/bin\/arm-linux-gnueabihf-g++ &quot;--sysroot=${CMAKE_FIND_ROOT_PATH}&quot;)  # Search for programs only in the build host directories SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)  # Search for libraries and headers only in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)  INCLUDE_DIRECTORIES(${CMAKE_FIND_ROOT_PATH}\/usr\/include\/arm-linux-gnueabihf) INCLUDE_DIRECTORIES(${CMAKE_FIND_ROOT_PATH}\/usr\/include\/) <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u0438\u0445 \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u044f \u0441\u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u0431\u0438\u043b\u0434 \u0441 glfw \u043e\u043a\u043d\u043e\u043c \u0434\u043b\u044f raspberry, \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435. <\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e!<br \/>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/98tmx5l.png\" alt=\"Res\"\/><\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/318840\/\"> https:\/\/habrahabr.ru\/post\/318840\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438, \u043a\u0440\u043e\u0441\u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0449\u0443\u044e CMake \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 c++ \u0441 OpenGL \u043d\u0430 Raspberry PI. \u0417\u0430\u043e\u0434\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043b\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0432 \u0441\u0435\u0431\u0435 \u043f\u0438\u0442\u043e\u043d\u0430 \u0438 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u043e\u0442\u043d\u0438 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 ram \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0435. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0446\u0435\u043b\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u2014 \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043b\u0438 \u044f \u043c\u0438\u043c\u043e \u0431\u043e\u043b\u0435\u0435 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>TLDR: drone \u043a\u043b\u0430\u0441\u0441\u043d\u044b\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 github\/bitbucket \u2014 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u0438\u043b\u0434\u044b\/\u0442\u0435\u0441\u0442\u044b\/\u0434\u0435\u043f\u043b\u043e\u0439. \u041f\u0440\u044f\u043c\u043e \u043a\u0430\u043a \u0432 Travis, \u043d\u043e self-hosted.<\/p>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-283318","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283318"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283318\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}