ESPAsyncTCP/ESPAsyncTCP.cpp.o] Error 1

How do I fix this error? Running PlatformIO on MacOS. Let me know what other info you need. Thanks

That’s not a complete error message. Please post the whole message as well as the content of your platformio.ini!

No, it’s not at all complete as I compile that combination dozens of times a day on MacOS when I’m working with platformio and that object is never compiled for me.

I can’t remember where it is, but there was a kink when ESPAsyncTCP moved from nodev’s care to a project of its own. We don’t even carry the explicit dependency any longer; we let the impliciti dep pick it up. Our entry in p*ini is

              esp32async/ESPAsyncWebServer  @ ^3.7.0

…and somwhere there is an expllicit rule to ignore the thing you’re picking up as well as a bunch of RP2040 stuff that doesn’t fit. This was documented in the ESPAsync library at the time of the migration.

Warning: Ignored AsyncTCP dependency for ESPAsyncWebServer library
Warning: Ignored ESPAsyncTCP dependency for ESPAsyncWebServer library
Warning: Ignored Hash dependency for ESPAsyncWebServer library
Warning: Ignored RPAsyncTCP dependency for ESPAsyncWebServer library

Of course, you need to post WAY more information before anyone can actually help you, but that combination DOES work.

As you can see I’m quite new to all this. Thanks for taking the time to help me.
Here’s the ini file

; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
;set default_envs to whichever board(s) you use. Build/Run/etc processes those envs
default_envs =
esp32dev

[env]
; Global data for all [env:***]
framework = arduino
lib_ldf_mode = deep
monitor_speed = 115200
lib_deps =
; Peg the SensESP version to 2.0.0 and compatible versions
SignalK/SensESP @ ^2.0.0
adafruit/Adafruit BMP280 Library@^2.6.3
SensESP/OneWire@^2.0.0
adafruit/Adafruit BME280 Library@^2.2.2
Wire
adafruit/Adafruit INA219 @ ^1.1.0

; Add any additional dependencies here

[espressif32_base]
;this section has config items common to all ESP32 boards
platform = espressif32
build_unflags =
-Werror=reorder
board_build.partitions = min_spiffs.csv
monitor_filters = esp32_exception_decoder

[env:esp32dev]
extends = espressif32_base
board = esp32dev
build_flags =
-D LED_BUILTIN=2
; Uncomment the following to disable debug output altogether
;-D DEBUG_DISABLED
; Uncomment the following to enable the remote debug telnet interface on port 23
;-D REMOTE_DEBUG

;; Uncomment and change these if PlatformIO can't auto-detect the ports
;upload_port = /dev/tty.SLAB_USBtoUART
;monitor_port = /dev/tty.SLAB_USBtoUART

;; Uncomment the following lines to use Over-the-air (OTA) Updates
;upload_protocol = espota
;upload_port = IP_ADDRESS_OF_ESP_HERE
;upload_flags =
; --auth=YOUR_OTA_PASSWORD

With all due respect, if you are truly new to this, you should start with very simple things like “Hello World” and blink and learn how things work. The configuration you posted is far too complex for a beginner. Furthermore, the error message does not even match the configuration.

Here is something you should start with:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
#include <Arduino.h>

void setup() {
    Serial.begin(115200);
}

void loop() {
    Serial.println("Hello World");
    delay(1000);
}

If you have questions about a specific problem, feel free to ask for help. Show your configuration (platformio.ini), describe the exact problem, and, if possible, include a minimal example that allows others to reproduce the problem. This makes it easier for others in the forum to help you and increases the chance that someone will be able to help you.

This is code I copied from GitHub and it should work but I can’t get it to compile.

What he said. That error doesn’t even go with that code.

If you have multiple projects in your VS-Code Workspace, please check if you have selected the correct project / environment in the Project Environment Switcher:

So please give the link to that github repo! This allows a much deeper look into the whole thing.

As written before, this is a complex project - not a good starting point for beginners.

The example is outdated as it is using SenseESP 2.0.0 (current version is 3.1.0)
The SenseESP is dependent to me-no-dev/ESPAsyncWebServer. That library has been moved and is now known as esp32async/ESPAsyncWebServer.

Please contact the author of the project and or the authors of the SenseESP library to fix those dependencies.

Version 3.x has a lot of major changes. See GitHub - SignalK/SensESP: Universal Signal K sensor framework for the ESP32 platform

Beter learn how to use this library and create a new battery sensor project based on the latest version.