I want to send data from an Arduino R4 UNO Wifi to a cloud server, so I am creating a program that uses WireGuard, the cloud server's communication standard.
I get a compilation error in WireGuard.cpp with the message that freertos/FreeRTOS.h cannot be referenced.
I have been researching the cause and solution for several days, but I still don't know, so I would appreciate some advice.
IDE2.3.6 and the project code is uptime_post.ino.
The board manager used is Arduino ESP32.
The libraries used are WiFi, WireGuard-ESP32, and R4HttpClient.
Communication from the Arduino R4 UNO Wifi uses Wifi.
-------------- error message --------------
c:\Users\kzykm\Documents\Arduino\libraries\WireGuard-ESP32\src\WireGuard.cpp:7:10: fatal error: freertos/FreeRTOS.h: No such file or directory #include "freertos/FreeRTOS.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Please use the English in the English sections of the forum.
フォーラムの英語セクションでは英語を使用してください。
Your topic does not really indicate a problem with IDE 2.x and therefore has been moved to a more suitable location on the forum.
Translation of the opening post below
I want to send data from an Arduino R4 UNO Wifi to a cloud server, so I am creating a program that uses WireGuard, the cloud server's communication standard.
I get a compilation error in WireGuard.cpp with the message that freertos/FreeRTOS.h cannot be referenced.
I have been researching the cause and solution for several days, but I still don't know, so I would appreciate some advice.
IDE2.3.6 and the project code is uptime_post.ino.
The board manager used is Arduino ESP32.
The libraries used are WiFi, WireGuard-ESP32, and R4HttpClient.
Communication from the Arduino R4 UNO Wifi uses Wifi.
-------------- error message --------------
c:\Users\kzykm\Documents\Arduino\libraries\WireGuard-ESP32\src\WireGuard.cpp:7:10: fatal error: freertos/FreeRTOS.h: No such file or directory #include "freertos/FreeRTOS.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Thank you for your comment.
The board manager is Arduino ESP32 Boards (Ver.: 2.0.13).
After downloading uno-r4-wifi-usb-bridge-main.zip, the "Include library" in the library manager (menu->sketch->Include the library) resulted in "Error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: library not valid."
Is this approach a problem ?
Thank you for your advice. I was developing only with Windows 10 IDE2.3.6. I will consider implementing README.md including creating a Linux (WSL) and arduino-cli environment.