イルミパケット
ビルド完了までのログ
ras@ras:~ $ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=55 time=2.71 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=55 time=2.82 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=55 time=2.84 ms
// よし!
ras@ras:~ $ sudo apt update
Get:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.com/debian bookworm InRelease [39.0 kB]
Get:3 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf Packages [14.5 MB]
Get:4 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [516 kB]
Get:5 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [486 kB]
Fetched 15.6 MB in 49s (317 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
65 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
ras@ras:~ $ sudo apt install -y golang-go
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
golang-1.19-go golang-1.19-src golang-src
Suggested packages:
bzr | brz git mercurial subversion
The following NEW packages will be installed:
golang-1.19-go golang-1.19-src golang-go golang-src
0 upgraded, 4 newly installed, 0 to remove and 65 not upgraded.
Need to get 75.3 MB of archives.
After this operation, 435 MB of additional disk space will be used.
Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf golang-1.19-src all 1.19.8-2 [18.3 MB]
Get:2 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf golang-1.19-go armhf 1.19.8-2 [56.9 MB]
Get:3 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf golang-src all 2:1.19~1 [5,756 B]
Get:4 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf golang-go armhf 2:1.19~1 [45.0 kB]
Fetched 75.3 MB in 27s (2,832 kB/s)
Selecting previously unselected package golang-1.19-src.
(Reading database ... 63401 files and directories currently installed.)
Preparing to unpack .../golang-1.19-src_1.19.8-2_all.deb ...
Unpacking golang-1.19-src (1.19.8-2) ...
Selecting previously unselected package golang-1.19-go.
Preparing to unpack .../golang-1.19-go_1.19.8-2_armhf.deb ...
Unpacking golang-1.19-go (1.19.8-2) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../golang-src_2%3a1.19~1_all.deb ...
Unpacking golang-src (2:1.19~1) ...
Selecting previously unselected package golang-go:armhf.
Preparing to unpack .../golang-go_2%3a1.19~1_armhf.deb ...
Unpacking golang-go:armhf (2:1.19~1) ...
Setting up golang-1.19-src (1.19.8-2) ...
Setting up golang-src (2:1.19~1) ...
Setting up golang-1.19-go (1.19.8-2) ...
Setting up golang-go:armhf (2:1.19~1) ...
Processing triggers for man-db (2.11.2-2) ...
// よし!
ras@ras:~ $ go version
go version go1.19.8 linux/arm
ras@ras:~ $ sudo apt-get install libpcap-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libdbus-1-dev libpcap0.8-dev
The following NEW packages will be installed:
libdbus-1-dev libpcap-dev libpcap0.8-dev
0 upgraded, 3 newly installed, 0 to remove and 65 not upgraded.
Need to get 485 kB of archives.
After this operation, 1,570 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libdbus-1-dev armhf 1.14.10-1~deb12u1 [199 kB]
Get:2 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libpcap0.8-dev armhf 1.10.3-1 [258 kB]
Get:3 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libpcap-dev armhf 1.10.3-1 [28.2 kB]
Fetched 485 kB in 2s (199 kB/s)
Selecting previously unselected package libdbus-1-dev:armhf.
(Reading database ... 77068 files and directories currently installed.)
Preparing to unpack .../libdbus-1-dev_1.14.10-1~deb12u1_armhf.deb ...
Unpacking libdbus-1-dev:armhf (1.14.10-1~deb12u1) ...
Selecting previously unselected package libpcap0.8-dev:armhf.
Preparing to unpack .../libpcap0.8-dev_1.10.3-1_armhf.deb ...
Unpacking libpcap0.8-dev:armhf (1.10.3-1) ...
Selecting previously unselected package libpcap-dev:armhf.
Preparing to unpack .../libpcap-dev_1.10.3-1_armhf.deb ...
Unpacking libpcap-dev:armhf (1.10.3-1) ...
Setting up libdbus-1-dev:armhf (1.14.10-1~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for sgml-base (1.31) ...
Setting up libpcap0.8-dev:armhf (1.10.3-1) ...
Setting up libpcap-dev:armhf (1.10.3-1) ...
ras@ras:~ $ sudo apt-get install scons
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
scons-doc
The following NEW packages will be installed:
scons
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 663 kB of archives.
After this operation, 2,671 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf scons all 4.4.0+dfsg-1 [663 kB]
Fetched 663 kB in 1s (590 kB/s)
Selecting previously unselected package scons.
(Reading database ... 77219 files and directories currently installed.)
Preparing to unpack .../scons_4.4.0+dfsg-1_all.deb ...
Unpacking scons (4.4.0+dfsg-1) ...
Setting up scons (4.4.0+dfsg-1) ...
Processing triggers for man-db (2.11.2-2) ...
ras@ras:~ $ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 65 not upgraded.
Need to get 7,683 kB of archives.
After this operation, 42.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf liberror-perl all 0.17029-2 [29.0 kB]
Get:2 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf git-man all 1:2.39.5-0+deb12u1 [2,054 kB]
Get:3 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf git armhf 1:2.39.5-0+deb12u1 [5,600 kB]
Fetched 7,683 kB in 9s (901 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 77482 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.39.5-0+deb12u1_all.deb ...
Unpacking git-man (1:2.39.5-0+deb12u1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.39.5-0+deb12u1_armhf.deb ...
Unpacking git (1:2.39.5-0+deb12u1) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git-man (1:2.39.5-0+deb12u1) ...
Setting up git (1:2.39.5-0+deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
ras@ras:~ $ git clone https://github.com/jgarff/rpi_ws281x.git
Cloning into 'rpi_ws281x'...
remote: Enumerating objects: 1018, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 1018 (delta 51), reused 90 (delta 39), pack-reused 905 (from 1)
Receiving objects: 100% (1018/1018), 437.42 KiB | 571.00 KiB/s, done.
Resolving deltas: 100% (607/607), done.
ras@ras:~ $ cd rpi_ws281x
ras@ras:~/rpi_ws281x $ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Version version.h
CC main.o
CC mailbox.o
CC ws2811.o
CC pwm.o
CC pcm.o
CC dma.o
CC rpihw.o
AR libws2811.a
RANLIB libws2811.a
LINK test
scons: done building targets.
ras@ras:~/rpi_ws281x $ sudo cp -ai ./ws2811.h ./rpihw.h ./pwm.h /usr/local/include/
ras@ras:~/rpi_ws281x $ sudo cp -ai ./libws2811.a /usr/local/lib/
ras@ras:~/rpi_ws281x $
ras@ras:~ $ git clone https://github.com/souring001/illumi-packet.git
Cloning into 'illumi-packet'...
remote: Enumerating objects: 65, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 65 (delta 36), reused 43 (delta 17), pack-reused 0 (from 0)
Receiving objects: 100% (65/65), 2.03 MiB | 903.00 KiB/s, done.
Resolving deltas: 100% (36/36), done.
ras@ras:~ $ cd illumi-packet
// buile
ras@ras:~/illumi-packet $ go build -ldflags '-extldflags "-lm"' illumi-packet.go
エラー
ras@ras:~/illumi-packet $ go build illumi-packet.go
go: downloading github.com/google/gopacket v1.1.17
go: downloading github.com/jgarff/rpi_ws281x v0.0.0-20191106145129-6b01e53c3f8b
# command-line-arguments
/usr/lib/go-1.19/pkg/tool/linux_arm/link: running gcc failed: exit status 1
/usr/bin/ld: /usr/local/lib/libws2811.a(ws2811.o): in function `ws2811_set_custom_gamma_factor':
/home/ras/rpi_ws281x/ws2811.c:1320: undefined reference to `pow'
collect2: error: ld returned 1 exit status
← Go home