﻿{"id":1011,"date":"2023-01-05T12:19:27","date_gmt":"2023-01-05T04:19:27","guid":{"rendered":"http:\/\/blog.sway.com.cn\/?p=1011"},"modified":"2023-01-05T18:32:12","modified_gmt":"2023-01-05T10:32:12","slug":"%e5%9c%a8%e6%a0%91%e8%8e%93%e6%b4%be64%e4%bd%8dos%e4%b8%8a%e4%bd%bf%e7%94%a8wiringpi%e6%8a%a5%e9%94%99wrong-elf-class-elfclass32-possible-cause-architecture-word-width-mismatch","status":"publish","type":"post","link":"http:\/\/blog.sway.com.cn\/?p=1011","title":{"rendered":"\u5728\u6811\u8393\u6d3e\u4e0a\u4f7f\u7528docker\u8fd0\u884cjava\u7a0b\u5e8f\u5e76\u64cd\u4f5cgpio"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u6811\u8393\u6d3e64\u4f4d\u7684OS\u4e0a\u662f\u65e0\u6cd5\u4f7f\u7528wiringpi\u7684<\/h2>\n\n\n\n<p>\u5b98\u65b9\u7f16\u8bd1\u7684wiringpi\u572832\u4f4d\u4e0b\u7f16\u5199\u7684\uff0c\u56e0\u6b64\u572864\u4f4d\u7cfb\u7edf\u4e2d\u8fd0\u884c\u4f1a\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/blog.sway.com.cn\/wp-content\/uploads\/2023\/01\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"247\" src=\"http:\/\/blog.sway.com.cn\/wp-content\/uploads\/2023\/01\/image-6.png\" alt=\"\" class=\"wp-image-1012\" srcset=\"http:\/\/blog.sway.com.cn\/wp-content\/uploads\/2023\/01\/image-6.png 657w, http:\/\/blog.sway.com.cn\/wp-content\/uploads\/2023\/01\/image-6-300x113.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/a><\/figure>\n\n\n\n<p>\u867d\u7136\u6709\u5927\u795e\u63d0\u4f9b\u4e86\u81ea\u5df1\u7f16\u8bd1\u768464\u4f4dwiringpi\uff0c\u4f46\u662f\u4f9d\u7136\u4e0d\u884c\uff0c\u8d44\u6599\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/guation\/WiringPi-arm64\">https:\/\/github.com\/guation\/WiringPi-arm64<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/gitee.com\/guation\/WiringPi-arm64\">https:\/\/gitee.com\/guation\/WiringPi-arm64<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4fee\u6539DockerFile<\/h2>\n\n\n\n<p>\u4e00\u822cdocker\u8fd0\u884cjava\u7a0b\u5e8f\u662f\u4f1a\u4f7f\u7528openjdk:8\u7684\u955c\u50cf\uff0c\u4f46\u662f\u6811\u8393\u6d3e\u867d\u7136\u662f64\u4f4d\u786c\u4ef6\uff0c\u4f46wiringpi\u53ea\u80fd\u8fd0\u884c\u572832\u4f4d\u7684OS\u4e2d\uff0c\u56e0\u6b64\u82e5\u9700\u8981\u64cd\u4f5cgpio\u5219\u53ea\u80fd\u4f7f\u752832\u4f4d\u7684OS\u3002\u518d\u52a0\u4e0aopenjdk:8\u5e76\u6ca1\u6709\u63d0\u4f9barm\u7248\u672c\uff0c\u56e0\u6b64\u9700\u8981\u6307\u5b9a\u6210armv7\u7248\u672c\u7684jdk\u955c\u50cf\u624d\u80fd\u6210\u529f\u6253\u5305docker\u955c\u50cf\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#FROM openjdk:8\n\n#\u6307\u5b9aarmv7\u7248\u672c\u7684java8\nFROM balenalib\/armv7hf-openjdk<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728DockerFile\u4e2d\u5f15\u5165WiringPi<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">COPY .\/wiringpi-2.61-1-armhf.deb \/wiringpi-2.61-1-armhf.deb\nRUN dpkg -i \/wiringpi-2.61-1-armhf.deb<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6811\u8393\u6d3e64\u4f4d\u7684OS\u4e0a\u662f\u65e0\u6cd5\u4f7f\u7528wiringpi\u7684 \u5b98\u65b9\u7f16\u8bd1\u7684wiringpi\u572832\u4f4d\u4e0b\u7f16\u5199\u7684\uff0c\u56e0\u6b64\u572864\u4f4d\u7cfb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1011","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1011"}],"version-history":[{"count":7,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1011\/revisions"}],"predecessor-version":[{"id":1024,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1011\/revisions\/1024"}],"wp:attachment":[{"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.sway.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}