wsl2でのインストールをしたので、今度は、wsl2のホストOS側であるWindowa11上にインストール
JUCEのサイトから「juce-9.0.5-windows.zip」をダウンロードしてきて、
ハードディスク上で解凍
解凍すると「juce-9.0.5-windows」フォルダが出来る
中は?
JUCE-+-.github
_____+-docs
_____+-examples
_____+-extras
_____+-modules
_____|.clang-tidy
_____|.gitignore
_____|AGENTS.md
_____|BREAKING_CHALENGES.md
_____|CHANGE_LIST.md
_____|CLAUDE.md
_____|CMakeLists.txt
_____|CODE_OF_CONDUCT.md
_____|DemoRunner.exe
_____|JUCE.spdx.json
_____|LICENSE.md
_____|Projucer.exe
_____|README.md
_____|SECURITY.md
なんて感じのファイルがある
とりあえず、Projucerを起動して、新規プロジェクト作成して、
Visual Studio2026で開いて、デフォルトでビルドしたら、下記のような画面が起動した
alfaalfa
趣味のブログ
2026年11月13日金曜日
wsl2でVST3・JUCE
wsl2上のLinux環境で Projucer をセルフビルドするには、必要な開発用ライブラリ(依存パッケージ)をインストールした上で、
リポジトリ内の LinuxMakefile または CMake を使用します。とのこと。
1. 依存パッケージのインストール(Ubuntu / Debian系)
公式ドキュメントの Linux Dependencies.md に基づき、コンパイラと必要なライブラリをインストールします。
必要なビルドツールおよび依存パッケージのインストール用コマンドは、GitHub Docs をご参照ください。
↑ここを事前によく確認しとくべきだった。
2. ビルド手順
JUCE公式GitHubリポジトリ をクローンし、以下のいずれかの方法でビルドします。
• 方法A(Makefile): JUCE/extras/Projucer/Builds/LinuxMakefile に移動して make CONFIG=Release -j$(nproc) を実行します。
バイナリは build/Projucer に生成されます。
$ make CONFIG=Release -j$(nproc) を実行
色々足りないエラー続発
なので、足りないものをインストールして、再度ビルド
$ make CONFIG=Release -j$(nproc)
Compiling include_juce_graphics.cpp
Compiling include_juce_graphics_Harfbuzz.cpp
Compiling include_juce_gui_basics.cpp
Compiling include_juce_gui_extra.cpp
Linking Projucer - App
バイナリは build/Projucer に生成されます。
~/JUCE/extras/Projucer/Builds/LinuxMakefile/build$ ./Projucer
無事起動出来ました。
リポジトリ内の LinuxMakefile または CMake を使用します。とのこと。
1. 依存パッケージのインストール(Ubuntu / Debian系)
公式ドキュメントの Linux Dependencies.md に基づき、コンパイラと必要なライブラリをインストールします。
必要なビルドツールおよび依存パッケージのインストール用コマンドは、GitHub Docs をご参照ください。
↑ここを事前によく確認しとくべきだった。
2. ビルド手順
JUCE公式GitHubリポジトリ をクローンし、以下のいずれかの方法でビルドします。
• 方法A(Makefile): JUCE/extras/Projucer/Builds/LinuxMakefile に移動して make CONFIG=Release -j$(nproc) を実行します。
バイナリは build/Projucer に生成されます。
$ make CONFIG=Release -j$(nproc) を実行
色々足りないエラー続発
なので、足りないものをインストールして、再度ビルド
$ make CONFIG=Release -j$(nproc)
Compiling include_juce_graphics.cpp
Compiling include_juce_graphics_Harfbuzz.cpp
Compiling include_juce_gui_basics.cpp
Compiling include_juce_gui_extra.cpp
Linking Projucer - App
バイナリは build/Projucer に生成されます。
~/JUCE/extras/Projucer/Builds/LinuxMakefile/build$ ./Projucer
無事起動出来ました。
2026年11月12日木曜日
wsl2でArduino Leonardo
2026/11/12:追記
wsl2側でArduinoデバイスを認識しても、arduino-cliコマンドでビルド後のプログラムを
デバイスに書き込む際に、下記のリセット後にどうしてもポートを再認識出来なかったので、
wsl2からの書き込みは断念!
【リセットする理由】
Arduino Leonardo、Micro、SAMD、UNO R4などのネイティブUSB搭載ボードでは、
書き込み前に「1200bpsでシリアルポートを開閉してリセットをかける(1200bps touch)」処理と、
その後のポート再検出待ちが発生します。
他にUbuntuのノートPCが余ってたので、そちらで、Ubuntu直でUSBポートを認識させて
Arduinoデバイスに書き込みするようにしました。
$ ./build_upload.sh
FQBN: arduino:avr:leonardo
Using board 'leonardo' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
Using core 'arduino' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
Detecting libraries used...
~~途中省略 ~~
AVR device initialized and ready to accept instructions
Device signature = 1E 95 87 (ATmega32U4)
Reading 3956 bytes for flash from input file Blink.ino.hex
in 1 section [0, 0xf73]: 31 pages and 12 pad bytes
Writing 3956 bytes to flash
Writing | ################################################## | 100% 0.31s
3956 bytes of flash written
Avrdude done. Thank you.
Used platform Version Path
arduino:avr 1.8.8 /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
無事書き込み出来て、LEDが点滅しました。
===<以下は旧投稿内容>===============================================
wsl2上で、Arduino Leonardoが認識されてる状態で、arduino-cliを使用して「接続しているボードのFQBN」を確認
$ arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Arduino Leonardo arduino:avr:leonardo arduino:avr
上記で確認出来たボード(FQBN)を使用して詳細を確認
$ arduino-cli board details -b arduino:avr:leonardo
Board name: Arduino Leonardo
FQBN: arduino:avr:leonardo
Board version: 1.8.8
Official Arduino board: ✔
Identification properties: pid=0x0036
vid=0x2341
Identification properties: pid=0x8036
vid=0x2341
Identification properties: pid=0x0036
vid=0x2A03
Identification properties: pid=0x8036
vid=0x2A03
Identification properties: board=leonardo
Package name: arduino
Package maintainer: Arduino
Package URL: https://downloads.arduino.cc/packages/package_index.tar.bz2
Package website: https://www.arduino.cc/
Package online help: https://www.arduino.cc/en/Reference/HomePage
Platform name: Arduino AVR Boards
Platform category: Arduino
Platform architecture: avr
Platform URL: https://downloads.arduino.cc/cores/staging/avr-1.8.8.tar.bz2
Platform file name: avr-1.8.8.tar.bz2
Platform size (bytes): 7162150
Platform checksum: SHA-256:a234c2a43dcd01ce54be665806f183b8e6ec4e966d2e3e0c3358b63023d6390c
Required tool: arduino:arduinoOTA 1.3.0
Required tool: arduino:avr-gcc 7.3.0-atmel3.6.1-arduino7
Required tool: arduino:avrdude 8.0.0-arduino1
Programmers: ID Name
arduinoasisp Arduino as ISP
arduinoasispatmega32u4 Arduino as ISP (ATmega32U4)
arduinoisp ArduinoISP
arduinoisporg ArduinoISP.org
atmel_ice Atmel-ICE (AVR)
avrisp AVR ISP
avrispmkii AVRISP mkII
buspirate BusPirate as ISP
jtag3 Atmel JTAGICE3 (JTAG mode)
jtag3isp Atmel JTAGICE3 (ISP mode)
parallel Parallel Programmer
stk500 Atmel STK500 development board
usbGemma Arduino Gemma
usbasp USBasp
usbtinyisp USBtinyISP
ユーザーのグループ権限不足(Linux / Ubuntu等)に注意!
• 現象: /dev/ttyACM0 にアクセスする権限がなく、ポートを開けずにエラーになっている。
• 対策: ターミナルでユーザーを dialout グループに追加します。bash
sudo usermod -a -G dialout $USER
上記コマンドを実行後は、一度ターミナルを入り直す。
$ cat ./build_upload.sh
#!/bin/bash
# arduino-cli compile [--clean] -b [--upload -p <シリアルポート> [-c オプション]] . [-v]
arduino-cli compile -v -b arduino:avr:leonardo --upload -p /dev/ttyACM0
wsl2上からは書き込みに失敗します。
wsl2側でArduinoデバイスを認識しても、arduino-cliコマンドでビルド後のプログラムを
デバイスに書き込む際に、下記のリセット後にどうしてもポートを再認識出来なかったので、
wsl2からの書き込みは断念!
【リセットする理由】
Arduino Leonardo、Micro、SAMD、UNO R4などのネイティブUSB搭載ボードでは、
書き込み前に「1200bpsでシリアルポートを開閉してリセットをかける(1200bps touch)」処理と、
その後のポート再検出待ちが発生します。
他にUbuntuのノートPCが余ってたので、そちらで、Ubuntu直でUSBポートを認識させて
Arduinoデバイスに書き込みするようにしました。
$ ./build_upload.sh
FQBN: arduino:avr:leonardo
Using board 'leonardo' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
Using core 'arduino' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
Detecting libraries used...
~~途中省略 ~~
AVR device initialized and ready to accept instructions
Device signature = 1E 95 87 (ATmega32U4)
Reading 3956 bytes for flash from input file Blink.ino.hex
in 1 section [0, 0xf73]: 31 pages and 12 pad bytes
Writing 3956 bytes to flash
Writing | ################################################## | 100% 0.31s
3956 bytes of flash written
Avrdude done. Thank you.
Used platform Version Path
arduino:avr 1.8.8 /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
無事書き込み出来て、LEDが点滅しました。
===<以下は旧投稿内容>===============================================
wsl2上で、Arduino Leonardoが認識されてる状態で、arduino-cliを使用して「接続しているボードのFQBN」を確認
$ arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Arduino Leonardo arduino:avr:leonardo arduino:avr
上記で確認出来たボード(FQBN)を使用して詳細を確認
$ arduino-cli board details -b arduino:avr:leonardo
Board name: Arduino Leonardo
FQBN: arduino:avr:leonardo
Board version: 1.8.8
Official Arduino board: ✔
Identification properties: pid=0x0036
vid=0x2341
Identification properties: pid=0x8036
vid=0x2341
Identification properties: pid=0x0036
vid=0x2A03
Identification properties: pid=0x8036
vid=0x2A03
Identification properties: board=leonardo
Package name: arduino
Package maintainer: Arduino
Package URL: https://downloads.arduino.cc/packages/package_index.tar.bz2
Package website: https://www.arduino.cc/
Package online help: https://www.arduino.cc/en/Reference/HomePage
Platform name: Arduino AVR Boards
Platform category: Arduino
Platform architecture: avr
Platform URL: https://downloads.arduino.cc/cores/staging/avr-1.8.8.tar.bz2
Platform file name: avr-1.8.8.tar.bz2
Platform size (bytes): 7162150
Platform checksum: SHA-256:a234c2a43dcd01ce54be665806f183b8e6ec4e966d2e3e0c3358b63023d6390c
Required tool: arduino:arduinoOTA 1.3.0
Required tool: arduino:avr-gcc 7.3.0-atmel3.6.1-arduino7
Required tool: arduino:avrdude 8.0.0-arduino1
Programmers: ID Name
arduinoasisp Arduino as ISP
arduinoasispatmega32u4 Arduino as ISP (ATmega32U4)
arduinoisp ArduinoISP
arduinoisporg ArduinoISP.org
atmel_ice Atmel-ICE (AVR)
avrisp AVR ISP
avrispmkii AVRISP mkII
buspirate BusPirate as ISP
jtag3 Atmel JTAGICE3 (JTAG mode)
jtag3isp Atmel JTAGICE3 (ISP mode)
parallel Parallel Programmer
stk500 Atmel STK500 development board
usbGemma Arduino Gemma
usbasp USBasp
usbtinyisp USBtinyISP
ユーザーのグループ権限不足(Linux / Ubuntu等)に注意!
• 現象: /dev/ttyACM0 にアクセスする権限がなく、ポートを開けずにエラーになっている。
• 対策: ターミナルでユーザーを dialout グループに追加します。bash
sudo usermod -a -G dialout $USER
上記コマンドを実行後は、一度ターミナルを入り直す。
$ cat ./build_upload.sh
#!/bin/bash
# arduino-cli compile [--clean] -b
arduino-cli compile -v -b arduino:avr:leonardo --upload -p /dev/ttyACM0
wsl2上からは書き込みに失敗します。
Arduino LeonardoでもLチカ
こちらは、Windows 11上のArduino IDEで実行してます。
WSL2のarduino-cliコマンドを使用してのビルド後の書き込みでは失敗してます。
ついでに、Arduino LeonardoでもLチカしてみました。
ツール->ボード->Arduino AVR Boards->Arduino Leonardoを選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Arduino Leonardoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: Arduino Leonardo
VID: 2341
PID: 0036
SN: (null)
などが表示された。
そして、マイコンボードに書き込んで実行
ボード上にLと印刷されてるオンボードのLEDが点滅
壊れてなかった。
WSL2のarduino-cliコマンドを使用してのビルド後の書き込みでは失敗してます。
ついでに、Arduino LeonardoでもLチカしてみました。
ツール->ボード->Arduino AVR Boards->Arduino Leonardoを選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Arduino Leonardoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: Arduino Leonardo
VID: 2341
PID: 0036
SN: (null)
などが表示された。
そして、マイコンボードに書き込んで実行
ボード上にLと印刷されてるオンボードのLEDが点滅
壊れてなかった。
学研 JapaninoでLチカ
久々に、Japanino見つけたので、Arduino IDEでサンプルスケッチ「Blink」を
実行してみました。
まず、ツール->ボード->Arduino AVR Boards->Arduino Pro or Pro Miniを選択
次に、ツール->プロセッサ->ATmega168(3.3v,8MHz)を選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Japaninoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: 不明なボード
VID: 10C4
PID: EA60
SN: 取得するには任意のスケッチをアップロードしてください
などが表示された。
そして、マイコンボードに書き込んで実行
POWER LEDの左にあるオンボートのLEDが点滅
壊れてなかった。
実行してみました。
まず、ツール->ボード->Arduino AVR Boards->Arduino Pro or Pro Miniを選択
次に、ツール->プロセッサ->ATmega168(3.3v,8MHz)を選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Japaninoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: 不明なボード
VID: 10C4
PID: EA60
SN: 取得するには任意のスケッチをアップロードしてください
などが表示された。
そして、マイコンボードに書き込んで実行
POWER LEDの左にあるオンボートのLEDが点滅
壊れてなかった。
2026年11月11日水曜日
WSL2上へdotnetをインストール
インストールは下記の感じで簡単
$ sudo apt update
$ sudo apt install dotnet-sdk-10.0
$ dotnet --version
10.0.115
$ sudo apt update
$ sudo apt install dotnet-sdk-10.0
$ dotnet --version
10.0.115
2026年11月3日火曜日
OpenCodeでAndroidアプリをエミュレータで起動
OpenCodeをAndroidアプリのプロジェクトフォルダから実行して、AGENTS.mdとREADME.mdを提案してもらった内容で作成してもらった。
それから、「このプロジェクトをエミュレータを起動して実行してください。」と指示
すると...
エミュレータをバックグラウンドプロセスで実行して、アプリを起動してスクリーンショットを取得してくれた。
それから、「このプロジェクトをエミュレータを起動して実行してください。」と指示
すると...
エミュレータをバックグラウンドプロセスで実行して、アプリを起動してスクリーンショットを取得してくれた。
登録:
投稿 (Atom)


